Hash Generator
Hash a string with MD5, SHA-1, SHA-256, SHA-512, or bcrypt. Compare two hashes side by side.
Type input above.01 — Overview
How the Hash Generator works
Hash arbitrary input with the most common algorithms. SHA family uses the Web Crypto API; MD5 uses spark-md5; bcrypt uses bcryptjs with configurable cost. Everything runs in the browser. Compare-mode shows two inputs side by side to verify a match.
02 — Use cases
When to use the Hash Generator
- 01
Verify a download checksum against an SHA-256 hash
- 02
Generate a bcrypt hash for seeding a test user
- 03
Get the SHA-1 of a string for cache busting or ETag generation
- 04
Compare two hashes without copy-pasting them into a diff tool
03 — Examples
Hash Generator examples
hello world (sha-256)
ex 01b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
Canonical SHA-256 of the classic test string.
hunter2 (bcrypt, cost 10)
ex 02$2a$10$N9qo8uLOickgx2ZMRZoMye...
Bcrypt hash with a fresh salt — re-run produces a different hash.
(empty string), SHA-256
ex 03e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
A useful constant to recognise — it means you hashed nothing by mistake.
abc, SHA-256
ex 04ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
The test vector published with FIPS 180-4, handy for checking an implementation.
04 — FAQ
Hash — frequently asked questions
When should I use bcrypt vs SHA-256?
Is MD5 broken?
Does my input leave the browser?
What's a salt, and does this tool add one?
How do I verify a downloaded file's checksum?
What bcrypt cost factor should I use?
05 — Reference
Specs and further reading
The primary sources this tool follows. Where behaviour is defined by a specification, we link the specification rather than a summary of it.
- FIPS 180-4: Secure Hash Standard
NIST — The specification defining SHA-1, SHA-256, SHA-384, and SHA-512.
- SubtleCrypto.digest()
MDN Web Docs — The browser API used to compute every digest locally.
- Password Storage Cheat Sheet
OWASP — Why a general-purpose hash is the wrong choice for storing passwords.
07 — More
Tools that pair with Hash
Password Generator
Generate strong random passwords or memorable passphrases. Length, character classes, bulk mode — all local.
UUID Generator
Generate UUIDs (v1, v4, v7, v8) in bulk, with format options and a validator. Cryptographically random by default.
JWT Encoder & Decoder
Decode any JWT and inspect its header, payload, and signature. Encode new tokens with HS256, RS256, and more.