Bcrypt Hash

Configuration

Each +1 roughly doubles the hashing time. 10-12 is a common default.

Bcrypt hash

Hash to see the bcrypt output here.

About this Bcrypt Hash

Hash text with bcrypt at a chosen cost factor, and verify a plaintext against an existing bcrypt hash. Hashing runs in a background Web Worker so the page never freezes.

Hashing and comparison run locally in your browser via bcryptjs, off the main thread in a Web Worker. Nothing is uploaded, and neither the plaintext nor the resulting hash is ever included in a share link.

FAQ

Why bcrypt instead of MD5 or SHA-256 for passwords?

MD5 and SHA-256 are fast — exactly the wrong property for password storage, since it makes brute-forcing cheap. Bcrypt is deliberately slow and salted, which is what password hashing needs. Use the Hash Generator for file integrity, bcrypt for passwords.

Why does hashing the same password twice give different results?

Bcrypt generates a random salt for every hash, even for identical input — expected and correct. The salt is stored inside the output string itself, so verification still works.

How many salt rounds should I use?

12 is the current baseline — a good balance of security and login speed. Go to 13-14 only if your login latency budget allows it.

Can I reverse a bcrypt hash back to the password?

No — bcrypt is one-way. The only way to check a password is to hash the candidate and compare it to the stored hash, which is what Verify mode does.

What does the $2a$ / $2b$ / $2y$ prefix mean?

It identifies the bcrypt variant. Some older systems only accept $2a$ — if verification fails against a legacy system, check the prefix matches what it expects.

Are passwords sent to a server here?

No — hashing and verification both run in a Web Worker in your browser. That matters more for a password tool than almost anything else on this site — pasting real user passwords into a server-side "free bcrypt generator" is a habit worth breaking.

Related tools