Bcrypt Hash Generator

Generate and verify secure Bcrypt password hashes with configurable cost rounds (4-16), prefix variants ($2a, $2b, $2y), real-time verification, and visual hash breakdown.

100% Client-Side • Zero Server Upload
Plain Text Password 0 chars
Generates in real time as you type Random
Cost Factor / Rounds
10 Standard
4 (16 rds) 210 = 1,024 iterations 16 (65,536 rds)
Recommended for web production. Secure against GPU cracking with ~50ms login response.
Bcrypt Revision / Prefix
$2y$
PHP Standard
$2b$
Node.js / Python
$2a$
Legacy BSD
Real-Time Bcrypt Hash
Waiting for input 60 chars
Output Bcrypt String:
Type any password on the left to generate hash in real time...
Verification Inputs
0/60
Supports all standard $2a$, $2b$, and $2y$ Bcrypt strings.
Match Status Awaiting Input
Ready to Verify

Enter a password and hash to test if they match.

Format Validity: —
Detected Variant: —
Cost Factor: —
Iterations: —
Salt (128-bit): —
Hash Length: —
Password Security Engine 100% In-Browser

Professional Bcrypt Hash Generator & Verifier

Generate and verify cryptographically secure Bcrypt password hashes in your browser with zero server telemetry. Powered by the Blowfish cipher, Bcrypt incorporates automatic salting and a configurable work factor (rounds 4 to 16) to future-proof passwords against offline brute-force and GPU rainbow table cracking. Full support for $2a$, $2b$, and $2y$ prefix revisions, live hash matching, and interactive hash anatomy breakdown.

Key Capabilities & Highlights

Configurable Cost Rounds

Adjust the cost factor from 4 (test) to 16 (high security), with 10 as the production web standard.

Real-Time Hash Verifier

Instantly test any plain text candidate against an existing Bcrypt hash with full diagnostic feedback.

All Major Revisions

Full compatibility with $2y$ (PHP standard), $2b$ (Node.js & Python standard), and $2a$ (legacy).

100% Client-Side Privacy

Zero network transfer. Plaintext passwords, secret salts, and hashes are computed locally and never leave your browser.

How to Use Bcrypt Hash Generator

1
Enter Plain Text Password Type or paste the password string you wish to hash, or click "Sample" / "Strong Password" for instant test credentials.
2
Configure Work Factor & Variant Choose your desired cost rounds (10 recommended) and select your target revision ($2y$ for PHP, $2b$ for Node.js/Python).
3
Generate or Verify Hash Click "Generate Bcrypt Hash" to create a fresh 60-character salted hash, or switch to the Verifier tab to test password matches.
4
Copy or Export Output Use "Copy Hash" to store the hash on your clipboard or inspect the color-coded visual anatomy breakdown.
Developer Pro Tip Bcrypt hashes are exactly 60 characters long and self-contained: the work factor, salt (22 chars), and cipher output (31 chars) are encoded together in the string. You do not need to store the salt separately in your database.

Frequently Asked Questions

7 Answers

Bcrypt is an adaptive cryptographic password-hashing function designed by Niels Provos and David Mazières in 1999, based on the Blowfish cipher. It includes a built-in salt to defend against rainbow table attacks and an adjustable cost factor (work factor) to remain resistant to hardware brute-force attacks as computers become faster.

$2a is the original standard bcrypt specification. $2y was introduced by PHP to resolve an 8-bit character collision bug in older crypt_blowfish implementations, making it the default in PHP's password_hash(). $2b was introduced in OpenBSD 5.5 to fix a length wraparound bug and is commonly used in modern Node.js, Go, and Python libraries. In modern implementations without bugs, all three behave identically.

Cost 10 (1,024 iterations) is the recommended industry standard for web applications, offering a healthy balance between high security (resisting GPU cracking) and fast user login response (~50–100ms). For high-security environments, cost 12 (4,096 iterations) is ideal. Costs below 8 are only suitable for fast local test suites.

No. Bcrypt is a one-way cryptographic hash function, not an encryption algorithm. There is no decryption key to reverse a Bcrypt hash into the original password. Verification works by hashing the candidate password with the identical salt and work factor stored inside the hash and comparing the resulting strings.

No. All Bcrypt hash generation and verification runs 100% client-side inside your browser sandbox via JavaScript. Your plain text passwords, salts, and hashes never cross the network or touch our servers.

No, absolutely not. All tool processing on FormatKit happens 100% client-side in your local browser using JavaScript. Your JSON, JWT tokens, SQL queries, and passwords are never transmitted over the internet to our servers or stored in any database.

Yes! All utilities on FormatKit are completely free to use for both personal and commercial software development projects with no restrictions or registration required.

Keyboard Shortcuts

Generate Hash
Ctrl Enter
Copy Hash
Ctrl Alt C
Clear Inputs
Ctrl Alt K

100% Private & Secure

All computations and transformations execute strictly in your local browser session using client-side JavaScript. Zero tokens, passwords, or data are transmitted over the network or saved to remote databases.