Who this helps
- Developers checking bcrypt interoperability
- Learners comparing salts and work factors
Developer Security Utility
Convert passwords or text into bcrypt hashes and quickly verify whether the original text matches a bcrypt hash directly in the browser.
This page is a bcrypt tool for development testing and learning. Do not expose real user passwords in the browser; handle production passwords safely in server-side authentication logic.
Enter a password or text to hash, then choose a Cost Factor.
bcrypt is a one-way hash, so the original text cannot be decrypted from the generated hash.
Higher values take longer to compute but make brute-force attacks more expensive.
Because bcrypt includes a salt, the same text produces different hashes.
Copy the generated bcrypt hash or save it as a TXT file.
Enter the original text, then click Generate bcrypt Hash.
Check whether the original text and bcrypt hash match.
A typical bcrypt hash includes a $2a$, $2b$, or $2y$ prefix and is usually 60 characters long.
Generate salted bcrypt hashes and compare them with a test input. The tool preserves spaces and rejects inputs over 72 UTF-8 bytes instead of silently truncating them.
Use a disposable test string.
Check leading and trailing spaces and the UTF-8 byte length.
Choose the work factor and number of hashes.
Generate and compare the different salted outputs.
Use the verification form with the same exact input, then test with your server library.
Each can verify against the same original input.
The visible string-length counter is not a UTF-8 byte counter.
The bundled bcrypt library generates salts and hashes asynchronously. TextEncoder checks the 72-byte limit before generation and comparison. The input is not trimmed, so spaces are significant.
Processing is local; use test values. Copied hashes and downloaded files can remain on your device.
Choose length and character types to generate a hard-to-guess random password. The password is generated in your browser with strength, entropy, and character set details.
Generate UUID v1 and UUID v4 at the same time and compare the differences between time-based and random-based UUIDs.
No. Verification tests whether a candidate input matches the stored hash.
A new random salt is included in each generated hash.
No. A value with surrounding spaces is a different input.