What Is a Cryptographic Hash?
A cryptographic hash function takes any input — a text string, a file, a password — and produces a fixed-length string called a digest or hash. Even a tiny change in the input produces a completely different hash (the avalanche effect). Hashes are one-way: you cannot reconstruct the original data from the hash alone.
Supported Algorithms
| Algorithm | Output Length | Status | Common Use |
|---|---|---|---|
| SHA-256 | 64 hex chars (256 bits) | Secure ✓ | Code signing, TLS, passwords |
| SHA-512 | 128 hex chars (512 bits) | Secure ✓ | High-security checksums |
| SHA-1 | 40 hex chars (160 bits) | Deprecated | Legacy compatibility |
| MD5 | 32 hex chars (128 bits) | Broken | Non-security file checksums |
How This Tool Works
SHA-1, SHA-256, and SHA-512 use the browser’s built-in Web Crypto API (crypto.subtle.digest()). MD5 is computed via a pure-JavaScript implementation because browsers removed MD5 from SubtleCrypto due to known collision vulnerabilities.
All computation runs locally — no data is ever sent to a server.
Verifying File Integrity
When you download software, the provider often publishes a checksum. To verify:
- Select the downloaded file using the File tab
- Choose the algorithm matching the published checksum (usually SHA-256)
- Paste the expected hash into the Compare field
- A green match confirms the file is unmodified
Hash Comparison
The Compare field accepts hashes in any case (uppercase or lowercase) — comparison is case-insensitive. Leading and trailing whitespace is automatically trimmed.
When to Use Each Algorithm
SHA-256 — the modern standard. Use for file integrity, digital signatures, and any new implementation.
SHA-512 — larger digest, slightly higher security margin. Preferred in high-security contexts and is faster than SHA-256 on some 64-bit CPUs.
SHA-1 — still found in older software and legacy systems. Do not use for new security-sensitive work; collision attacks are practical.
MD5 — widely used for quick file checksums where security is not the goal. Never use for passwords, authentication, or digital signatures.
Privacy
This tool makes zero network requests. Open your browser’s Developer Tools → Network tab and hash something — you will see no outgoing connections. Your input never leaves your device.