How to Verify a Software Download With SHA-256 Checksums
checksum verificationsoftware securityWindowsmacOSLinuxdownload safety

How to Verify a Software Download With SHA-256 Checksums

DDownloads.link Editorial Team
2026-11-02
6 min read

Learn how to verify software downloads with SHA-256 or MD5 on Windows, macOS, and Linux, and troubleshoot checksum mismatches safely.

A SHA-256 checksum gives you a practical way to confirm that a software file matches the publisher’s original download. This guide explains how to find the official hash, calculate a file’s checksum on Windows, macOS, and Linux, compare results correctly, and troubleshoot mismatches before installing.

Overview

A checksum is a fixed-length string produced by running a file through a cryptographic hash function. Even a small change to an installer, archive, disk image, or portable application should produce a different result. When the checksum calculated on your computer exactly matches the value published by the software developer, you have evidence that your copy is identical to the file used to generate that published value.

This makes checksum verification a useful step in a safe software download process, particularly for large offline installers, operating-system images, developer tools, creator software, and files obtained from a download mirror. It can help detect an incomplete download or an altered file, but it does not answer every security question. A matching hash does not prove that the website was genuine if the hash itself came from an untrusted page. For stronger assurance, use an official download link and consult any available digital-signature instructions as well.

SHA-256 is generally the preferred checksum for current downloads. MD5 is still encountered in older release pages and can help identify accidental corruption, but it should not be treated as the strongest authenticity check for a security-sensitive download.

Core framework

1. Start with the official file and hash

Download the file from the software publisher’s website or a mirror that the publisher clearly identifies. Look for a release page, download details panel, checksum file, or text labelled “SHA-256,” “SHA256,” “checksums,” or “digests.” The hash should be associated with the exact file name and release you downloaded. A checksum for a Windows installer is not interchangeable with the checksum for a macOS disk image, Linux package, portable archive, or source-code archive.

Copy the published value carefully. Hashes are normally displayed as a sequence of hexadecimal characters. Uppercase and lowercase letters do not change the value, but missing or extra characters do.

2. Calculate the local checksum

Use a built-in command rather than opening an unknown “checksum utility” downloaded from a third-party site. On Windows, open PowerShell and run:

Get-FileHash "C:\Path\To\installer.exe" -Algorithm SHA256

Windows also includes CertUtil. In Command Prompt, use:

certutil -hashfile "C:\Path\To\installer.exe" SHA256

On macOS, open Terminal and run:

shasum -a 256 "/path/to/installer.dmg"

On Linux, the commonly available command is:

sha256sum "/path/to/installer.tar.gz"

Each command prints a hash and usually the file name. Compare the complete hash with the publisher’s value, not just the first few characters. For an MD5 value, replace the algorithm where supported, or use the platform’s MD5 command: certutil -hashfile "file.exe" MD5 on Windows, md5 "/path/to/file" on macOS, or md5sum "/path/to/file" on Linux.

3. Interpret the result

An exact match means the downloaded bytes match the published checksum. You can proceed to the next installation checks, such as reviewing the file type, confirming the publisher, and checking a digital signature if one is available. A mismatch means you should not install the file yet. Downloading the file again from the official source is a sensible first response, but do not dismiss a repeated mismatch without investigating it.

For broader guidance on official links, mirrors, and offline installers, see the safe software download checklist. If you are comparing an installer with a portable package, the portable-versus-installer guide explains why the files and their checksums will differ.

Practical examples

Windows: verify an offline installer

Suppose you downloaded an installer to your Downloads folder. In PowerShell, you can move to that folder and calculate the hash:

cd $HOME\Downloads
Get-FileHash .\example-setup.exe -Algorithm SHA256

Find the SHA-256 value on the publisher’s release page and compare it with the value after Hash. If the filename contains spaces, keep the quotation marks around the path. When using CertUtil, place the full path in quotation marks for the same reason.

macOS: verify a disk image

After downloading a disk image, run:

shasum -a 256 "$HOME/Downloads/example.dmg"

The command may take a while for a large file. Wait for the prompt to return, then compare the complete output with the SHA-256 value published for that exact disk image. Verifying before opening or mounting the image keeps the check separate from the installation process.

Linux: verify an archive or image

For a downloaded archive or ISO, use:

cd ~/Downloads
sha256sum example-image.iso

If the publisher supplies a checksum file in a compatible format, you may be able to use:

sha256sum --check SHA256SUMS

Review the output and confirm that the filename in the checksum file matches the file you intend to install. If the checksum file contains several releases, checking the wrong entry can produce confusion even when the download is correct.

Common mistakes

  • Using the wrong hash algorithm: A SHA-256 value cannot be compared with an MD5 result. Confirm the label before running the command.
  • Checking the wrong file: Installers, portable archives, patches, and source packages have different hashes. Match the exact filename and version.
  • Copying hidden spaces or line breaks: When using a comparison tool, remove accidental whitespace. Manual visual comparison is often safer than assuming a pasted value is clean.
  • Ignoring a mismatch: A partial download, interrupted transfer, proxy cache, changed release asset, or altered file can cause a different result. Download again from the official link and check the release notes or publisher’s status information.
  • Trusting a hash from an unrelated page: A checksum is useful only when its source is trustworthy. Prefer a publisher-controlled release page or a documented official mirror.
  • Assuming a match replaces antivirus or signature checks: Hash verification confirms file identity against a reference value. It does not replace sensible system security controls or publisher signatures.

If a download repeatedly fails verification, preserve the original file, record its filename and calculated hash, and compare the download URL with the publisher’s documented link. You can also consult a guide covering checksums, digital signatures, and safe mirrors.

When to revisit

Revisit this process whenever you download a new release, switch platforms, use a different mirror, or choose a different package type. A checksum is tied to one specific file, so an update can make an older value irrelevant even when the product name has not changed.

It is also worth checking the publisher’s current instructions when a project changes its release system, begins signing packages, replaces MD5 with SHA-256, or publishes checksum files in a new format. Command names can vary by operating system, but the workflow remains stable: use an official download link, locate the hash for the exact asset, calculate the local SHA-256 value, compare every character, and stop when the values do not match.

For a repeatable team process, record the download URL, filename, release identifier, calculated hash, and verification date. That small record helps developers and IT administrators distinguish a legitimate release change from a damaged or suspicious download.

Related Topics

#checksum verification#software security#Windows#macOS#Linux#download safety
D

Downloads.link Editorial Team

Software Downloads Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.