Bcrypt Hash Generator & Verifier
Generate secure Bcrypt password hashes and verify plaintext passwords against existing hashes. Configure custom salt rounds (4–14) with zero server uploads.
Runs in your browser · Free, no sign-up · Nothing is stored
About this tool
Passwords should not be stored as plain text or protected only with a fast general-purpose digest such as MD5 or SHA-256. This browser-based bcrypt generator and verifier helps developers create salted bcrypt hashes and test candidate-password matches for development and interoperability checks. Bcrypt uses a per-hash random salt and an adjustable work factor to make each offline password guess more computationally expensive. Hashing and verification occur locally in the browser using bcryptjs, and For production authentication, use a maintained server-side password-hashing library and benchmark the work factor on the target infrastructure. For new systems, evaluate Argon2id where supported.
How to use it
What Is Bcrypt?
Bcrypt is an adaptive password-hashing function designed by Niels Provos and David Mazières and introduced in OpenBSD. It uses a 128-bit salt and a configurable cost factor based on the Blowfish key schedule.
A bcrypt hash is normally represented as a 60-character string containing the algorithm version, cost factor, encoded salt, and checksum. The complete string is stored in the password-hash field and provides the parameters required to verify a future candidate password. Bcrypt has a commonly implemented input limit of 72 bytes, so applications must handle long and Unicode passwords consistently. The cost factor is a base-2 work parameter: each increment approximately doubles the hashing and verification work.
How to use it
- On the "Generate Bcrypt Hash" tab, type a test password. Do not enter a real production password.
- Adjust the cost factor between 4 and 14. Values 4–9 are for testing only; 10 is the minimum referenced by OWASP, but production systems should benchmark the highest practical cost on their own infrastructure. Higher values may briefly reduce browser responsiveness.
- Click "Generate Bcrypt Hash" and copy the resulting 60-character string. The salt is embedded in the hash — store the complete string exactly as generated and do not reuse salts across users.
- On the "Verify Password Match" tab, paste a candidate password and a bcrypt hash, then click "Verify Password Match" to check the result.
Why use this over alternatives
This utility generates and verifies bcrypt hashes locally in your browser using the bcryptjs library. It is intended for development, interoperability testing, and debugging. Production password hashing and verification should run in a trusted server-side authentication environment using a maintained library and an organization-approved configuration. Bcrypt is one part of password security — production systems should also use HTTPS, breached-password checks, login rate limiting, secure session handling, and multi-factor authentication where appropriate.
Questions
- Does bcrypt have a maximum password length?
- Bcrypt processes only a limited number of password bytes, commonly 72 bytes. This is a byte limit rather than a character limit, so Unicode passwords may reach it with fewer than 72 visible characters. Some implementations silently truncate extra input, so production systems should define and test a consistent password-length policy rather than accepting text that will not be fully processed.
- Can a bcrypt hash be decrypted?
- Bcrypt is a one-way password-hashing function and does not provide a decryption operation. However, an attacker who obtains a hash can repeatedly test candidate passwords until one matches. Weak, reused, common, or previously exposed passwords may therefore still be discovered through offline guessing.
- Will this hash work with every bcrypt library?
- Bcrypt hashes include a version prefix, cost factor, salt, and checksum in one 60-character string. Compatibility can vary between libraries and platforms, particularly across prefixes such as $2a$, $2b$, and $2y$. This tool generates $2b$ hashes. Test generated hashes with the exact backend library and version used by your application before deployment.
- Are my passwords sent to a server?
- Hashing and verification are performed in your browser using client-side JavaScript. As a security precaution, use test or fictional passwords here — avoid entering active production passwords into any web-based utility, particularly on shared, managed, or untrusted devices.
Related tools
All security tools- Hash GeneratorGenerate cryptographic SHA-1, SHA-256, SHA-384, or SHA-512 hashes for any text using the browser Web Crypto API
- JWT DecoderDecode JWT tokens into readable JSON header and payload
- Secure Password GeneratorGenerate strong, random passwords instantly
- RSA Key Pair GeneratorGenerate cryptographically secure 2048-bit and 4096-bit RSA public and private key pairs