BCrypt Hash Generator
Generate Hash
Verify Password
Cost: 10 | Iterations: 1,024 | Est. Time: ~100ms
4 = ~1ms (testing) | 10 = ~100ms (standard) | 12 = ~400ms (high security) | 14 = ~1.6s (maximum)
How to Use
Enter Password
Type the password you want to hash. Set cost factor (10 recommended).
Generate Hash
Click "Generate BCrypt Hash" to create a unique salted hash.
Verify or Copy
Verify passwords against hashes, or copy/download the result.
Use Cases
Store user passwords securely in your database.
Verify user login credentials against stored hashes.
Test password hashing in security reviews.
Generate test hashes during application development.
What Is BCrypt Hash Generator?
BCrypt Hash Generator creates and verifies bcrypt password hashes directly in your browser. Enter a password, set the cost factor (salt rounds), and generate a unique salted hash — or paste an existing hash to verify a password against it.
Key Facts
- Modes: Generate a hash and verify a password against a hash
- Cost factor: 4–15 (default 10; higher = slower = more secure)
- Salting: Every hash is unique — bcrypt automatically generates a random salt
- Processing: 100 % browser-based — your password never leaves your device
- Price: Free
- Account required: No
Cost Factor Reference (estimates; actual time varies by device)
| Cost (rounds) | Iterations | Approx. time* | Typical use |
|---|---|---|---|
| 4 | 16 | ~1 ms | Unit tests only — too fast for production |
| 8 | 256 | ~5–10 ms | Low-latency APIs with many concurrent logins |
| 10 | 1 024 | ~100 ms | Standard recommendation for most web apps |
| 12 | 4 096 | ~400 ms | High-security applications |
| 14 | 16 384 | ~1.5 s | Maximum practical for interactive login |
* Measured on a modern mid-range desktop CPU. Mobile devices will be slower.
How to Use
Enter a Password
Type the password you want to hash into the password field. The strength meter updates in real time.
Set Cost Factor
Drag the cost slider. Cost 10 is the standard for most applications. Higher values are more secure but take longer to compute on login.
Generate Hash
Click Generate BCrypt Hash. Because bcrypt uses a random salt, each click produces a different hash even for the same password — this is expected and correct.
Verify (Optional)
Switch to the Verify tab, paste a hash and enter a password, then click Verify Password to confirm whether the password matches the hash.
Common Use Cases
Generate test hashes to verify your application's password hashing and verification logic before going to production.
Explore how cost factor affects hash time, observe the unique salt prefix in the hash string, and verify the one-way property.
Generate known-good bcrypt hashes to seed a development database or debug authentication middleware.
Audit that a stored hash uses an acceptable cost factor by inspecting the prefix (e.g. $2b$10$ = cost 10).