Bcrypt generator
Hash a password with bcrypt, or check whether a password matches a hash.
- 100% free
- No sign-up
- Runs in your browser
How to use Bcrypt generator
- Pick Hash or Verify
- Enter the password
- Get the result
Hashed on your device. The password is never stored or sent.
Hash
Enter a password and press Generate hash.
Next: Password generator · Hash generator · Password strength checker
Report a problem with this tool
How to use Bcrypt generator
Pick Hash or Verify
Hash makes a new bcrypt hash from a password. Verify checks a password against a hash you already have.
Enter the password
For a new hash, set the cost factor. For a check, paste the hash: its version, cost, salt and digest are shown as soon as it’s valid.
Get the result
Copy the 60-character hash, or read whether the password matches. The time taken is shown so you can judge the cost.
Why use Utils365
Real bcrypt, real salts
Each hash gets a fresh 16-byte random salt and the $2b$ prefix, and verifies with the standard bcrypt libraries in most languages.
Stays responsive
Hashing runs in the background with a progress bar and a Cancel button, so a high cost never freezes the page.
Explains the hash
Any bcrypt hash is split into version, cost, salt and digest, and a malformed one gets a message saying which part is wrong.
Warns about the 72-byte limit
Bcrypt ignores everything after 72 bytes. The tool counts UTF-8 bytes and tells you when a password goes over.
Frequently asked questions
Which cost factor should I use?
The tool starts at 12, which is 4,096 rounds. OWASP’s minimum is 10, and each step up doubles the time. The usual advice is the highest cost your server can run in roughly a quarter of a second per login. Measure on the server: a browser is slower than native code.
Why is the hash different every time?
Bcrypt mixes a new random salt into every hash and stores it inside the result. That way two users with the same password get different hashes. Verifying reads the salt back out of the hash, so every one of those hashes still matches the password.
What do the parts of a bcrypt hash mean?
In $2b$12$ followed by 53 characters, 2b is the version, 12 is the cost (2 to the power 12 rounds), the next 22 characters are the salt and the last 31 are the digest. The whole string is 60 characters.
What is the difference between $2a$, $2b$ and $2y$?
For normal passwords they give the same result. $2a$ is the older marker, $2b$ is the current one from OpenBSD, and $2y$ is what PHP writes. This tool creates $2b$ and can check all three. Hashes marked $2x$, from a faulty old PHP library, and the retired 59-character $2$ format can’t be checked.
What is the 72-byte limit?
Bcrypt only reads the first 72 bytes of a password, and anything after that is ignored. Letters with accents take 2 bytes, most Chinese characters 3 and emoji 4, so the limit can be reached with fewer than 72 characters. The tool warns you when it happens.
Is it safe to hash a real password here?
The password is hashed on your device and is never sent or stored. Still, the right place to hash users’ passwords is your server, at sign-up. Use this page for test data, seed accounts, checking a hash, or learning how bcrypt behaves.
How long does it take?
At cost 12 it is usually well under a second on a recent computer, and a few seconds at cost 15; phones are slower. To check an existing hash the tool accepts costs up to 20, which can take a minute or more, and refuses anything higher.