Skip to content
Back to all articles
Security3 min readNovember 13, 2026

How to Verify a File Checksum (MD5, SHA-256) Before You Open It

What a checksum is, why download pages list one, and how to check that an installer, ISO or document is exactly the original in under a minute, on Windows, Mac or phone.

How to Verify a File Checksum (MD5, SHA-256) Before You Open It article
In this guide
  1. What a checksum is
  2. Verify a download step by step
  3. What to do when it does not match
  4. MD5, SHA-1 or SHA-256?
  5. Where the checksum comes from matters
  6. Other uses
  7. Doing it without a website
  8. Common questions

Download pages for operating systems, drivers and software often show a long string of letters and numbers labelled SHA-256 or MD5. That is a checksum, and checking it takes less than a minute. It tells you whether the file on your computer is exactly the file the publisher released: not cut short by a dropped connection, not corrupted on a USB stick, and not swapped for something else.

This guide explains how checksums work and how to verify one with the free File Checksum Calculator, which works in your browser without uploading the file.

What a checksum is

A checksum is a fingerprint calculated from every byte of a file. Two properties make it useful:

  • The same file always produces the same checksum.
  • Change even one byte and the checksum changes completely.

So if your file's checksum matches the one the publisher lists, the two files are identical.

Verify a download step by step

  1. Find the official checksum. It is usually on the download page or in a file called SHA256SUMS, often next to the download link. Note which algorithm it is (usually SHA-256).
  2. Open the File Checksum Calculator and make sure that algorithm is ticked.
  3. Add the downloaded file. Large files show a progress bar while they are read.
  4. Paste the official checksum into Verify a download. You can paste just the code, or a whole line such as SHA256: 9f86d0… or 9f86d0… ubuntu.iso.
  5. Read the result. A green Match means the file is identical. No match means it is not.

What to do when it does not match

A mismatch almost always means one of these:

CauseWhat to do
The download was interrupted or incompleteDownload it again, ideally on a stable connection
You compared a different algorithmMake sure SHA-256 is compared with SHA-256, not MD5
You downloaded a different versionCheck the version number on the checksum list
The file was alteredDo not open it; download from the official site again

Never run an installer whose checksum does not match.

MD5, SHA-1 or SHA-256?

AlgorithmLengthGood for
MD532 charactersSpotting accidental corruption only
SHA-140 charactersSpotting accidental corruption only
SHA-25664 charactersCorruption and tampering: the current standard
SHA-512128 charactersThe same as SHA-256, longer

MD5 and SHA-1 still catch broken downloads, but researchers can deliberately create two different files with the same MD5 or SHA-1. If a publisher lists SHA-256, use it. The calculator recognises the algorithm from the length of the checksum you paste.

Where the checksum comes from matters

A checksum only proves something if you trust its source. If an attacker could replace the download, they could replace a checksum on the same page too. Prefer checksums published on the official website over HTTPS, in release notes, or signed by the developer, and be wary of checksums copied into forum posts.

Other uses

  • Backups: compare the checksum of a file before and after copying it to an external drive or the cloud.
  • Sending important documents: include the SHA-256 in your email so the receiver can confirm the PDF was not changed.
  • Finding identical files: files with the same checksum have the same contents, whatever they are called. To find duplicates across a whole folder automatically, use the Duplicate File Finder.

Doing it without a website

You can also check checksums from the command line:

  • Windows (PowerShell): Get-FileHash .\file.iso -Algorithm SHA256
  • Mac: shasum -a 256 file.iso
  • Linux: sha256sum file.iso

The calculator gives the same result and can copy all your results in the same sha256sum format.

Common questions

Is my file uploaded? No. It is read and hashed in your browser.

Does renaming a file change its checksum? No. Only the contents matter.

Upper or lower case? Checksums are not case-sensitive; A1B2 equals a1b2.

Can I hash text instead of a file? Use the Hash Generator for text and passwords.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

File Checksum & Hash Calculator

Get the MD5, SHA-1, SHA-256, SHA-384 or SHA-512 checksum of any file and check a download against the checksum its publisher lists. Several files at once, in your browser.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.