Checksum verifier
Paste the checksum you were given, add the file or text it is supposed to describe, and get a straight answer. The algorithm is worked out from the length of the value, so there is nothing to configure.
Accepts 32, 40, 64, 96 and 128 character values
How the comparison works
The tool hashes your input with MD5, SHA-1, SHA-256, SHA-384 and SHA-512, then compares the result to the value you pasted. Which one it uses is decided by the length of your value: 32 characters is MD5, 40 is SHA-1, 64 is SHA-256, 96 is SHA-384 and 128 is SHA-512. That is the only reliable signal in the string itself, and it is why the tool never asks you to pick an algorithm.
Before comparing, the pasted text is normalised. These all work:
9e107d9d372bb6826bd81d3542a419d6
9E107D9D372BB6826BD81D3542A419D6
MD5 (ubuntu.iso) = 9e107d9d372bb6826bd81d3542a419d6
9e107d9d372bb6826bd81d3542a419d6 *ubuntu.iso
9e10 7d9d 372b b682 6bd8 1d35 42a4 19d6
Case is ignored, a leading algorithm label is ignored, and an asterisk or filename suffix from
a md5sum output line is ignored. What is not ignored is a missing character: a
31-character value cannot be resized into a valid digest, so the tool reports it rather than
guessing.
When it says no match
A mismatch is information, not a verdict. Work through these in order, because they are ordered by how often they turn out to be the cause:
- The download is incomplete. This is the most common cause by a wide margin. Compare the file size on disk against the size listed on the download page before anything else.
- You picked the wrong digest. Download pages often list MD5, SHA-1 and SHA-256 together. Pasting the SHA-256 value but generating MD5 produces a mismatch that is really a length mismatch.
- A text input gained a character. Trailing newline, trailing space, or a byte order mark pasted in from an editor. Check the byte counter on the MD5 generator.
- The publisher rebuilt the file. Checksums are sometimes generated before a final build step, and nobody re-generated them.
- The file really did change. If the size matches, the checksum does not, and the source is not authoritative, treat the file as untrusted and delete it.
A match is not proof of safety. It proves the bytes match whatever produced the checksum. If an attacker replaced both the file and the checksum on the same server, both will agree. Two things fix that: fetch the checksum from a different channel than the file, or have the publisher sign it. See checksum verification.
Verifying on the command line instead
If you already have a terminal open, the native tools are one command away and handle whole directories at once:
# Linux — -c reads a checksum file and reports OK or FAILED per line
sha256sum -c archive.tar.gz.sha256
# macOS
shasum -a 256 -c archive.tar.gz.sha256
# Windows PowerShell
Get-FileHash .\archive.zip -Algorithm SHA256
The step-by-step checksum guide covers the flag differences between platforms, including the binary versus text mode distinction that trips people up on Windows.
Frequently asked
Can I check a checksum without the original file?
Not meaningfully. A digest only tells you whether two sets of bytes are the same; without the bytes there is nothing to compare. What you can do is look up the value in a service that indexes known-malware hashes, which tells you whether the file is known-bad but not whether it is the file you wanted.
Why does the tool not ask me which algorithm to use?
Because the length of the value determines it, and asking would only create a way to answer wrongly. All five algorithms are computed from your input regardless, so the comparison is always made against the right one.
Does it work for very large files?
Yes. MD5, SHA-1 and SHA-256 are streamed in chunks with no size limit. SHA-384 and SHA-512 are computed by the browser's cryptographic API, which needs the file in memory, so for those two the practical ceiling is a few hundred megabytes. For bigger files, compare the MD5 or SHA-256 value instead.
Is anything sent over the network?
No. The expected value, the text and the file all stay in the page. You can disconnect from the network after the page loads and the verification still works.
Related
- File checksum — generate all three digests for a file.
- Hash identifier — find out what an unknown digest is.
- How to check a checksum — the full walkthrough.
- Checksum verification — signatures, trust and best practice.