Guides

How to Verify a Download with SHA-256

Last updated: 2026-11-05

Is your downloaded installer or ISO complete and unchanged? Learn what checksums do, how to check them in a browser or terminal, and what they can’t prove.

What a checksum is

A checksum is a fixed-length string calculated from a file’s contents, like a fingerprint. Change a single byte and the result is completely different. For example, the text hello with and without a trailing line break has entirely different SHA-256 values:

hello (no line break)
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

hello (with line break)
5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03

When to verify

  • You’re downloading an OS image or firmware, where a bad file causes real trouble.
  • You’re downloading software from a mirror or file-sharing site rather than the official site.
  • Your download was interrupted and you’re not sure the file is complete.

The three steps

  1. Find the checksum on the official download page. It’s usually next to the download link or in a file such as SHA256SUMS.
  2. Calculate the checksum of your downloaded file.
  3. Compare the two. If they match exactly, your file is the same as the published one.

Verify in your browser

Open the File Checksum Checker, choose your file, paste the published checksum and calculate. The tool works out the algorithm from the checksum’s length: 32 characters for MD5, 40 for SHA1 and 64 for SHA-256. The calculation happens in your browser, so the file isn’t uploaded.

The tool handles files up to 100 MB. For larger files such as OS images, use the commands below.

Verify in a terminal

# Windows PowerShell
Get-FileHash .\file.iso -Algorithm SHA256

# Windows Command Prompt
certutil -hashfile file.iso SHA256

# macOS
shasum -a 256 file.iso

# Linux
sha256sum file.iso

Letters in a checksum aren’t case-sensitive, so uppercase output from PowerShell matches a lowercase value on a website. On Linux, if you downloaded a SHA256SUMS file, run sha256sum -c SHA256SUMS in the same folder to check the listed files automatically.

If the checksums don’t match

  1. Make sure you’re comparing the same version and the same algorithm.
  2. Download the file again from the official site and repeat the check.
  3. If it still doesn’t match, don’t run the file. Use a different download source.

What a match does and doesn’t prove

A match only shows that your file is the same as the one the checksum describes. If a website is compromised, the file and its checksum can both be replaced, and the check will still pass. Get the checksum from the official HTTPS page rather than from the third-party site that provided the download.

To confirm that a file really comes from its publisher, you need to verify a digital signature, such as a GPG signature or an operating system code signature. Official pages for important software usually explain how.

Which algorithm to use

Prefer SHA-256. MD5 and SHA1 collisions can be crafted on purpose, meaning two different files can share a checksum, so they aren’t suitable for detecting tampering. They can still catch accidental corruption, and if a publisher offers only those, checking is better than not checking.