A file can be damaged without looking damaged. A download that stopped a fraction early, a disk that is quietly starting to fail, a copy interrupted halfway: each leaves a file with the right name, roughly the right size, and bytes that are no longer the bytes you were promised. Nothing on screen warns you, because the damage sits at a level no viewer displays.

File integrity is the discipline of proving a copy is still the file it claims to be, and the proof is a hash check. This guide explains how corruption happens, why a hash exposes it so decisively, and how to run the check with the free Hash Checker on Ovatly, which hashes files locally and never uploads them.

Contents

  • Quick answer
  • Corruption is a byte-level event
  • Why one flipped byte changes the whole digest
  • What the check proves, and what it does not
  • How to check a file, step by step
  • Worked example: three letters and one invisible byte
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Corruption is a change in a file's bytes: a truncated transfer, a failing disk or a bad copy. A hash turns that invisible change into a verdict. Compute the file's fingerprint with a hash algorithm such as SHA-256 and compare it with the published one. Because the fingerprint is calculated from every byte, one flipped byte changes it completely, so the answer is never maybe: the copy matches or it does not. Open the Hash Checker, select your file, paste the expected checksum, and read the Match or No match verdict.

Corruption is a byte-level event

A file is a sequence of bytes, and everything you see, the document, the photo, the installer, is an interpretation of that sequence. Corruption means the sequence changed. The causes are mundane: a transfer that ends early leaves the tail missing; a disk with a failing patch writes or reads some bytes wrongly; a copy between drives can be interrupted and resumed from the wrong place, or never finished at all.

None of these events needs to be dramatic. The file may still open: a document might lose its final page; an installer might fail halfway. And some changes are smaller still: a text file that gains a single invisible character at the end is, byte for byte, a different file from the original, even though it reads exactly the same.

That invisibility is the problem. You cannot proofread a million bytes, and file size is too crude to help, because many corruptions change content without changing length. You need a test that reads every byte. That test is a hash.

Why one flipped byte changes the whole digest

A hash algorithm turns a file of any size into a short fixed-length value, the digest. SHA-256 always produces 64 hexadecimal characters, whether the input is three letters or three gigabytes. The digest is no summary or sample: it is computed from every byte, and the algorithms are built so that changing any part of the input scrambles the output entirely.

This sensitivity is deliberate. Two identical files always produce the same digest; two files that differ anywhere, by one byte, by one bit, produce digests that share no visible relationship. There is no score and no percentage: a file that is 99.9 percent intact fails exactly as firmly as one that is half missing, because integrity is a yes or no question.

What the check proves, and what it does not

A match proves one thing precisely: the bytes of your file are identical to the bytes the checksum was taken from. It rules out truncated downloads, bad copies and silent disk damage in a single step.

It does not prove the original was good. If a publisher's file was itself broken or malicious, a matching checksum gives you a perfect copy of a bad file. So the reference value matters as much as the check: take the checksum from the publisher's own site over HTTPS, from the download or release page or its SHA256SUMS file, not from a forum post or mirror.

Algorithm choice matters too. Prefer SHA-256 when it is offered: MD5 collisions can be manufactured, meaning two different files can deliberately share one MD5 value. An MD5 mismatch still exposes accidental corruption honestly, but a SHA-256 match is the verdict worth trusting when the result counts.

How to check a file, step by step

  1. Find the expected checksum on the download or release page, or in the checksums file (often named SHA256SUMS) published with it.
  2. Open the Hash Checker and select the file. It is hashed locally in your browser and never uploaded.
  3. Paste the expected hash. Case and stray spaces are ignored, so there is no need to tidy it first.
  4. Leave the algorithm on Auto-detect unless you know it. The tool guesses from the length of the value: 32 characters means MD5, 64 means SHA-256.
  5. Run the check and read the verdict: Match, or No match.

Worked example: three letters and one invisible byte

Take the smallest possible file: a text file containing exactly abc, with no trailing newline. Its SHA-256 is:

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Select that file in the checker, paste the value, and the verdict is Match. Now open the file, press Enter once at the end, and save. It still shows the same three letters, but run the check again and the verdict flips to No match, because the newline is part of the file and the digest covers the whole file.

Scale that up and you have the everyday case: an installer whose download was cut short differs from the original in thousands of bytes, and the check reports it the same way, instantly and without ambiguity.

Limitations and honest tradeoffs

A hash check detects difference. It does not repair anything: a No match verdict cannot rebuild the missing bytes, and the remedy is always a fresh copy from the source. Nor can it tell you where the damage is: the digest changes completely wherever the change occurred, so it cannot point at the corrupted region or say how much survived.

Most often a failed check means an interrupted download, or simply the wrong file, a different version than the checksum belongs to. Re-download once; if the fresh copy still fails, stop: do not install it, and contact the publisher.

Two practical notes: the file is read into memory to be hashed, so very large files can be slow; and the check is only as good as its reference, since a correct verdict against a checksum from an untrustworthy place proves little.

Common mistakes

  • Treating Match as a safety certificate. It proves your copy equals the reference bytes. It says nothing about whether the publisher or the file itself deserves trust.
  • Grabbing the checksum from the same untrusted place as the file. If both come from a bad source, they can agree and still both be wrong. Use the publisher's own site over HTTPS.
  • Reaching for MD5 when SHA-256 is published too. MD5 collisions can be manufactured. When a page offers both, check the SHA-256.
  • Ignoring a No match and installing anyway. One failure can be a bad download. Re-download once; a second failure is the answer, not bad luck.
  • Checking against the wrong version's checksum. Release pages list several files; match the value to the exact file you downloaded.

FAQs

What does file integrity actually mean? It means the file you have is byte for byte the file you were meant to have. A hash check proves that by comparing a short fingerprint computed from your copy against the fingerprint published for the original. If even one byte differs, the fingerprints differ.

Can a hash check repair a corrupted file? No. The check only reports Match or No match. It tells you the copy differs from the reference, but it cannot rebuild the missing or damaged bytes. The fix is a fresh copy from the source, not a repair.

Why does one changed byte change the whole hash? A hash is computed from every byte in the file, and the algorithms are designed so a tiny change scrambles the output completely. That sensitivity is the point: there is no such thing as a close match, only identical or different.

Does a match prove the file is safe? It proves your copy is identical to the bytes the checksum was taken from, nothing more. If the source itself was malicious or compromised, a matching file is a faithful copy of a bad file. Take the checksum from the publisher's own site over HTTPS so at least the reference is genuine.

Should I use MD5 or SHA-256 for integrity checks? SHA-256. MD5 collisions can be manufactured, meaning two different files can be made to share an MD5 value. For catching accidental corruption MD5 still shows a difference, but SHA-256 is the value to trust when the result matters.

Conclusion

A hash check converts a suspicion you cannot inspect into a verdict you can act on: identical, or not. For the routine that puts this into regular practice, see our guide on checking a backup copy against the original file. More guides in this series live in our Security and Privacy guides.

References