Free · runs in your browser

Bcrypt Hash Verifier

Bcrypt Hash Verifier. Enter a password and a hash, then click Verify to instantly check whether they match. Given an unknown digest, the hash type identifier lists candidate formats such as NTLM, MySQL, phpBB or MD5crypt.

Your values

A full bcrypt hash is exactly 60 characters. The salt and cost factor are read from it.

Case-sensitive. Bcrypt only uses the first 72 bytes.

Result

Result
—
Bcrypt hash
—
Cost factor
—
Hash parts
—
Plain text length used
—
Computation time
—
  • No account, no logging
  • Open formulas explained below
  • Works offline once loaded

Paste a password and a saved hash into this bcrypt hash verifier and you learn in one click whether they belong together. The bcrypt hash generator and verifier also creates a fresh bcrypt hash at the cost factor you choose, so you can compare cost settings, debug a login problem or check a hashing algorithm against your framework. It runs as an online tool, entirely client-side, and nothing you type leaves the page.

Bcrypt Hash Verifier: Check Plaintext Against Your Stored Value

Verification needs two inputs: the candidate plaintext and the stored hash you saved earlier. The tool reads the cost and the salt out of the saved string, hashes your candidate password with those exact settings and compares the two results. A hash match means the password is correct. Nothing is decrypted at any point, because the algorithm is a one-way function. When comparing two checksums, the hash comparison tool shows at a glance whether two hash values differ by even one character.

Here is a worked example. The test password is harbor-Lantern-47!, hashed at cost 12:

$2b$12$GRMXsvyCvpdhcnexuGWGqu/IkK3JFc.aZCW06yYdpm75tWMdD9q7i

Bcrypt Hash Verifier: Check Plaintext Against Your Stored Value
Candidate passwordSaved valueResult
harbor-Lantern-47!the cost 12 string aboveAccepted
harbor-lantern-47!the cost 12 string aboveRejected
harbor-Lantern-47! plus a trailing spacethe cost 12 string aboveRejected

Reading a match or no match result

A no match is an exact answer, not a fuzzy score: one changed capital letter or a stray space produces a completely different output. When you are debugging, first check for copy-paste whitespace before suspecting the hash itself. Because the process is irreversible, the only way to recover a password is to guess it.

Using the Password Hash Generator with Your Cost Factor

The password hash generator works in three steps, and it is a free tool you can repeat as often as you like. For privacy while hashing, a browser-based file checksum generator keeps the file on your device and only shows the resulting hexadecimal hash.

  1. Type the text you want to hash into the generate field.
  2. Choose the cost factor; 12 is the default and the common production starting point.
  3. Click generate, copy the result, then paste it into the verify panel to test it.

Every run produces a different test hash for the same input, because each run draws a new random salt. That is expected, and every one of those strings still verifies.

Picking salt rounds for your cost factor

The cost is an exponent, so each step doubles the work:

Timeline showing bcrypt cost factor 10 to 13 doubling the time per hash from 50 ms to 343 ms
Measured time per hash at each cost: every step doubles the work.

$$\text{iterations} = 2^{\text{cost}}$$

On a laptop, hashing the example password took roughly 45 ms at cost 10, 159 ms at cost 12 and 638 ms at cost 14. Benchmark each setting on the hardware that serves your logins, because latency and user experience are the price you pay for resistance.

Picking salt rounds for your cost factor
CostIterationsMeasured timeTypical use
101,02445 msTests and legacy systems
124,096159 msCommon production default
1416,384638 msHigh-security, low-traffic logins

Reading the $2a$, $2b$ and $2y$ prefix

Every result is a 60-character encoded string. The prefix names the version: $2a$ is the original, $2y$ came from a PHP bug fix and $2b$ is what current libraries write. The verifier accepts all three, then reads the cost from the next two digits.

How Bcrypt Verify Works in a Login Flow

When someone creates an account, your server hashes the password and stores only the result in the database. At login it loads that stored value, runs the bcrypt verify step on the submitted password and accepts the user only on a successful comparison. The adaptive work factor sits inside the stored string, so older accounts keep verifying even after you raise the cost for new ones. Users with the old cost can be rehashed the next time they sign in, which avoids a forced password reset. If a vendor lists a SHA-1 or CRC32 value, use the free file checksum comparator when you need a clear match or mismatch result.

Under the hood the cipher is Blowfish, and the verifier repeats its slow key setup when it re-hashes your candidate password, which is why one check takes a fraction of a second. That cryptographic design is what makes authentication checks cheap for you and expensive for anyone guessing credentials.

How the 60-character string stores its settings

The 60 characters hold the version, the cost, a 22-character salt and a 31-character digest. Salted hashing defeats a precomputed rainbow table, since two users with the same password get different strings, and the slow work factor blunts brute-force and dictionary attacks.

Zone bar splitting a 60-character bcrypt hash into a 4-character prefix, 3-character cost, 22-character salt and 31-character digest
The example hash cut into its four parts, sized by character count.

Why Your Framework Will Not Verify Hash Output

If a hash from this tool fails in your application, the cause is usually small:

  • Version tag: an older library may reject the newer tag; try a version that supports it, or keep the legacy format.
  • 72 bytes: bcrypt reads only the first 72 bytes, so longer inputs are cut off, and multi-byte characters use up that budget faster.
  • Whitespace or line endings copied along with the string.
  • Plain text mismatch: an application that pre-hashes or adds a pepper will never agree with a raw check.

To verify password hash strings from Python, PHP, Java, Node.js or Spring Security, match the library's expected format first. Compatibility is the goal: the browser tool uses bcryptjs, so its output works with the standard libraries.

Checking a Migrated Hash with the Bcrypt Verifier Before Deploy

I am about to raise our login cost from 10 to 12 and want proof that old accounts still verify. I pick a throwaway account with the password tidewater-Quill-2291, paste its stored cost 10 value into the verifier and enter the password. Result: match, so the legacy string is healthy.

Next I generate the same password at cost 12 in the bcrypt hash generator and verifier. It returns $2b$12$gIND7vLvR7voEbcebUv0j.pJ8Iat9L/JhqMnJJ7hkMmSru5ID25Km, and that verifies too. As a cross-check, I recompute both in Python and get the same match.

Checking a Migrated Hash with the Bcrypt Verifier Before Deploy
CostTime per hashAgainst a 250 ms login budget
1053 msWell under
12159 msUnder
13319 msOver

The sensitivity rerun settles it: cost 13 blows past the 250 ms budget my team set, while cost 12 leaves about 90 ms of headroom. The number to watch is the per-login time on the production server, not on my laptop, because a busy server will be slower under load.

One caveat before shipping. A passphrase longer than 72 bytes is not safe to test casually: some builds reject it, while others silently ignore everything after byte 72, so two different long passphrases can match the same hash. If any users have passphrases that long, I would pre-hash them with a documented scheme and migrate those accounts separately rather than trusting this one check. For everyone else, I deploy cost 12 and rehash each account at its next login.

Choosing Between This Bcrypt Generator and Argon2id

Argon2id is the current OWASP first choice for new systems because it is memory-hard, which makes GPU and ASIC cracking far costlier. Bcrypt remains fine at cost 12 or higher for existing deployments, but it is not memory-hard. scrypt also demands lots of memory, and PBKDF2 is the fallback when NIST or FIPS compliance requires it. Do not use SHA-256, MD5 or a bare HMAC for storing passwords; they are built for raw performance, not for resisting guesses.

You can migrate without a mass reset. Keep verifying old accounts with bcrypt, and when a user logs in successfully, store a new Argon2id hash for them.

Where password hashing fits in 2026

Once the verifier confirms your password, remember that password hashing only slows guessing and is one layer of cryptography. The Password Hashing Competition that picked Argon2 made slow, salted functions the standard, and a stored hash protects you only if the password behind it is strong, so a strong password matters more than a higher cost.

Is the Bcrypt Password Checker Safe for Real Passwords?

All work happens in your browser, so the tool never sends or stores what you enter. Even so, treat any web page with care: use test passwords, not live credentials. The encryption question comes up often, so to be clear, you cannot decrypt a hash, with this page or any other.

Production password security checklist

  • After testing a hash here, use a maintained package in your own code rather than pasting secrets into a website.
  • Store only the hash, never the password.
  • Recheck the cost every year as attackers gain faster hardware.

Frequently Asked Questions

How does bcrypt verification work without knowing the original password?
A bcrypt hash embeds its own salt and cost factor in plain text as part of the string (the $2b$10$... prefix). Verification re-runs the exact same bcrypt computation using that embedded salt and cost against the password you supply, then checks whether the resulting hash matches -- it never needs to "decrypt" anything, because bcrypt is a one-way function.
Is it safe to paste a real password into this tool?
The comparison runs entirely in your browser using the audited bcryptjs library -- nothing is transmitted, logged, or stored. That said, treat any tool asking for a real password with healthy caution generally; this one is open about running 100% client-side, and you can confirm that yourself via your browser's network tab (zero requests fire when you click Verify).
Why does it say the hash is invalid?
Bcrypt hashes have a strict format: a version prefix ($2a$, $2b$, $2x$, or $2y$), a two-digit cost factor, and exactly 53 more Base64 characters (in bcrypt's own alphabet) for the salt and digest together. Extra whitespace, a truncated copy-paste, or a hash from a different algorithm entirely (like MD5 or SHA-256) will all fail as "not a valid bcrypt hash."
Can I use this to test a hash generated elsewhere?
Yes -- bcrypt is fully standardized, so a hash produced by any correct implementation (PHP's password_hash, Python's bcrypt library, Node's bcryptjs, Ruby's bcrypt gem) verifies identically here. Use the Bcrypt Generator if you need to create a new hash instead of checking an existing one.
Does the cost factor matter for verification?
You don't need to know or set it -- it's read directly from the hash you paste in, so verification always uses whatever cost factor that specific hash was originally created with, even if it differs from your current default.

About the author

Vinitha Pu

Founder and designer

Vinitha Pu is a graphic designer based in Palakkad, Kerala, who builds free, privacy-friendly browser tools. She studied Textile and Apparel Design at Avinashilingam University and completed a C-Tech in Graphic Design at Image Creative Education in 2025. She designs, builds and maintains the password generators, strength checkers, hash tools and security calculators on PasswordHive.

  • Content author: Vinitha Pu
  • Fact checked by: Vinitha Pu. Each tool's output is checked against official test vectors or a reference implementation, and every strength and crack-time figure against the formula it uses, before it goes live.
  • Published Updated