Security & Integrity

How to Verify File Checksums & Hashes (SHA-256, MD5) on Windows 11 & 10

⚡ Quick Answer: How to Check File Hashes in Windows

To verify an SHA-256 hash natively in Windows without installing any third-party tools, open PowerShell and run: Get-FileHash -Path "C:\path\to\file.iso" -Algorithm SHA256. To compare it against a publisher's checksum, check that the output hexadecimal string matches. For instant drag-and-drop verification across MD5, SHA-1, SHA-256, SHA-512, and CRC32 in a single disk read with automatic clipboard match detection, use the free 58 KB standalone portable tool Pexoris QuickHash.

Why Verifying Checksums Is Critical

Whenever you download a large file—such as a Windows 11 installation ISO, Linux distribution, driver package, or cryptocurrency wallet—there is always a possibility that the file was either corrupted during transmission or maliciously altered by an attacker.

Cryptographic hash functions generate a fixed-length mathematical fingerprint from your file. Even if a single bit inside a 10-gigabyte ISO is flipped, the calculated hash value changes completely (known as the avalanche effect). If your calculated checksum matches the publisher's posted hash, you have mathematical proof that:

Warning: Never verify a downloaded file solely by its file size. Attackers can pad a malicious payload with dummy bytes to match the exact byte count of an authentic executable. Only cryptographic checksums (such as SHA-256) guarantee authentic integrity.

Method 1: Native Windows PowerShell (Get-FileHash)

Windows 10 and Windows 11 include a native PowerShell cmdlet named Get-FileHash. It supports SHA1, SHA256, SHA384, SHA512, and MD5.

Step 1: Open PowerShell

Press Win + X and select Terminal or Windows PowerShell.

Step 2: Run Get-FileHash

Type the following command, replacing the path with your actual file path:

# Compute SHA-256 hash (default algorithm)
Get-FileHash -Path "C:\Users\User\Downloads\ubuntu-24.04.iso" -Algorithm SHA256

Step 3: One-Liner Compare in PowerShell

Manually comparing 64 hexadecimal characters by eye is error-prone. You can force PowerShell to verify the match automatically by comparing it with the vendor's hash:

# Compares file hash against expected vendor hash
(Get-FileHash "C:\Downloads\setup.exe" -Algorithm SHA256).Hash -eq "5E301D227F4D45543CF71A25DB0EA85779EC46162164426BF7CFD7CF454ECF6E"

If PowerShell outputs True, the file is authentic. If it outputs False, the file is corrupted or modified.

Method 2: Command Prompt via CertUtil

If you prefer standard Command Prompt (cmd.exe) without loading the PowerShell runtime, Windows provides the built-in certutil cryptographic certificate utility:

# Command Prompt SHA-256 syntax
certutil -hashfile "C:\Downloads\installer.exe" SHA256

To check MD5 or SHA512, simply replace SHA256 with MD5 or SHA512 at the end of the command.

QuickHash Icon
Pexoris QuickHash
Single-Pass Multi-Checksum Verifier • 58 KB Standalone Portable
Download Free (58 KB)

Stop memorizing command line syntax and reading multi-gigabyte ISO files three times. Pexoris QuickHash calculates MD5, SHA-1, SHA-256, SHA-384, SHA-512, and CRC32 in a single sequential disk pass with automatic clipboard match detection, batch folder processing, and 1-click VirusTotal lookups.

Method 3: 1-Click Instant Verification with Pexoris QuickHash

While PowerShell works for single files, checking multiple files or comparing different algorithms requires repetitive typing. Furthermore, running Get-FileHash multiple times on an 8 GB file forces Windows to read 24 GB of data from your SSD.

Pexoris QuickHash solves this with an optimized single-pass streaming architecture:

  1. Copy Expected Checksum: Copy the hash from the developer's website to your clipboard (Ctrl + C).
  2. Drop Target File: Drag and drop your downloaded file directly onto the Pexoris QuickHash window.
  3. Instant Match Confirmation: The tool automatically identifies which algorithm you copied and displays a prominent green ✓ MATCH VERIFIED badge with zero manual configuration.
  4. Copy or Export: Double-click any row to copy its hash, or click Export Report to generate an audit report.

Comparison: Native Windows CLI vs. Pexoris QuickHash

Capability PowerShell (Get-FileHash) CertUtil Pexoris QuickHash
Simultaneous Algorithms 1 per command 1 per command All 6 Simultaneously
Disk I/O Efficiency Re-reads file per algorithm Re-reads file per algorithm Single-pass 64 KB stream
Auto Clipboard Sniffing Manual script required No Automatic Live Match Pill
Batch Directory Hashing Complex pipeline loop Batch script required 1-Click CSV Export
VirusTotal Lookup No No Direct 1-Click Lookup

Frequently Asked Questions

Can a corrupted file produce an identical SHA-256 hash?

No. The mathematical probability of two different files producing the same SHA-256 digest is approximately 1 in 2256 (a number greater than the number of atoms in the observable universe). If the SHA-256 hash matches, the file is identical.

Does Pexoris QuickHash upload files or hashes to cloud servers?

Never. Pexoris QuickHash runs 100% locally on your computer's CPU and memory. It makes zero internet requests, contains no analytics, and does not store your files.