Skip to content

How-ToOS

How to Check a File Hash (SHA-256 Checksum) in Windows 11

How to check a file's SHA-256 hash in Windows 11 to verify Windows ISOs, Linux images, drivers and BIOS files: finding the official checksum, using PowerShell's Get-FileHash (and letting it compare for you), certutil -hashfile, 7-Zip's CRC SHA menu, Ubuntu's SHA256SUMS file, and what to do if it doesn't match.

By , Systems & Technical Editor

4 min read

How to Check a File Hash (SHA-256 Checksum) in Windows 11

The commands come from Microsoft's PowerShell and certutil documentation, Microsoft's Windows 11 download page, 7-Zip's change log and Canonical's Ubuntu verification tutorial, checked on 25 November 2026.

If you're about to flash a Windows 11 ISO to a USB stick, install a Linux distro or update your motherboard BIOS, it's worth spending a minute checking the file is intact first. A corrupted download can fail halfway through an install, and a tampered one is worse.

What a file hash is

A hash is a fixed-length value calculated from a file's contents. Microsoft's Get-FileHash documentation puts it simply: renaming a file doesn't change its hash, but changing even a single character of its contents does. If the hash you calculate matches the one the publisher lists, the files are identical.

Use SHA-256 where you can. Microsoft says MD5 and SHA1 are no longer considered secure and should only be used for simple change validation, not for files that need protection from tampering. SHA-256 is also Get-FileHash's default.

Step 1: Find the official hash

Get the expected value from the publisher, not a forum or mirror:

  • Windows 11 ISOs: Microsoft's Windows 11 download page has a Verify your download section with a table of SHA-256 values for each language ISO.

  • Ubuntu: Canonical publishes a SHA256SUMS file and a SHA256SUMS.gpg signature alongside each release's images.

  • Drivers, BIOS files and apps: many vendors and open-source projects list a SHA-256 value on the download or release page. If there's no hash listed, this check can't tell you anything, so rely on downloading from the official site.

Method 1: PowerShell's Get-FileHash (built in)

  1. Search the Start menu for PowerShell (or open a PowerShell tab in Windows Terminal).

  2. Run Get-FileHash on the file, using its full path. Putting the path in quotes copes with spaces:

Get-FileHash "C:\Users\you\Downloads\Win11_English_x64.iso"

  1. PowerShell prints the algorithm (SHA256), the hash and the path, as in Microsoft's own examples.

  2. Compare the hash with the official one.

You can also pick another algorithm with -Algorithm. Microsoft lists SHA1, SHA256, SHA384, SHA512 and MD5 as the accepted values.

Let PowerShell do the comparing

Eyeballing 64 characters is error-prone. Paste the official hash into a comparison instead:

(Get-FileHash "C:\Users\you\Downloads\file.iso").Hash -eq "PASTE-OFFICIAL-HASH-HERE"

PowerShell returns True if they match and False if they don't. Microsoft uses the same kind of comparison in its own Get-FileHash examples. Copy the official value carefully, with no spaces at either end.

Method 2: certutil (Command Prompt)

If you prefer Command Prompt, the built-in certutil tool can do the same job. Microsoft documents the syntax as certutil -hashfile InFile [HashAlgorithm]:

certutil -hashfile "C:\Users\you\Downloads\file.iso" SHA256

Always add SHA256 at the end. Microsoft's syntax makes the algorithm optional, so name it explicitly to be sure you get the right kind of hash.

Method 3: 7-Zip's right-click menu

If you already have 7-Zip installed (it's free and open source), its context menu has a CRC SHA submenu:

  1. Select the file (or several files) and right-click. If you don't see the 7-Zip submenu in Windows 11's shortened menu, choose Show more options.

  2. Choose 7-Zip > CRC SHA. 7-Zip's change log lists a SHA-256 -> file.sha256 command that saves the checksum to a .sha256 file in the same format as the Linux sha256sum program.

  3. Open the .sha256 file in Notepad to read the value and compare it with the official one.

To check files against an existing .sha256 file later, right-click it and choose 7-Zip > CRC SHA > Test Archive : Checksum.

Checking a Linux ISO against SHA256SUMS

Distros such as Ubuntu list many images in a single SHA256SUMS text file. Open it in Notepad, find the line ending with your ISO's exact file name and compare the value at the start of that line with your Get-FileHash result. Canonical's tutorial also shows how to check the SHA256SUMS.gpg signature with GnuPG, which proves the checksum file itself came from Ubuntu; that's the more thorough check if you have the tools.

When the hash matches, you can move on to making a USB installer with our Ventoy and Rufus guide.

If the hash doesn't match

  • Check you're comparing against the right file: language, edition and version all change the hash.

  • Delete the file and download it again from the official site, ideally over a wired connection.

  • If it still doesn't match, don't use it. Report it to the publisher if you got it from their own site.

Our verdict

Checking a file hash takes a minute and confirms a Windows ISO, Linux image, driver or BIOS file arrived exactly as published. In Windows 11, PowerShell's Get-FileHash uses SHA-256 by default and can compare the result for you, certutil -hashfile does the same from Command Prompt, and 7-Zip adds a right-click SHA-256 option. Always take the expected value from the publisher's official site, prefer SHA-256 over MD5 or SHA1, and re-download any file that doesn't match.

The bottom line

Checking a file hash takes a minute and confirms a Windows ISO, Linux image, driver or BIOS file arrived exactly as published. In Windows 11, PowerShell's Get-FileHash uses SHA-256 by default and can compare the result for you, certutil -hashfile does the same from Command Prompt, and 7-Zip adds a right-click SHA-256 option. Always take the expected value from the publisher's official site, prefer SHA-256 over MD5 or SHA1, and re-download any file that doesn't match.

Sources

  1. 01Microsoft Learn: Get-FileHash
  2. 02Microsoft Learn: certutil
  3. 03Microsoft: Download Windows 11
  4. 047-Zip: change log (history.txt)
  5. 057-Zip: official website
  6. 06Ubuntu: How to verify your Ubuntu download

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Driver Tools for Windows 11 in 2026

Best Picks

Best Free Driver Tools for Windows 11 in 2026

The best free driver tools for Windows 11 in 2026: Windows Update and Device Manager for everyday drivers, the NVIDIA App and AMD Software: Adrenalin Edition for graphics, DDU for clean GPU driver removal, NVCleanstall for lean NVIDIA installs, PnPUtil and DriverStore Explorer for clean-ups and Snappy Driver Installer Origin for offline installs, and why paid driver updaters aren't needed.

Hannah Vance5 min

How to Remove Old Drivers from the Windows 11 Driver Store

How-To

How to Remove Old Drivers from the Windows 11 Driver Store

How to remove old and unused driver packages from the Windows 11 Driver Store: backing up first, listing packages with pnputil /enum-drivers, deleting outdated oem#.inf packages safely without /force, using the free DriverStore Explorer's old-driver selection, and what to leave alone.

Marcus Thorne5 min

How to Use digiKam's Local AI Face Recognition and Auto-Tags

How-To

How to Use digiKam's Local AI Face Recognition and Auto-Tags

digiKam is a free desktop photo manager whose AI models run entirely on your PC. How to download the models, scan your library for faces, name people, run recognition passes safely, fix bad training data and add auto-tags for objects and scenes.

Marcus Thorne6 min