Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 Hashes Locally
Hash Generator calculates cryptographic digests for plain text or local files directly inside your browser using the Web Crypto crypto.subtle.digest() API (plus client-side MD5). Compare generated hashes against expected checksums to verify downloads, API payloads, or release artifacts with zero server uploads.
Supported Hash Algorithms
| Algorithm | Digest Length | Common Use Cases |
|---|---|---|
| MD5 | 128-bit (32 hex chars) | Legacy checksums, ETag verification (not for security) |
| SHA-1 | 160-bit (40 hex chars) | Legacy Git commit refs and older integrity checks |
| SHA-256 | 256-bit (64 hex chars) | Software release verification, TLS, modern checksums |
| SHA-384 | 384-bit (96 hex chars) | Subresource Integrity (integrity="sha384-...") tags |
| SHA-512 | 512-bit (128 hex chars) | High-security integrity checks and 64-bit server pipelines |
Verifying File Integrity
- Paste a published SHA-256 checksum into the comparison box to get an instant exact-match check (case-insensitive).
- Need to hash large binary files without pasting text? Use File Hash, or explore Encrypt Text, Base64, and all Security Tools.
Frequently asked questions
Should I use SHA-256 or MD5 for file verification?
SHA-256 is the current standard for verifying downloads and generating secure content fingerprints. MD5 and SHA-1 are vulnerable to collision attacks and should only be used when matching legacy checksums.
Can a hash generated here be reversed or decrypted?
No. Cryptographic hash functions are one-way digests—you cannot reverse a SHA-256 or MD5 hash back to the original input text.
Why does my hash differ if there is an extra space or newline?
Yes. Even a single trailing newline or space changes the entire hash output (the avalanche effect). Make sure line endings match when comparing text hashes across systems.