Hash Generator

Hash a string with MD5, SHA-1, SHA-256, SHA-512, or bcrypt. Compare two hashes side by side.

SHA-256 · no output
Type input above.

01 — Overview

How it 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 it

  1. 01

    Verify a download checksum against an SHA-256 hash

  2. 02

    Generate a bcrypt hash for seeding a test user

  3. 03

    Get the SHA-1 of a string for cache busting or ETag generation

  4. 04

    Compare two hashes without copy-pasting them into a diff tool

03 — Examples

Real input, real output

hello world (sha-256)

ex 01

b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

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.

04 — FAQ

Frequently asked

Use bcrypt (or argon2) for passwords — it's deliberately slow and salts each hash to resist brute force. Use SHA-256 for checksums, signatures, and deduplication where speed matters.

05 — More

Tools that pair well