Bcrypt Generator
Generate bcrypt password hashes with configurable rounds.
Hash a password with bcrypt, or check a password against an existing bcrypt hash. Choose the cost factor: each step up doubles the work, and 10 to 12 is typical, so pick the highest your login can afford (around a quarter of a second). bcrypt adds a random salt automatically, so the same password gives a different hash each time, and the cost and salt are stored inside the hash. Hashing runs locally with bcrypt.js.
Each +1 doubles the work. 10–12 is typical; pick the highest your login can afford (~250 ms).
Hashing runs locally with bcrypt.js; nothing is uploaded.
Common use cases
- Make a test password hash for a database seed
- Check whether a password matches a stored hash
- Choose a cost factor by seeing how long hashing takes
How to use
- Choose Generate hash or Check password.
- Enter the password and, to generate, the cost factor.
- Copy the hash, or read whether the password matches.
FAQ
Why does the same password give different hashes?
Each hash has its own random salt, stored in the hash itself, so the check still works.
Is there a password length limit?
bcrypt uses only the first 72 bytes of a password. Very long passphrases are cut there.
Related tools
- Scrypt GeneratorGenerate scrypt key derivation hashes.
- JWT DecoderDecode JWT headers and claims, check expiry, and verify HS256, HS384 or HS512 signatures in your browser.
- NanoID GeneratorGenerate compact, URL-friendly unique IDs.
- OTP GeneratorGenerate one-time passwords for authentication.
- JWT Signer DemoCreate signed JSON Web Tokens for testing: write the claims, pick HS256, HS384 or HS512, add an expiry, and…
- HEX to Base64Convert hexadecimal strings to Base64 encoding.
- Random Password GeneratorIn Generators
- Random Username GeneratorIn Generators