Home / Tutorials / Windows help

Verify an ISO SHA-256 Hash on Windows

Compare an ISO file with a trusted published SHA-256 checksum before using it to prepare an installer or disc.

Quick answer: Compare an ISO file with a trusted published SHA-256 checksum before using it to prepare an installer or disc.

Why this matters

An ISO can be the correct size and still contain different bytes from the release you expected. A cryptographic checksum gives you a repeatable way to confirm that the image you downloaded matches a reference published by its maker. This matters before burning a disc or preparing a USB: once the media is written, a bad source file can look like a USB or hardware problem.

Before you begin

You need the complete ISO stored on a local drive, its expected SHA-256 value from a trustworthy publisher page, and Windows PowerShell. Keep the original download intact while you compare the values. A checksum without a trusted reference is useful for later change detection, but cannot establish where a file came from.

Step-by-step instructions

  1. Open File Explorer and locate the ISO. Check that the browser or transfer application has finished and that the filename is not a temporary partial-download extension. Note the full path, including the file extension.
  2. Open PowerShell and run Get-FileHash -Algorithm SHA256 -LiteralPath "C:\Images\setup.iso", replacing the example path with your actual file. For filenames containing spaces, keep the quotation marks.
  3. Copy the Hash value shown by PowerShell. Compare all characters with the SHA-256 checksum listed by the file publisher. Spaces and letter case in the display are not important; each hexadecimal digit is.
  4. If the values differ, do not burn or mount the image as a trusted installer. Delete only the questionable local copy and obtain a fresh image from the publisher or investigate an interrupted transfer.
  5. If the hashes match, record the filename, checksum, download source and date. You can now inspect the ISO in Windows File Explorer or PowerISO and decide whether a read-only mount, extraction or burn is needed.

How to verify the result

A successful check is an exact SHA-256 match against the independently obtained reference. Run the command a second time if you suspect a copy/paste mistake. Do not rely on matching filenames, browser download size alone or the file icon.

If something goes wrong

  • If PowerShell reports that the path does not exist, use File Explorer’s Copy as path option and verify the ISO is available locally rather than only as a cloud placeholder.
  • If the publisher gives SHA-1 or MD5 only, note that those are weaker than SHA-256 for security-sensitive verification. Ask for a stronger official checksum when possible.
  • If an ISO changes after you edit or rebuild it, the SHA-256 will also change. Keep the original baseline and create a new record for the edited image.

Limitations and safety

Important: A matching hash establishes identity relative to the stated checksum, not that code inside the image is benign. A fake site could publish a matching hash for its own malicious file. Evaluate provenance and digital signatures separately.

Frequently asked questions

Can PowerISO calculate the correct checksum for me?

For a Windows-only workflow, PowerShell Get-FileHash is built in and avoids relying on an image editor. Use a published SHA-256 from the file creator for comparison.

Does copying an ISO change its hash?

A correct byte-for-byte copy produces the same SHA-256. If the result changes, investigate incomplete transfer, a modified file or a different release.

Can I verify an ISO after burning it?

You can compare files or use an optical read-back verification procedure, but a source-file checksum is easiest before writing. Physical disc verification checks a different stage of the process.

Related Windows guides

Primary documentation

This article summarizes supported Windows workflows and documentation. For exact software options and current supported versions, consult: learn.microsoft.com reference. No hands-on tests on every device are claimed.