TechBuzzPro

How to Check an MD5 Checksum on Windows

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To check an MD5 checksum on Windows, open PowerShell in the folder that contains the downloaded file and run Get-FileHash -Algorithm MD5 .\filename.ext. Compare the 32-character hash it prints with the one published by the file's source. If the two strings match exactly, the file is intact and has not been altered in transit. You can also use Command Prompt with certutil -hashfile filename.ext MD5 if you prefer the older tool. No extra software is required on Windows 10 or Windows 11, because both commands are built into the operating system.

What You'll Need

  • A Windows 10 or Windows 11 PC (the commands also work on Windows 8.1 and 7, though PowerShell may need a manual update on very old builds).
  • The downloaded file you want to verify, saved somewhere you can find it, such as your Downloads folder.
  • The official MD5 checksum published by the file's source, usually on the same download page or in a small text file next to the download link.
  • No additional apps, installers, or admin rights are needed for the built-in methods below.

Step-by-Step

  1. Locate the file and its official checksum. Find the file you downloaded and note its exact name, including the extension. Then go back to the page you downloaded it from and copy the MD5 value listed there. It should be exactly 32 hexadecimal characters (0–9 and a–f). If the site only offers SHA-256 or SHA-1, do not try to compare those against an MD5 value; use the algorithm the site provides.
  2. Open PowerShell in the file's folder. Open File Explorer, navigate to the folder containing the file, then hold Shift and right-click on an empty area of the folder. Choose Open PowerShell window here (on Windows 11 the context menu may say Open in Terminal; if so, click that and make sure the tab is PowerShell). Labels can differ slightly by Windows version. Alternatively, press Start, type PowerShell, open it, and use cd to change into the folder, for example cd $HOME\Downloads.
  3. Run the Get-FileHash command. Type the command below, replacing filename.ext with the real file name. If the name contains spaces, wrap it in quotes:
    Get-FileHash -Algorithm MD5 .\filename.ext
    Press Enter. PowerShell prints a small table with the algorithm, the hash, and the file path.
  4. Copy the hash value. Select the long string under Hash and copy it. It will be 32 characters long and is not case-sensitive, so uppercase and lowercase letters mean the same thing.
  5. Compare it character by character. Paste the copied hash next to the official value in a text editor or a blank document and check that every character matches. A single wrong character means the file is different from what the publisher expected. Do not rely on a quick visual glance for long strings; paste both values side by side.
  6. Use Command Prompt instead if you prefer. Open Command Prompt in the same folder (type cmd in the address bar of File Explorer and press Enter), then run:
    certutil -hashfile filename.ext MD5
    certutil prints the hash on its own line between two lines of text. Copy that line and compare it the same way.
  7. Act on the result. If the hashes match, the download is complete and unmodified. If they do not match, delete the file and download it again from the official source, then repeat the check. A mismatch can come from an interrupted download, a corrupted disk write, or a file that was replaced by something else.

Common Mistakes

  • Hashing the wrong file. If two files share a name in different folders, PowerShell hashes whichever one is in the current directory. Check the Path column in the output to confirm you hashed the intended file.
  • Comparing MD5 with SHA-256. A 64-character hash is not an MD5 value. Make sure the published checksum and the algorithm you chose are the same.
  • Mistaking the file size or version number for a checksum. Checksums are long hexadecimal strings, not short numbers.
  • Copying line breaks or spaces. When you paste a hash into a document, trailing spaces or a line break can make a correct hash look wrong. Trim the value before comparing.
  • Assuming a match proves safety. A matching MD5 confirms the file arrived intact compared to the publisher's copy. It does not prove the publisher is trustworthy, so only download from official sites.
  • Running the command in the wrong folder. A Cannot find path error usually means the file is not in the directory PowerShell is currently using.

Tips

  • Use tab completion: type .\ and press Tab to cycle through file names in the folder, which avoids typos.
  • To hash several files at once, use Get-FileHash -Algorithm MD5 .\* and read each row.
  • For a quick visual check, paste both hashes into Notepad on separate lines and compare them line by line; many editors highlight differences.
  • If the publisher offers SHA-256, prefer it over MD5 for security-related verification. MD5 is fine for detecting accidental corruption but is not considered collision-resistant.
  • Keep the official checksum text file alongside the download until you have verified it, so you do not have to hunt for the value again.

Troubleshooting

  • “Get-FileHash is not recognized”. You are probably in Command Prompt rather than PowerShell, or using a very old Windows version. Open PowerShell from the Start menu and try again, or use the certutil method in Command Prompt.
  • “Cannot find path” or “No such file”. Confirm the file name and extension with dir or in File Explorer, and confirm the current folder with pwd. Change folders with cd and rerun the command.
  • The hash does not match. Delete the file, clear the browser cache if the download keeps failing, and download again from the official page. If it still mismatches, the published checksum may be outdated; check whether the site lists a newer value. Do not run a file whose hash does not match unless you trust the source and understand the risk.
  • The output is hard to read. Widen the PowerShell window or pipe the result to a file with Get-FileHash -Algorithm MD5 .\filename.ext | Format-List so the hash appears on its own line.
  • You copied the hash but it looks different in length. Recount the characters. An MD5 hash is always 32 characters; anything else means you copied part of the value or a different algorithm's output.

Frequently Asked Questions

Do I need to install any software to check an MD5 checksum on Windows?

No. PowerShell and Command Prompt both include built-in commands for hashing files, so no third-party utility is required.

Is MD5 still safe to use for verifying downloads?

MD5 is adequate for spotting accidental corruption such as a broken download. It is not considered secure against deliberate tampering, so use SHA-256 when the publisher provides it.

Why does my hash have 64 characters instead of 32?

You are almost certainly looking at a SHA-256 hash. MD5 always produces 32 hexadecimal characters. Check which algorithm the publisher used and match it.

Does the letter case of the hash matter?

No. Hexadecimal hashes are case-insensitive, so a1b2 and A1B2 represent the same value.

Can I check a checksum for a file on an external drive?

Yes. Provide the full path to the file, for example Get-FileHash -Algorithm MD5 D:\Downloads\filename.ext, and the command will read it from that location.

What should I do if the checksum matches but Windows still warns about the file?

A matching checksum only confirms the file matches the publisher's copy. Windows SmartScreen warnings are separate and based on reputation. If you downloaded from an official source and the hash matches, you can choose to keep the file, but review any warning before doing so.