⚡
usefultools.dev
$2b$

Bcrypt Generator & Checker

NEW

Hash text with bcrypt at a cost of 4 to 14, or check whether a text matches an existing bcrypt hash.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Hash text

Each +1 in cost doubles the time. Costs of 13–14 can take many seconds on a phone; the page stays usable while it works.

Check text against a hash

⚡

Quick Examples

Typical inputs and the results this tool produces.

Check
hello with hash $2b$04$abcdefghijklmnopqrstuuwHJMEGjfAzmL1lWmUmlphguIbWfjYey
Match
Check
Hello (capital H) with the same hash
No match
Check
correct horse with hash $2b$10$abcdefghijklmnopqrstuu23JPZtHcGhwXSF41f93o/7vBdDut3Xu
Match, version 2b, cost 10
Parse
Hash $2b$10$abcdefghijklmnopqrstuu23JPZtHcGhwXSF41f93o/7vBdDut3Xu
Salt abcdefghijklmnopqrstuu
📖

Overview

bcrypt is a password hashing function that mixes a random salt into every hash and repeats its work 2^cost times, which makes brute-force guessing slow on purpose. A bcrypt hash is 60 characters long and stores its version, cost and salt, for example $2b$10$.

This tool hashes text with bcryptjs at any cost from 4 to 14 and shows a busy state while it works, because higher costs take noticeably longer. The checker compares a text with a hash and reports the version, cost and salt it found. Hashing the same text twice gives different results, since the salt is random.

Why use this tool?

  • Create a bcrypt hash for seed data, fixtures or config files
  • Check a password against a stored hash while debugging
  • See the cost and salt inside any bcrypt hash
  • Warns when text is past bcrypt’s 72-byte limit
⭐

Features

🎚️

Cost 4 to 14

Choose the work factor; the list shows how many iterations each cost means.

⏳

Busy state

Buttons show progress while a slow hash or comparison is running.

✅

Hash checker

Compare text with a hash and get a clear match or no-match result.

🧂

Hash details

Read the version, cost and 22-character salt from a hash you paste.

⚠️

72-byte warning

Alerts you when the UTF-8 input is longer than bcrypt can use.

🔒

Runs locally

Hashing is done in your browser with bcryptjs; no text is uploaded.

🛠️

How to Use

1

Enter the text

Type the test password or string you want to hash.

2

Pick a cost

Use 10 as a starting point; raise it for more work per hash.

3

Generate the hash

Press Generate hash and wait for the result, then copy it.

4

Check a hash

In the second block, enter text and a hash, then press Compare.

🤔

Frequently Asked Questions