Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files in your browser. Verify checksums, fingerprints, and detect tampering without uploading anything.
UTF-8 encoded. 0 characters.
What is a hash function?
A cryptographic hash function takes input of any length and produces a fixed-size fingerprint. The same input always produces the same output, while even a one-byte change produces a wildly different result. This makes hashes ideal for verifying integrity, deduplicating files, indexing large blobs, and signing payloads.
When you download an installer or release archive, the publisher often lists a SHA-256 digest. Hashing the file locally and comparing the digest confirms the download wasn't corrupted or tampered with in transit.
Which algorithm should you use?
| Algorithm | Output length | When to use |
|---|---|---|
| MD5 | 128 bits | Non-security checksums and dedup. Broken for cryptographic use. |
| SHA-1 | 160 bits | Legacy. Avoid for new systems; collisions are practical. |
| SHA-256 | 256 bits | Modern default. Used by TLS, Bitcoin, Git object hashes, package checksums. |
| SHA-384 | 384 bits | Higher security margin for long-lived signatures. |
| SHA-512 | 512 bits | High security; faster than SHA-256 on 64-bit CPUs. |
MD5 and SHA-1 are computed via a built-in pure-JS implementation since browsers expose only SHA-2 family in Web Crypto.
Privacy first
Both text and file hashing run entirely in your browser using Web Crypto where available. No file or string ever leaves your device.