Salt Generator
Random Salts for Password Hashes — computed locally in your browser.
Generate a cryptographic salt
Value
Bit strength:
Byte length:
How to use the Salt Generator
- Choose the byte length for the salt.
- Pick hex, Base64 or Base64url as the output format.
- Copy the salt and store one unique value per stored password.
Features
- Random values from the Web Crypto API
- Hex, Base64 and Base64url output
- Bit strength shown for every length
- One click copy for the generated salt
Advertisement
Frequently Asked Questions
Common questions about the free online salt generator.
A salt is a unique random value stored next to each password hash so that identical passwords
produce different hashes.
Sixteen random bytes is a good default and anything from sixteen to thirty two bytes is
considered safe.
No. A salt only has to be unique and unpredictable, so it can be stored in plain text beside
the hash.
It is generated with the Web Crypto random number generator in your browser, which is
suitable for cryptographic use.
No. Generate a new salt for every password, because a shared salt lets an attacker crack many
accounts with one precomputed table.
It stops precomputed rainbow tables and hides identical passwords, but a slow hash is still
needed against guessing.
Hex is easiest to store in text columns, while Base64 and Base64url are shorter but contain
characters that need care in URLs.
Yes, for key derivation a salt of at least sixteen bytes is normal, but it must still be
unique per key and stored with the ciphertext.
No. The value is created locally and only leaves your browser when you copy it yourself.
Last updated: October 10, 2026