Bcrypt Generator & Checker.
Hash passwords with bcrypt at any cost factor, and verify passwords against existing hashes — entirely in your browser.
Slow on purpose
Regular hashes like SHA-256 are built for speed — an attacker with a stolen database can test billions of password guesses per second. bcrypt inverts that: its cost factor makes each attempt deliberately expensive, and every hash carries its own random salt, so identical passwords produce different hashes and precomputed tables are useless. That is why passwords belong in bcrypt (or Argon2), never in a fast hash — see our hash generator for the fast kind.
Anatomy of a bcrypt hash
$2b$12$R9h/cIPz0gi.URNNX3kh2O… reads as: format version (2b), cost factor (12 → 2¹² rounds), then 22 characters of salt followed by 31 characters of hash. Everything needed for verification travels inside the string — no separate salt column required.
Choosing a cost factor
Aim for the slowest hash your users will tolerate at login — commonly 50–250 ms on your production hardware, which lands most systems at cost 10–12 today. Benchmark on the server, not your laptop, and re-visit the number every few years: hardware gets faster, and the cost factor is how you keep pace. The timing display above gives you a feel for the growth — each step doubles the work.
The 72-byte limit
bcrypt only processes the first 72 bytes of the password — longer input is silently truncated by most implementations. Normal passwords never get close, but long passphrases with multi-byte characters can. If you allow very long passwords, enforce the limit explicitly in validation rather than relying on silent truncation.
Frequently asked questions
Why does the same password produce a different hash every time?
What does the cost factor mean?
Can a bcrypt hash be decrypted?
What do $2a$, $2b$ and $2y$ mean?
Why is bcrypt limited to 72 bytes?
Should I use bcrypt or Argon2?
Is it safe to type a password into this page?
More free tools
All tools →Free tools from a European software company.
- Runs in your browser
- Made & hosted in the EU
- No account needed