Skip to content
toolgrid

No tool found. Try another word.

Bcrypt Hash Generator

Generate a bcrypt hash of a password with the cost you choose, or check whether a password matches a bcrypt hash. Runs in your browser.

bcrypt only uses the first 72 bytes: everything after that is ignored. Use Argon2id for longer passwords.

Took s

This is not a valid bcrypt hash ($2a$, $2b$ or $2y$ followed by the cost and 53 characters).

✓ The password matches this hash

✗ The password does not match this hash

Runs only in your browser: nothing you enter here is stored or sent to us.

How to use the Bcrypt Hash Generator

  1. 1 Choose Generate or Verify.
  2. 2 Type the password (and, to verify, paste the hash).
  3. 3 Copy the new hash, or read whether the password matches.

About the Bcrypt Hash Generator

bcrypt (1999) is a password hash built on the Blowfish cipher. Its cost factor sets how much work one hash takes: every step up doubles it. Cost 10 takes a few dozen milliseconds, cost 12 a few hundred; OWASP recommends at least 10, and many frameworks use 12.

A bcrypt hash looks like $2y$12$ followed by 53 characters: the version, the cost, a 22-character salt and a 31-character hash. $2a$, $2b$ and $2y$ are the same algorithm with different version markers; this tool reads all three and writes $2y$, the variant PHP's password_hash() makes.

Verifying recomputes the hash with the salt and cost stored in it and compares, exactly as your server does at login. Use it to debug a login, or to check what a stored hash belongs to. The password never leaves your browser.

Frequently asked questions

Which cost should I use?

The highest your server can afford at login, typically 10–12: aim for 100–300 milliseconds per hash on your hardware. The time shown here is for your browser, which may be slower than a server.

Can a bcrypt hash be reversed?

No. You can only try passwords until one matches, and the cost factor makes each try slow on purpose.

Why do passwords over 72 bytes give a warning?

bcrypt ignores everything after the first 72 bytes (fewer characters with accents or emoji). Two long passwords that start the same then give the same hash. Use Argon2id for long passphrases.

Is $2b$ the same as $2y$?

Yes. Both mark the corrected bcrypt implementation; PHP writes $2y$, OpenBSD and many libraries $2b$. Any modern library accepts both.