Hash Calculator (MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512)
Compute cryptographic hashes of text or files in your browser. All five major algorithms, no upload.
Utility
Hash Calculator (MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512)
Generated on April 25, 2026
?What is the Hash Calculator (MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512)?
The Hash Calculator computes the cryptographic digest of any text or file using the five most common algorithms: MD5 (128-bit, legacy/integrity-only), SHA-1 (160-bit, deprecated for security), SHA-256 (256-bit, the modern default), SHA-384 and SHA-512 (longer SHA-2 variants used in TLS 1.3, NSA Suite B, and high-assurance contexts). All hashing happens in your browser via the Web Crypto SubtleCrypto API (SHA family) and crypto-js (MD5) — your text and files are never uploaded anywhere. Useful for verifying file downloads against published checksums, generating ETags, debugging signed APIs, and learning how cryptographic primitives produce avalanche-effect outputs from any input.
The Formula
Hash Algorithm Reference — Output Sizes & Use Cases
Side-by-side comparison of supported hash functions.
| Algorithm | Output bits | Hex chars | Security status | Common uses |
|---|---|---|---|---|
| MD5 | 128 | 32 | BROKEN (collisions known since 2004) | Legacy file checksums, ETags |
| SHA-1 | 160 | 40 | DEPRECATED (collisions since 2017) | Git commit IDs, legacy systems |
| SHA-256 | 256 | 64 | Secure (recommended default) | Bitcoin, TLS, HMAC, modern integrity |
| SHA-384 | 384 | 96 | Secure | TLS 1.3, NSA Suite B |
| SHA-512 | 512 | 128 | Secure | Long-output HMAC, high-assurance contexts |
Practical Examples
Verify an ISO download against its published SHA-256 checksum to detect tampering or corruption.
Generate ETags for HTTP caching: hash the response body, send as `ETag: "<hash>"`.
Debug HMAC signatures in API integrations — compute the expected SHA-256 of a known payload + secret to compare.
Git uses SHA-1 for commit IDs (40-character hex strings) — paste a commit's contents to see its hash.
Bitcoin block hashing uses SHA-256 twice (SHA-256(SHA-256(block_header))).
Frequently Asked Questions
Popular Conversions
Jump to a ready-made conversion — useful for quick reference and sharing: