BCrypt Hash / Verify
Turn a password into a bcrypt hash with a chosen cost factor (work factor), or check a password against a stored hash. Everything runs locally in a Web Worker so the page stays responsive even at high cost, and the password never leaves your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Work factor. Each +1 doubles the time. Default 10 ≈ 0.1 s.
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What bcrypt hashing does
bcrypt turns a password into a 60-character hash that also embeds a random salt and the cost factor that produced it. Because the salt is part of the output, the same password hashed twice gives two different strings, which defeats precomputed rainbow tables. The stored value is safe to keep in a database exactly as shown.
Choosing a cost factor
The cost factor is the base-2 logarithm of the number of key-expansion rounds, so every increment doubles the work for both the defender and an attacker. A cost of 10 is the common default and takes about a tenth of a second; 12 to 14 is a sensible target for modern hardware, while 15 can take several seconds. The tool prints a rough estimate for whichever cost you pick.
Verifying an existing hash
Switch to verify mode, paste the password in the input box and the stored hash in the option field. bcrypt re-reads the salt and cost from the hash itself, so you never have to supply them separately. The result is a clear match or no-match answer; a malformed hash is rejected with a helpful message rather than a silent failure.
Why the work runs in a worker
bcrypt is deliberately CPU-heavy, so at higher costs the calculation would freeze the page if it ran on the main thread. This tool runs it in a Web Worker, meaning the interface stays responsive, progress can be shown, and you can cancel a long run. Nothing is uploaded: the worker is a thread inside your own browser tab.
Questions
Is my password sent anywhere?
No. Hashing and verification run entirely in your browser inside a Web Worker. The password is never transmitted, logged, or stored by this page.
What cost factor should I use?
The default 10 is a reasonable baseline (roughly 0.1 s). Higher values (12–15) resist brute force better but are noticeably slower; the tool shows an estimated time for the cost you choose.
What does a bcrypt hash look like?
A bcrypt hash starts with $2a$, $2b$, $2x$ or $2y$, followed by a two-digit cost and a 53-character payload. For example: $2b$10$EZHlFIQcLaXBPdVq9vdDC.OFujeyPmE613GmGj.itHbjbhCYA8J.2.
Related tools
See categoryPassword Strength Analyzer
Estimate password entropy and score strength with feedback.
Passphrase Generator
Diceware-style passphrases from an embedded word list — memorable and high-entropy.
Password Generator
Generate strong random passwords with your browser CSPRNG — no bias, nothing uploaded.
File Hash / Checksum
Compute SHA-256/384/512 and SHA-1 checksums for one or more files.