Bcrypt Hash Generator
100% PrivateSecurity & Privacy UtilitiesHash a password with bcrypt, the algorithm designed for storing passwords safely.
Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.
Higher cost means slower hashing, which is the point for password storage. 10 to 12 is the usual production range.
Check a password against a hash
- 1Enter the password or text to hash.
- 2Set the cost factor; 10 is the classic default, 12 is four times slower.
- 3Press Generate bcrypt hash and copy the result.
- 4Optionally, paste a password and hash into the verify section to see a match or no-match verdict.
Hashing the passphrase correct horse battery staple at cost 10 produced $2b$10$jT61zASMuZO.BYMYrC8tVOrG4f70YI6WdfYJA2RvF4xQe9jYzcUa. in one run of this tool. Your run will produce a different string, because bcrypt mixes in a fresh random salt every time; the Verify section still confirms the passphrase against either hash.
- The cost range here is 4 to 12. Production systems sometimes use more, but in a browser tab higher costs freeze the page for a long time; at cost 11 and 12 this tool warns you before you run it.
- bcrypt truncates input at 72 bytes, a known property of the algorithm; longer passphrases are effectively cut there.
- A bcrypt hash is safe to store, but the password you type here is still a secret while you type it; this page never transmits it.
- Verify treats a malformed hash as a simple no-match rather than an error, matching how a login check behaves.
bcrypt generates a random salt for each hash and stores it inside the result (the characters after the cost). The salt defeats precomputed rainbow tables, and verification extracts it automatically.
About this tool
The Bcrypt Hash Generator hashes a password with bcrypt, the password-storage algorithm designed to be slow and salted, and lets you verify a password against an existing hash. It is built for developers testing a login system and for anyone who wants to see what a real password hash looks like.
Related tools
Part of Ovatly's free tools in Security & Privacy Utilities.