About the Bcrypt Hash Generator
Bcrypt is a password hashing function designed to be slow on purpose, which makes it much harder for attackers to guess passwords from a leaked database. It adds a random salt to every hash, so the same password gives a different result each time, and its cost factor lets you make it slower as computers get faster. Laravel, Django, Ruby on Rails and many Node.js apps use it by default.
Use this tool to create test hashes for seeding a database, to reset a user's password directly in a table, or to check that a hash matches the password you expect. Choose a cost factor from 4 to 15, see how long hashing takes on your device, and read the algorithm, cost, salt and hash parts of the result.
How to use the Bcrypt Hash Generator
- Type the password or text to hash.
- Choose a cost factor. 10 to 12 suits most websites.
- Click Generate and copy the 60-character hash.
- To check a hash, open Verify password, enter the password and hash, and click Check match.
Key features
- Cost factor from 4 to 15 with timing
- Verifies $2a$, $2b$ and $2y$ hashes
- Shows the salt and hash parts
- Warns about the 72-byte password limit
- Runs entirely in your browser
Frequently asked questions
Why does the same password give a different hash each time?
Bcrypt generates a new random salt for every hash and stores it inside the hash. Verification reads the salt back out, so any of those hashes will match the password.
Can a bcrypt hash be decrypted?
No. Bcrypt is a one-way function. The only way to find the password is to guess and test, which the cost factor makes very slow.
Which cost factor should I use?
Pick the highest value that keeps login under about a quarter of a second on your server. In 2026 that is usually 10 to 12.
What is the difference between $2a$, $2b$ and $2y$?
They are revisions of the same algorithm. $2b$ fixed a rare bug in one implementation and $2y$ is PHP's label. They verify the same way, and this tool accepts all three.