Categories
Bcrypt Hash Generator
Generate a bcrypt hash from a password or other text, and verify it against an existing hash.
Overview
Generates a bcrypt hash from a password or other piece of text.
Also lets you verify whether a given text matches an existing bcrypt hash.
Bcrypt has a built-in salt, so hashing the same text again always produces a different hash.
Usage
- 1
Select "Generate hash" or "Verify" as the mode.
- 2
In hash generation mode, enter the text and a cost factor (rounds), then click "Generate hash".
- 3
In verify mode, enter the text and an existing bcrypt hash, then click "Verify" to see whether they match.
Example
Input
Text: hello world Rounds: 10
Output
$2b$10$VECKrCRCaNq0J3VSfPUn5egw5gVCfZuj.FcvnR6hxnHcSVPRqeGoi
Use Cases
Preparing test bcrypt hash values locally while implementing backend user authentication
Checking whether a bcrypt hash stored in a database was generated from the expected password
Comparing hash generation time across different cost factors (rounds)
FAQ
Is the text or hash I enter sent anywhere?
No. Everything is processed in your browser using JavaScript (bcryptjs) and is never sent to an external server.
What is a good cost factor (rounds) to use?
A value around 10-12 is generally recommended. Higher values are more secure but take longer to compute.
Why does the hash change every time I generate it?
Bcrypt embeds a random salt on every hash generation, so the same text produces a different hash each time. This is expected behavior.
Notes
The cost factor can be set between 4 and 15. Higher values take longer to compute.
Do not enter a password that is actually used in production here.
The generated result exists only on the page and is lost on reload, so copy and save it if you need to keep it.
Related Tools
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hash values from text.
Generate multiple passwords by specifying character types and length.
Generate an HMAC from a message, secret, and algorithm.