Skip to main content

Bcrypt Generator & Checker

Generate bcrypt password hashes with a cost factor from 4 to 15 and check a password against any $2a$, $2b$ or $2y$ hash. Runs in your browser.

100% client-side · no data leaves your browser

Generate a hash

0 bytes (UTF-8)

10–12 is typical for web logins; each step doubles the time.

$2y$ for PHP / Laravel

Verify a password

About this tool

Hash a password with bcrypt, the slow, salted algorithm most web frameworks use to store passwords. Choose the cost factor (each step doubles the work), see how long it takes on your device, and pick the $2b$ prefix or $2y$ for PHP and Laravel. Paste a hash to check whether a password matches it, and see the hash's version, cost, salt and checksum. Passwords longer than bcrypt's 72-byte limit are flagged. Hashing runs in small steps with a progress bar, so the page stays responsive even at high costs, and nothing leaves your browser.

How to create and check a bcrypt hash

Hash a password with bcrypt, then verify it.

  1. 1

    Type the password

    Enter the password and choose a cost factor; 10–12 is typical.

  2. 2

    Generate the hash

    Click Generate hash and copy the 60-character result.

  3. 3

    Verify

    Paste a password and a hash on the right and click Verify to see whether they match.