Bcrypt Hash Generator

Create bcrypt password hashes and check a password against an existing hash.

How to Use Bcrypt Hash Generator

  1. Type the password or text to hash.
  2. Set Rounds (10 is a common default) and click Generate Hash.
  3. To check a password, enter it and the hash under Verify Hash, then click Check Match.

Reading a bcrypt hash

A bcrypt hash is 60 characters, for example $2b$10$ followed by 53 more. The $2b$ part is the version, 10 is the cost, the next 22 characters are a random salt and the last 31 are the hash itself. Because the salt is random and stored inside the hash, the same password gives a different hash every time, and any of them will verify correctly.

The cost sets how much work each hash takes. Every step up doubles the time: 10 is quick, 12 is a popular choice for servers, and this tool stops at 15 because higher costs can take minutes in a browser. Pick the highest cost your server can handle during login without feeling slow.

Limits worth knowing

Bcrypt only reads the first 72 bytes of a password; the tool warns you if your text is longer. The hash is made in your browser with bcryptjs, which produces standard hashes that PHP's password_verify, Node's bcrypt, Python's bcrypt and Spring Security all accept.

Key Features & Practical Use Cases

  • Creating a hashed password to put in a seed file, test database or config.
  • Checking whether a password matches a hash from your database while debugging a login.
  • Seeing how much longer each extra round takes before choosing a cost for your app.

Frequently Asked Questions

Why does the same password give a different hash each time?

Each hash gets a new random salt. That's intended: it stops attackers from using precomputed tables.

What's the difference between $2a$, $2b$ and $2y$?

They are versions of the same algorithm that differ in an old edge-case fix. Most libraries accept all three, and the checker here does too.

How many rounds should I use?

Start at 10 to 12 and measure on your server. Aim for around a quarter of a second per hash.

Is my password sent anywhere?

No. Hashing and checking run in your browser.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • JWT Generator - Create HS256 signed JSON Web Tokens for testing, with your own payload and secret.
  • Base64 Encoder/Decoder - Encode text to Base64 or decode it back, with UTF-8 and URL-safe support.
  • URL Encoder/Decoder - Encode special characters in URLs (percent-encoding) or decode them.
  • HTML Encoder/Decoder - Escape special characters as HTML entities, or decode entities back to plain text.
  • JWT Decoder - Read the header, payload and expiry of a JSON Web Token in your browser.
  • Hash Generator - Get MD5, SHA-1, SHA-256 and SHA-512 hashes of any text as you type.