Hash Generator
Compute MD5, SHA-1, SHA-256, and SHA-512 hashes from text or a file — all locally in your browser.
Hash Generator
- MD5 · 128-bitBroken for security (collisions in seconds). Fine for checksums and cache keys only.
- SHA-1 · 160-bitDeprecated — practical collisions since 2017 (SHAttered). Avoid for signatures.
- SHA-256 · 256-bitThe modern default for integrity, signatures and HMAC.
- SHA-512 · 512-bitStronger margin and often faster on 64-bit CPUs.
- Passwords?Never store plain hashes — use Argon2id, scrypt or bcrypt with a salt.
Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
About the Hash Generator
A hash is a fixed-length fingerprint of data. The same input always produces the same hash, but even a one-character change produces a completely different result, and you can't reverse a hash back into the original. Hashes are used to verify file integrity, compare data without storing it, and index content.
This tool computes four common algorithms. The SHA-1, SHA-256, and SHA-512 hashes are calculated with the browser's native SubtleCrypto API, which is fast and well tested. MD5 is included via a small self-hosted library because SubtleCrypto doesn't provide it — MD5 remains widely used for non-security checksums like verifying a download.
You can hash typed text (updated automatically as you type) or drop in a file, which is read locally with FileReader and never uploaded. A note on security: MD5 and SHA-1 are considered broken for cryptographic purposes and should not be used to protect passwords or signatures — prefer SHA-256 or SHA-512 for anything security-sensitive. For password storage specifically, a purpose-built algorithm like bcrypt or Argon2 is the right choice.