FileFlap
Troubleshooting

How to Verify a Downloaded File With a SHA-256 Checksum

Compare a downloaded file with its source using SHA-256. Learn what a matching checksum proves and how to investigate a mismatch on Windows.

A SHA-256 checksum is a fingerprint calculated from a file's contents. Compute it for the source and for the downloaded copy, then compare the complete values. A match is strong evidence that the two files contain the same bytes.

Person typing at a computer with illuminated screens
Photo by Tima Miroshnichenko on Pexels.

This is useful for large archives, video masters, datasets, and other deliveries where opening the file or checking its size is not enough. Two files can have the same name and size while containing different data.

Get the expected value from the sender

Ask the sender to calculate the checksum after the delivery file is finalized. They should identify the exact filename and algorithm along with the value. A checksum from an earlier export will not validate a newer version, even if the filenames match.

If tampering is a concern, obtain the expected checksum through a trusted channel. A checksum copied from the same compromised location as a malicious file cannot independently establish who created the file.

Calculate SHA-256 on Windows

Open PowerShell and run the following command, replacing the example path with the downloaded file's actual location:

Get-FileHash -LiteralPath 'C:\Downloads\Delivery_v03.zip' -Algorithm SHA256

The command reads the file and reports its hash; it does not change the file. Keep quotes around paths with spaces. Microsoft's Get-FileHash documentation explains the parameters and supported algorithms.

Wait until the download finishes before calculating the value. Hashing a very large file takes time because its contents must be read. Compare the full SHA-256 value, not just the first few characters. Letter case does not change the hexadecimal value.

Know which file you are comparing

If the sender provides a checksum for a ZIP, calculate the checksum of that ZIP before extracting it. Do not compare a contained video against the archive's hash. Rebuilding an archive can change its bytes even when it contains equivalent documents, so compare the actual delivered archive.

For a folder, ask for a manifest containing a checksum for each file, with its relative path. A checksum for one file does not verify the rest of the directory. Keep the manifest with the delivery record.

Investigate a mismatch

  1. Confirm that both parties used SHA-256 and the same delivery version.
  2. Check that the download completed and that neither file was edited afterward.
  3. Download a fresh copy to a separate location and calculate its checksum.
  4. If the mismatch remains, ask the sender to check the uploaded version and regenerate the expected value from that source.

Keep the mismatched copy separate until you understand the cause. Do not overwrite the only known-good original during troubleshooting.

Common questions

Does a matching hash prove a file is safe?

No. It establishes a match to the expected contents, not that those contents are harmless. Source trust and appropriate file handling still matter.

Does renaming a file change its checksum?

Changing only the filename does not change a hash of the file's contents. Editing or re-exporting its contents does. That distinction helps separate delivery naming mistakes from changed data.

If your current delivery workflow is unreliable, compare Filemail alternatives. Keep checksum verification in your process whichever service you choose.

Use checksums to answer the right question

A checksum comparison answers whether two files produce the same digest using the same algorithm. In an ordinary delivery workflow, matching SHA-256 values provide strong evidence that the bytes match. This is different from checking whether the file is the right revision, contains correct information, or came from a trustworthy sender. Establish those things through the surrounding delivery process.

For example, a sender could accidentally upload an outdated export and calculate its checksum correctly. The recipient would receive an intact but outdated file. Pair the checksum with a clear filename, revision, and purpose. That way the integrity check supports the handoff instead of being mistaken for a complete quality check.

Compare the same object on both sides

If the sender hashes an archive, compare the downloaded archive before extraction. If they hash individual files, compare those same files after extraction. The archive and the files inside it will have different digests. Recreating an archive may also produce different bytes even when the extracted content is unchanged, so be explicit about what the provided checksum describes.

Keep a checksum list outside any archive whose own checksum it contains. Use relative paths for individual files so the list remains understandable on another computer. For a large collection, describe whether the manifest itself is excluded and how nested files are listed. A clear convention prevents false mismatch reports.

Investigate a mismatch systematically

First confirm the filename, algorithm, and expected version. Copy the full digest carefully and check whether the download completed. If those details are correct, download the intended file again and compare it before opening or modifying it. Some workflows legitimately change a file after opening or saving, which would make a later comparison answer a different question.

If the mismatch persists, ask the sender to calculate the checksum of the exact uploaded source again. Keep both values and the observed file sizes in the report. Do not dismiss the discrepancy simply because the file appears to open; investigate until both sides know which bytes were delivered and which version should be used.

Once the release is ready, transfer files online with FileFlap and ask the recipient to confirm that the intended files open successfully.

← All articles