You download a 4-gigabyte Linux ISO over flaky hotel Wi-Fi and burn it to a USB stick. The installer fails halfway through with a cryptic error. Was the image bad? The download? The USB stick? Without a way to check, you are guessing — and each guess costs an hour.
This is the problem checksums solve, and it is one of the oldest ideas in computing: compute a short fingerprint of a file's contents, publish that fingerprint, and let anyone verify their copy against it. Every serious software publisher publishes checksums, and verifying one takes under a minute on any operating system. It is the single highest-value verification habit for anyone who downloads software.
What a Checksum Actually Is
A checksum is the output of an algorithm that digests a file's contents into a fixed-length value. Feed the same file through the same algorithm twice, you get the same value. Change a single bit anywhere in the file — one flipped bit in four gigabytes — and a cryptographic checksum changes beyond recognition.
The property that makes this useful is called the avalanche effect. Checksums are not summaries in the human sense; they are sensitive fingerprints. Two files that differ in one byte out of a billion produce fingerprints that look completely unrelated. So a match between your fingerprint and the published one is strong evidence that your copy is bit-for-bit identical to the original.
Checksum vs Hash: The Same Tool at Different Strengths
The words are used interchangeably, and for everyday purposes that is fine. But there is a meaningful distinction in what the algorithms were designed for.
Older checksum algorithms — CRC32, Adler-32 — were built to detect accidental corruption: noise, truncation, bit flips in transit. They are fast and fine for that job, but they are not designed to resist a deliberate adversary; it is straightforward to construct two different files with the same CRC. Cryptographic hashes — SHA-256, SHA-3, BLAKE2 — are designed against intelligent attack: finding any two files with the same fingerprint should be computationally infeasible.
The practical rule: accidental corruption is random, adversarial corruption is smart. For integrity against chance, a CRC works. For anything involving downloads from the internet — where you cannot rule out intent — use a cryptographic hash. SHA-256 is the modern default, available on every platform.
Why MD5 and SHA-1 Are Out
Both MD5 and SHA-1 are deprecated for security-relevant uses because researchers have demonstrated real collisions — two different files producing the same fingerprint. An attacker who can publish a malicious file and its matching fingerprint alongside a legitimate file's checksum can defeat the verification entirely. SHA-1 collisions were demonstrated in practice in 2017; MD5 much earlier.
For detecting corruption in your own files, neither will mislead you. But checksums exist largely to verify third-party downloads — precisely the adversarial case — so the habit to build is SHA-256 everywhere. There is no cost: it is preinstalled on every modern OS.
How to Verify a Checksum on Each Platform
Every major operating system ships the tools; no installation needed.
On Linux and macOS, open a terminal and run sha256sum filename (Linux) or shasum -a 256 filename (macOS). The fingerprint prints; compare it character by character with the published value. On Windows, PowerShell offers Get-FileHash filename -Algorithm SHA256. On any platform, a mismatch means the file differs from what was published — discard it and re-download from a trusted source. Our step-by-step guides cover verifying SHA-256 checksums for software downloads, checking MD5 checksums for file integrity, and the special case of verifying Linux ISO images before writing them to USB.
If the command line is not your home territory, the NovelCrypt hash verifier computes checksums in the browser — the file never leaves your machine, which matters for anything sensitive.
Where Checksums Matter Most
Downloads are the headline case, but the habit generalizes. Backups: a backup whose checksum no longer matches has silently rotted — bit rot is real, and discovering it at restore time is discovering it too late. File transfers: before sending a large file, compute a checksum and send it out-of-band (a different channel); the recipient verifies and knows the transfer was clean. Software supply chains: package managers verify checksums of every artifact against published manifests — the same mechanism, automated. Data archival: checksumming long-term storage catches degradation early, while the original source may still be recoverable.
In all of these, the checksum's job is the same: convert "I think the file is fine" into "I have verified the file is bit-for-bit what it should be."
The Limits: What a Checksum Does Not Prove
A matching checksum proves your copy matches the published fingerprint. It does not prove the fingerprint was published by someone you trust. If a download site is compromised, the attacker replaces both the file and the checksum page — the verification passes, and the malicious file is what the "publisher" now distributes. This is not a failure of checksums; it is the boundary of what they verify.
Closing that gap requires binding the fingerprint to an identity: a cryptographic signature. Publishers who sign their release checksums with a private key let you verify not just the file but the publisher — our guide to digital signatures covers how signature verification builds on exactly this foundation. Checksum + published over HTTPS is good hygiene; checksum + verified signature is the stronger standard used by Linux distributions and security-conscious projects.
The Bottom Line
A checksum is a file's fingerprint: computed from its contents, guaranteed to change if even one bit does. Verifying one converts a hope — "the download is probably fine" — into a verified fact, in under a minute with tools already on your machine. Use SHA-256 as the default; treat MD5 and SHA-1 as legacy tools for corruption checks only. And remember what verification does and does not mean: it confirms the file matches what was published, and only a signature tells you who published it.