Hash Generator & File Integrity Checker
Generate SHA-256, SHA-512, SHA-384, SHA-1 and MD5 checksums, verify downloads without uploading anything, compare expected hashes and sign or verify HMAC webhook payloads locally. Files never leave your browser.
Private by design
Verify downloads without uploading anything. Hashing, comparison and HMAC signing run on your machine, and this page ships without analytics or advertising scripts.
Hash results
Type text or choose a file to calculate hashes.
Why verify downloads without uploading them?
Checksum verification answers a simple question: are these bytes exactly the bytes the publisher released? It catches truncated downloads, corrupted mirrors, damaged backups and accidental file mixups. Many online checksum tools ask you to upload the file first, which is the wrong tradeoff when the file is an installer, a disk image, a database export or proprietary source code. Here the browser reads the file locally in chunks and calculates the digest on your machine, so verification does not require trusting a server with the file itself.
How checksum-file verification works
Unix checksum tools use a small text format: the lowercase hex digest, two spaces, then the filename. A line for SHA-256 looks like ba7816bf… release.tar.gz. Save one or more lines in a file and run sha256sum -c checksums.txt; matching files print OK. The copy button next to each file result uses that format, so you can paste it directly into a checksum file or compare it with the publisher’s release notes.
The important detail is that the checksum covers bytes, not names, timestamps or metadata. Renaming a file does not change its hash; changing one bit inside it produces a completely different digest.
MD5 is broken, but not useless
MD5 and SHA-1 are collision-broken: a motivated attacker can create two different inputs with the same digest. Never use them as proof that a file came from a trusted publisher when the file or checksum may have been tampered with. SHA-256 or SHA-512 are the right default for security-sensitive verification.
MD5 still appears everywhere in legacy release notes, object storage metadata and old backup systems. In those contexts it can still detect accidental corruption, bit rot or an incomplete copy. Treat it as an integrity check against random damage, not as a defense against a deliberate attacker.
HMAC versus a plain hash
A plain hash is public: anyone can calculate SHA-256 of a payload. HMAC combines the payload with a shared secret using a standardized construction, producing a signature that cannot be recomputed without that secret. This is why webhook providers sign raw request bodies with HMAC. When verifying one, use the exact bytes received — parsing and re-serializing JSON, changing whitespace or altering line endings will produce a different signature.
Why doesn't my hash match? The byte inspector
The most common checksum mystery: two strings look identical, yet their hashes differ. The cause is almost always invisible bytes. A trailing newline copied from a terminal, CRLF line endings from Windows, a UTF-8 BOM added by an editor, or zero-width Unicode characters smuggled in by copy-paste all change the bytes — and one changed byte means a completely different hash. The byte inspector under the text input shows exactly what is being hashed: the UTF-8 byte count, a hex dump of the first bytes with control characters highlighted, and warning chips for trailing newlines, CRLF, BOM and zero-width characters.
Unicode adds another trap: the same visible text can be encoded in canonically different ways. café can be stored as a single precomposed codepoint (NFC) or as e plus a combining accent (NFD) — macOS and Java ecosystems often produce NFD, most other systems NFC. The normalization toggle lets you hash the NFC or NFD form explicitly when you need to match a system that normalizes.
Git blob hashes and signed webhook testing
Git does not hash raw file contents. A blob object id is the SHA-1 of blob <byte-length>\0 followed by the content bytes — the same construction git hash-object uses. Every result panel includes that Git blob SHA-1, so you can reproduce object ids without installing Git or staging anything.
The HMAC tab also works in reverse: instead of only verifying incoming webhooks, it generates a correctly signed test request for your own endpoint. Pick GitHub, Stripe or Slack, enter the secret and payload, and copy the generated curl command — it carries the right signature header for the provider (X-Hub-Signature-256, Stripe-Signature with timestamp, or Slack's v0 scheme) with the exact payload bytes embedded. Fire it against your local handler to test verification logic without waiting for a real event. The secret never leaves this tab and is never written into share links.
Related tools
- JWT Decoder & Debugger — inspect and verify signed tokens locally.
- Diff Checker — compare config files and payload versions without uploading them.
- cURL Command Studio — build and debug HTTP requests for webhook testing.
Frequently asked questions
How do I generate a SHA-256 hash online?
Paste text into the text tab or drop a file into the file tab. The tool calculates SHA-256 along with SHA-512, SHA-384, SHA-1 and MD5. Text hashing uses your browser’s native WebCrypto API, and file hashing streams the file locally in chunks. Nothing is uploaded.
How do I verify a SHA-256 checksum after downloading a file?
Copy the checksum published by the download site, drop the downloaded file into this tool, then paste the expected checksum into the comparison field. The comparison tolerates uppercase letters, spaces and common prefixes such as sha256=. A green result means the file bytes match the published checksum.
Is it safe to use MD5 for file integrity checks?
MD5 is broken for collision resistance, so it must not be trusted when an attacker can craft both files. It is still useful for detecting accidental corruption in downloads, backups and file transfers when the checksum comes from a trusted source. For security-sensitive verification, prefer SHA-256 or SHA-512.
Does this file hash checker upload my files?
No. Files are read with the browser File API in chunks and hashed locally. The page has no backend, and analytics and advertising scripts are disabled on it. You can open your browser network tools and confirm that the file bytes are never transmitted.
What is the difference between a hash and HMAC?
A plain hash proves that bytes match other bytes, but anyone can recompute it. HMAC mixes the message with a secret key, so only someone who knows that secret can produce or verify the signature. That is why webhook providers such as GitHub and Stripe sign webhook payloads with HMAC.
Can I verify GitHub or Stripe webhook signatures with this tool?
Yes. Paste the exact raw request body into the HMAC tab, enter the webhook secret, choose the required algorithm and compare the generated hex signature with the one sent by the provider. GitHub commonly uses a sha256= prefix; Stripe sends several signature values in its Stripe-Signature header. Use the raw body exactly as received, because even whitespace changes alter the signature.
Can I copy a checksum in sha256sum format?
Yes. After hashing a file, use the checksum copy button next to a result. It copies the hash followed by two spaces and the filename, the format accepted by sha256sum -c and the corresponding md5sum, sha1sum, sha384sum and sha512sum tools.