Advertisement

Bcrypt Generator

Create bcrypt password hashes or check a password against one - all in your browser.

Last updated:

Bcrypt Generator
Hash · Verify · Cost 4-14
Cost factor (rounds)
10

How to Use It

1
Generate: enter a password, choose the cost and copy the hash
2
Verify: switch to Verify, paste the hash and the password
3
Use test passwords - never real user passwords

For developers testing logins, seeding databases or debugging auth.

Bcrypt Hash Format

PartExampleMeaning
$2b$VersionAlgorithm variant ($2a$, $2b$, $2y$)
10$Cost2^10 = 1,024 rounds
22 charactersSaltRandom, stored inside the hash
31 charactersHashThe result

Which Cost Factor?

Bcrypt vs Other Hashes

MethodFor passwords?
Argon2idBest choice for new systems (OWASP)
bcryptYes - widely supported
PBKDF2Yes, with 600,000+ rounds
SHA-256, MD5No - far too fast

Related Tools

Frequently Asked Questions

What is a bcrypt hash? +

A slow, salted password hash designed so stolen hashes are expensive to crack. It looks like $2b$10$ followed by 53 characters.

Why is the hash different every time? +

Each hash gets a random salt. Any of them will verify the same password.

Can bcrypt be decrypted? +

No. It is one-way. You can only check whether a password matches.

What cost factor should I use? +

At least 10; 12 is common. Pick the highest your server can run in about a quarter of a second.

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

For practical purposes yes. PHP writes $2y$; this tool verifies $2a$, $2b$ and $2y$.

Is it safe to hash a password here? +

It runs in your browser and nothing is sent, but use test passwords rather than real users' passwords.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →