A release page offers a large download and a tiny file called SHA256SUMS. Open the smaller file and you will usually see a list of filenames beside long strings of letters and numbers. Keep that list if you download the software from a mirror. It gives you a reference for checking the copy before you install it, and it can help you locate a problem if the file later fails to open on another machine.

What goes into the calculation?

SHA-256 reads the contents of a file from the first byte to the last. The result is 256 bits, normally written as 64 hexadecimal digits. A change of a single byte usually produces an entirely different result. Comparing just the first or last few digits throws away most of that information. Let the computer compare the entire value. Uppercase and lowercase letters have the same meaning in a hexadecimal number.

Imagine making two copies of an archive. You rename the first copy to add the date. You extract the second and create a fresh ZIP from the documents inside. The renamed file still has the original digest. The new ZIP will probably have a different digest because the archive also contains headers, timestamps and compressed data. Before checking anything, establish exactly which file the publisher measured.

Find the right line in the release list

Open the page for the release on the publisher’s official website. An installer, a portable build and a source archive may all have the same version number. Builds for different processors may even have similar sizes. Match the complete filename and extension. If the filename ends in arm64.iso, a line ending in x86_64.iso belongs to a different download.

A browser sometimes adds a number in parentheses to the second copy of a download. Its bytes may still be correct, although a program that looks up the digest by filename will look for the original name. You can select the correct line yourself in that case. Save the list if you plan to check the copy later on a computer without an internet connection.

In the checksum tool, paste the list and select the downloaded file. The filename helps pick the matching row, and the comparison uses the entire digest.

Verify the file before opening it

Wait for the download to finish and open a terminal in the folder containing the file. Substitute its actual name in the command for your system. The quotation marks keep a filename with spaces together. PowerShell also accepts a literal path so that characters such as brackets in a filename are handled as part of the name.

PowerShell prints the result in the Hash column. The macOS and Linux commands print it before the filename. On Linux you can check an entire release set with the command below if all the files listed are present in the same directory. A missing file is reported separately from a file whose calculated value differs. Read the result on the line for your download.

sha256sum -c SHA256SUMS

Work through a mismatch

Suppose a mirror supplied 80 megabytes of a 600 megabyte image. The name on disk might look perfectly normal. First compare the size in bytes with the publisher’s entry. If the transfer fell short, download a complete copy. If the sizes agree, check the release, processor type and digest algorithm. An easy mistake is to compare an extracted ISO image with the value published for its compressed archive.

Check the copy on a second drive

Calculate the digest again after copying the file to a USB drive as an ordinary file. If the original matches the publisher’s value and the USB copy differs, you have narrowed the investigation to the transfer or the storage medium. Keep the good source and repeat the copy. Writing a bootable image with imaging software produces a different layout on the drive. Use the verification mode in that program for this operation.

Decide whether the reference is trustworthy

A match tells you the contents agree with the reference you chose. A digest obtained from the official release page lets you check a download from a separate mirror. An archive and a digest sent together by an unknown sender can agree perfectly even if neither came from the publisher. Find an independent reference before running the program.

Some projects sign their checksum lists. Follow the project’s instructions to obtain the publisher’s key, verify the signature on the list, then check the file against the relevant line. To leave a useful record for a colleague, note the release, filename, source of the digest and result. Those details make it possible to repeat the check after the file has been moved or renamed.

Get-FileHash syntax and examples from Microsoft