Of course! Creating a file checksum on Windows 10 is a great way to verify that a file hasn't been corrupted or tampered with. Windows has excellent built-in tools for this, so you don't even need to install third-party software.
Here are the best methods, from easiest to most common.
Summary: Which Method to Use?
- For most users: Use PowerShell. It's modern, easy, and built into Windows 10.
- If you prefer the classic Command Prompt: Use CertUtil.
- If you prefer a graphical interface: Use 7-Zip, a very common free program.
Method 1: Using PowerShell (Recommended)
This is the most straightforward and modern built-in method. The command Get-FileHash is designed specifically for this task.
-
Open PowerShell:
- Right-click the Start Menu button and select "Windows PowerShell".
- Or, press
Win + X and select "Windows PowerShell".
-
Navigate to the File's Directory (Optional, but easier):
If your file is in C:\Users\YourUser\Downloads, you can type cd Downloads and press Enter. This saves you from typing the full path later.
-
Run the Command:
The basic command is Get-FileHash <filepath>. By default, it calculates the SHA256 checksum, which is the current industry standard.
Example: To get the SHA256 checksum of a file named my-downloaded-file.iso on your desktop:
Get-FileHash C:\Users\YourUser\Desktop\my-downloaded-file.iso
The output will look like this:
Algorithm Hash Path
--------- ---- ----
SHA256 A9B...E1F C:\Users\YourUser\Desktop\my-d...
-
To Get Other Checksum Types (like MD5 or SHA1):
Use the -Algorithm flag.
Method 2: Using Command Prompt (CertUtil)
This uses the Certificate Utility, a powerful command-line tool that has been in Windows for a long time. It's a great alternative if you're more comfortable with the classic Command Prompt.
-
Open Command Prompt:
- Click the Start Menu, type
cmd, and select "Command Prompt".
-
Run the Command:
The command format is certutil -hashfile <filepath> <Algorithm>.
Example: To get the SHA256 checksum of my-downloaded-file.iso:
certutil -hashfile "C:\Users\YourUser\Desktop\my-downloaded-file.iso" SHA256
Note: It's a good practice to put the file path in quotes in case it has spaces.
The output will look like this:
SHA256 hash of C:\Users\YourUser\Desktop\my-downloaded-file.iso:
a9b...e1f
CertUtil: -hashfile command completed successfully.
-
To Get Other Checksum Types:
Simply change the algorithm name at the end of the command.
Method 3: Using a Third-Party GUI Tool (7-Zip)
If you prefer a graphical interface and don't want to use the command line, the popular file archiver 7-Zip has a built-in checksum tool. Many people already have it installed. If not, it's free to download from 7-zip.org.
-
Install 7-Zip if you haven't already.
-
Right-click on the file you want to check.
-
In the context menu, hover over 7-Zip, then hover over CRC SHA.
-
A sub-menu will appear.
- To calculate all common hashes at once, click on the asterisk
*.
- To calculate a specific one, click on
SHA-256, MD5, etc.
[image: 7-Zip Checksum Menu] open
- A window will pop up showing the calculated checksums for the file. You can then easily copy the hash value you need.
How to Use the Checksum to Verify a File
Now that you know how to create a checksum, here's how you use it:
-
Find the Original Checksum: When you download a file (like a Linux ISO or a software installer), the website will often provide the official checksum (e.g., "SHA256: a9b...e1f").
-
Generate the Checksum on Your PC: Use one of the methods above to generate the checksum for the file you just downloaded.
-
Compare:
- Copy the checksum you generated.
- Compare it to the checksum provided on the website.
If the two strings match exactly, your file is authentic and not corrupted.
If they do not match, the download was corrupted, or the file has been tampered with. You should delete it and download it again.