Bcrypt & Argon2 Hash Generator · Bcrypt Argon2 Validator

Hash and verify passwords with bcrypt or Argon2id, with adjustable cost parameters.

Updated:

100% client-side

Password

10 (1,024 rounds)

Higher cost = exponentially slower to brute-force, and slower to hash. OWASP suggests tuning for ~250ms+ per hash on your production hardware.

Hash

—

Check a password against a hash

Result

Enter a password and a hash to check.

What is a password hash?

Storing a user's actual password in a database is dangerous — anyone who breaches that database gets every password in plain text. A password hash is a one-way scrambled version of the password: it's computationally cheap to check that a password matches a hash, but effectively impossible to reverse the hash back into the original password. Bcrypt and Argon2id are two well-tested hashing algorithms built specifically for passwords, deliberately slow so brute-forcing them is expensive.

How to use the Bcrypt & Argon2 hash generator

  1. Choose Hash to create a new hash, or Verify to check a password against an existing hash.
  2. In Hash mode: enter a password, pick bcrypt or Argon2id, adjust the cost parameters if needed, and click Hash password.
  3. In Verify mode: enter the password and paste the existing hash, then click Verify to see whether they match.
  4. Click Copy to copy the generated hash.

How bcrypt's cost factor works

Bcrypt runs its internal key-stretching routine 2^cost times before producing a hash. Cost 10 means 1,024 rounds; cost 12 means 4,096 rounds — every single increment doubles the work an attacker's brute-force loop has to repeat per guess:

Cost factorRounds (2^cost)
101,024
112,048
124,096

This tool hashes and verifies entirely with self-hosted implementations — bcrypt.js for bcrypt, and a WebAssembly build of Argon2 for Argon2id — no server call, no network request, ever.

Argon2id's three cost parameters (RFC 9106)

Unlike bcrypt's single cost factor, Argon2 tunes three independent knobs: memory cost (how much RAM each hash attempt must allocate — this is what makes Argon2 expensive to attack with GPUs/ASICs, which have comparatively little fast memory per core), time cost (iteration count), and parallelism (thread count). This tool defaults to 19 MiB / 2 iterations / 1 thread, RFC 9106's baseline for memory-constrained environments; increase memory cost first if you need more headroom, since that's Argon2's primary defense.

Examples

Both algorithms add a random salt, so hashing the same password again gives a different string every time; verification still works because the salt is stored inside the hash. The hashes below were generated with this tool, and Python's bcrypt and argon2-cffi packages also accepted them for the same password.

1. Store a bcrypt hash at cost 12, then check logins against it. The usual sign-up and login flow: hash once, save the string, verify on every login. A single changed letter fails. Hashing took 314 ms on our test machine; expect a different time on yours:

Password:  correct horse battery staple
Cost:      12 (4,096 rounds)
Hash:      $2a$12$k5I6Uaeaa1ZlKbtrPNeqd.rwMzv71vpRaiFScMbUS0/bTXUuQj..K

Verify "correct horse battery staple" → Match — this password produces this hash.
Verify "Correct horse battery staple" → No match — this password doesn't produce this hash.

2. Read an Argon2id hash made with the OWASP baseline. With the default 19 MiB / 2 iterations / 1 thread, the output is a self-describing string. It records its own parameters, so hashes you stored earlier still verify after you raise the defaults:

$argon2id$v=19$m=19456,t=2,p=1$i0MmogRRK/dYGwpmic0+vQ$R3HC5/uLycck37xOxtcqN9oea6czRVlsR1ArdvbpubU

argon2id                 algorithm
v=19                     Argon2 version 0x13
m=19456,t=2,p=1          memory in KiB, iterations, parallelism
i0MmogRRK/dYGwpmic0+vQ   16-byte salt (Base64, no padding)
R3HC5/uLycck…            32-byte hash

Before you hash anything, the password strength checker shows how guessable the password is in the first place. Don't use a plain digest from the SHA-256 hash generator to store passwords either: it is built to be fast, and fast hashes are cheap to brute-force.

Reference: RFC 9106 (Argon2).

Frequently asked questions

Why does the cost factor matter?

Bcrypt's cost factor sets the number of key-stretching rounds as 2^cost — cost 10 means 1,024 rounds, cost 12 means 4,096 rounds. Each +1 doubles the work an attacker needs to brute-force a single guess, which is why bcrypt stays resistant even as hardware gets faster.

Is my password sent to any server?

No. Hashing and verification run entirely in your browser using self-hosted bcrypt and Argon2id (WebAssembly) implementations; nothing is ever transmitted or logged.

Does this support Argon2?

Yes. Argon2id is fully supported for hashing and verification, with editable memory cost, time cost and parallelism parameters per RFC 9106.

What cost factor should I use?

OWASP recommends a cost factor that takes at least ~250ms per hash on your production hardware — commonly 10 to 12 for typical servers in 2026. Higher is safer but slower; test on your actual hardware.