About the Bcrypt Generator
Create bcrypt hashes for passwords with your chosen cost factor, or check whether a password matches a bcrypt hash. Hashing runs locally, so passwords never leave your device.
Key features
- Generate bcrypt hashes
- Verify a password against a hash
- Cost factor from 4 to 14
- Random salt for every hash
- Warns about the 72-byte limit
- Private: passwords never leave your browser
Hash and check passwords with bcrypt
Generate a bcrypt hash to seed a test user, check whether a password matches a hash from your database, or see how long different cost factors take on your device. Everything runs locally in your browser.
Anatomy of a bcrypt hash
$2b$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
└┬┘└┬┘└──────────┬─────────┘└──────────────┬──────────────┘
version cost 22-character salt 31-character hash
Cost factor and speed
| Cost | Relative work |
|---|---|
| 10 | 1× (1,024 rounds) |
| 11 | 2× |
| 12 | 4× |
| 13 | 8× |
| 14 | 16× |
Good practice
- Never store plain passwords or fast hashes such as MD5 or SHA-256 for passwords.
- Don't use real production passwords in online tools, even ones that run locally like this.
- Consider Argon2id for new systems; it's the winner of the Password Hashing Competition. bcrypt is still a solid, widely supported choice.
Related tools
Password generator, hash generator, and UUID generator.
How to use the Bcrypt Generator
- Enter your value in the fields above, or start from one of the examples or presets.
- Results update instantly as you type.
- Read the breakdown to understand each part of the result.
- Copy what you need with the copy buttons. Everything runs in your browser.