How to verify a SHA-256 checksum after downloading
Check that an installer or disk image matches the publisher's SHA-256 value with built-in commands on Windows, macOS and Linux, and what a mismatch means.
Many open-source projects and Linux distributions publish a SHA-256 checksum next to each download: a 64-character string of letters and numbers. If you calculate the same value from the file on your disk, you know the file arrived exactly as the publisher built it, with no missing or damaged bytes. It takes about a minute and needs no extra software.
What the checksum tells you
SHA-256 reads every byte of a file and produces a fixed-length fingerprint. Change a single byte and the fingerprint comes out completely different. That makes it a good test for downloads that were interrupted, resumed or split into parts, and for files copied to a USB drive before installing.
The check confirms that your copy matches the value you compared it with. It does not, by itself, prove who made the file. If someone replaced both the file and the checksum on a compromised site, the two would still match. That is why some projects also sign their checksum lists with a key, which is covered further down.
On Windows
Open PowerShell, go to the folder with the file and run:
Get-FileHash .\filename.iso -Algorithm SHA256
The value appears under "Hash". The older command certutil -hashfile filename.iso SHA256 gives the same result in Command Prompt. Windows prints the hash in capital letters and many sites list it in lower case; that difference doesn't matter.
On a Mac
Open Terminal and run shasum -a 256 filename.iso. You can type shasum -a 256 with a space at the end and drag the file into the window to fill in its path.
On Linux
Run sha256sum filename.iso. If the project provides a file such as SHA256SUMS that lists several downloads, put it in the same folder and run sha256sum -c SHA256SUMS --ignore-missing. Each file you have is marked OK or FAILED, and files you didn't download are skipped.
Comparing the values
Copy the checksum from the project's own page, not from a forum post or a mirror's listing. Then compare the whole string. Checking the first and last few characters by eye is tempting but easy to get wrong; a quicker way in PowerShell is:
(Get-FileHash .\filename.iso).Hash -eq "paste-the-published-value"
It prints True or False. Some download managers can calculate a checksum from the file's menu, which saves opening a terminal.
When the values don't match
Delete the file and download it again, ideally from the project's main download link. A mismatch after a resumed download usually means the server sent a different version midway, or the partial file was damaged. Don't install or run a file that fails the check.
A step further: signed checksum lists
Projects that sign their releases publish a signature file, often ending in .sig or .asc, alongside the checksum list. Verifying it with GnuPG and the project's published key confirms the list came from the project. The project's download page normally explains the exact commands and where to find the key.
Where to go next
Keep the checksum file next to the download so you can check it again later, for example before reinstalling. Our guide to organising a downloads folder with rules suggests where to keep both. If you use AB Download Manager, see its official site for the current list of file tools it offers.


