Hash Generator
Compute MD5, SHA-1, SHA-256, and SHA-512 hashes from text or a file — all locally in your browser.
Hash Generator
🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.
How it works
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.