A download can go wrong quietly. The connection drops for a second, a mirror serves a stale or tampered copy, or the file that arrives is simply not the file the publisher released, and nothing about its name or size looks obviously wrong. Publishers who take this seriously print a checksum next to the download: a short string computed from the file's exact bytes, which you can recompute at your end and compare.
That comparison is the whole verification. This guide explains what a hash is, why a single different character settles the question, and how to check one with the free File Hash and Info Report on Ovatly, which reads the file in your browser and uploads nothing.
Contents
- Quick answer
- What a hash actually is
- MD5 or SHA-256: which one to trust
- How to check a file's hash, step by step
- Worked example: the classic abc check
- What else the report tells you
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Find the checksum the publisher lists for your download, then open the File Hash and Info Report, choose the downloaded file, and compare the MD5 or SHA-256 it reports against the published string, character by character. An exact match means the file on your disk is identical to the file the publisher hashed. One different character means it is a different file, and you should download it again from the source rather than use it.
What a hash actually is
A hash function reads a file's bytes and produces a fixed-length string, called the hash or checksum. The same bytes always produce the same string, and the function is built so that changing even one byte of the input produces a completely different string, with no visible pattern connecting the two.
That gives you a fingerprint. You cannot reconstruct the file from its hash, and you cannot predict the hash without computing it, but you can compare two hashes cheaply and settle whether two files are identical. This is why the comparison has to be complete: a hash is not a summary where close is good enough. Thirty-one matching characters out of thirty-two is a mismatch, full stop.
MD5 or SHA-256: which one to trust
The report computes both, because publishers still list both. MD5 produces a 32-character string and has been around for decades, so older download pages and documentation often carry it. It works fine as an identification checksum: if the MD5 you compute matches the published one, the file is consistent with the published value.
But MD5 is not a security proof. Researchers have shown that collisions, two different files with the same MD5, are practical to construct, so someone determined to fool an MD5 check can do it. SHA-256 produces a 64-character string and has no such practical weakness. When a publisher offers both, verify against SHA-256. When only MD5 is offered, treat a match as reassurance against corruption and casual substitution, not as a guarantee.
How to check a file's hash, step by step
- Find the checksum before or right after you download. Publishers put it on the download page, in a checksums file alongside the release, or in the release notes. Copy it exactly.
- Open the File Hash and Info Report and choose the downloaded file with the file box. Nothing is uploaded; the browser reads the file on your device.
- Wait for the progress bar while the fingerprints are computed, then read the report: name, size, type, extension, modified date and both checksums.
- Compare the published checksum with the matching line in the report, character by character, ideally by pasting both into a text editor. Use the copy buttons when you need to share or store a value.
- If the strings match exactly, the file is verified. If they differ at all, delete the download and fetch it again from the publisher's own site.
Worked example: the classic abc check
Before trusting any hash tool with a real download, you can confirm it computes correctly using published test vectors, values the whole field agrees on. Create a text file containing exactly the three characters abc, with no newline at the end, and run it through the tool. It reports a size of 3 bytes and these fingerprints:
MD5: 900150983cd24fb0d6963f7d28e17f72
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Those are the standard published results for the input abc under each algorithm. If your file produces anything else, the usual cause is a hidden newline your editor added, which is itself a neat demonstration of the principle: one extra byte, a totally different hash.
What else the report tells you
Alongside the two checksums, the report lists the file's name, size, type, extension and last-modified date, which is useful when you are identifying an unknown file before sharing it. When the file is readable text, meaning text, Markdown, JSON, code and similar, up to 512 KB, the report also shows a text preview of its contents.
One honest note about the type field: it shows the type your browser reports for the file, which usually comes from its extension, not from inspecting its contents. A file renamed from .zip to .txt will be described the way its name suggests. The hashes, by contrast, are computed from the actual bytes, so they never care what the file is called.
Limitations and honest tradeoffs
Very large files take patience. MD5 is read in 4 MB slices with a progress bar, but SHA-256 reads the file as one block, so a file of hundreds of megabytes can take a while and use noticeable memory while it works. That is the cost of keeping everything local rather than uploading the file to a server for checking.
The check also proves less than people sometimes assume. A matching hash proves your copy is identical to the copy that was hashed; it does not prove the publisher is honest, the software is well written, or the file is free of malware that was there from the start. Verification answers one question, did the file survive the journey unchanged, and answers it completely. The trust decision about the source remains yours.
Common mistakes
- Comparing only the first few characters. Hashes are all or nothing. Paste both strings into a text editor and compare the full length, or use a comparison that checks every character.
- Verifying against MD5 when SHA-256 is listed. MD5 collisions are practical. If the publisher gives you the stronger fingerprint, use it.
- Testing the tool on a file with a trailing newline. Your abc file will not match the published vectors if the editor quietly added a newline. That is the tool working correctly, not failing.
- Trusting the file name or the reported type. Both can lie, or simply be wrong. The hash is computed from the bytes and is the only part of the report that identifies the file itself.
- Treating a match as a safety certificate. It proves the copy is unchanged, not that the original was good. Download from the publisher's own site and verify; those are two separate habits.
FAQs
Is my file uploaded to compute the hash? No. Your browser reads the file locally and does the maths on this device. Nothing leaves your machine, which is exactly what you want when the whole point is checking a file you do not fully trust yet.
How do I verify a download with this? Find the checksum the publisher lists for the file, often on the download page, run the file here, and compare character by character. If one character differs, the file is not the same file, whatever its name says.
Why show both MD5 and SHA-256? Many older publishers still list MD5, so it is included for comparison. SHA-256 is the stronger fingerprint and is what you should prefer when you have the choice.
Why is there no preview for my file? Previews are offered only for text-like files, such as text, Markdown, JSON and code, up to 512 KB. Binary files like photos and archives have no readable preview, so the report shows their fingerprints only.
Does a matching hash prove a file is safe? It proves the bytes on your disk are identical to the bytes the checksum was computed from, nothing more. It confirms the download was not altered or corrupted on the way; whether the publisher itself is trustworthy is a separate judgement.
Conclusion
Verification is a two-minute habit with a binary answer: the strings match, or the file is not what it claims to be. The File Hash and Info Report computes both fingerprints in your browser, shows you the file's basic facts, and leaves the trust decision where it belongs, with you. If you are preparing files rather than checking them, our guide to optimizing SVG code covers shrinking one common web format safely. For more guides in this series, see our File and Data Conversion guides.
References
- MDN Web Docs, on the Web Crypto digest operation browsers use to compute hashes: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
- NIST, the Secure Hash Standard (FIPS 180-4) that defines SHA-256: https://csrc.nist.gov/pubs/fips/180-4/upd1/final