Bcrypt Generator

Runs in browser

Hash and verify bcrypt passwords locally in the browser.

Generate bcrypt password hashes and verify passwords in your browser with bcryptjs. Pick a cost factor and copy hashes — your secrets never leave your device.

Bcrypt Generator tool

Cost factor

Cost 12 is recommended for production.

🔒 Runs in your browser · No uploads · Your data never leaves your device

How to use

  1. Hash a password

    Open the Hash tab, enter a password, choose a cost factor, then click Generate Hash and copy the result.

  2. Verify a password

    Switch to Verify, paste the password and the stored bcrypt hash, then click Verify to see if they match.

  3. Cost factor

    Higher values take longer to compute. Start with 12 unless you have specific performance requirements.

Common use cases

  • Generating a bcrypt hash for password storageCreate a bcrypt hash to store in a database instead of a plain-text password — use cost 12 for a good security/performance balance.
  • Verifying a password against a stored hashTest whether a plaintext password matches a bcrypt hash from your database to debug authentication issues.

Examples

  • Sample hash

    Output format starts with $2a$, $2b$, or $2y$ depending on the library.

    Output
    $2a$12$…

Frequently asked questions

Are passwords sent to a server?
No. Hashing and verification run entirely in your browser with bcryptjs.
What cost factor should I use?
Cost 12 is widely recommended for production; adjust upward if you need stronger resistance and can afford the latency.

Key concepts

Cost factor
The work factor in bcrypt (default 10–12) — determines how many rounds of hashing to perform, making brute-force attacks exponentially slower.
Salt
A random value embedded in the bcrypt hash string that ensures two identical passwords produce different hashes, preventing rainbow table attacks.

You might find these useful too.

More hashing tools