File hash questions, answered
Twelve questions, each answered in its first sentence, with the guide to read if you want the long version.
Checking a hash
How do I check a file's hash on Windows?+
Use
Get-FileHashin PowerShell; it is built into Windows 10 and 11. Open PowerShell in the folder that holds the file and run:Get-FileHash .\file.iso -Algorithm SHA256Microsoft's reference says SHA256 is the default when
-Algorithmis left out. From Command Prompt,certutil -hashfile file.iso SHA256gives the same value. The Windows walkthrough for Get-FileHash, certutil and File Explorer adds a one-line way to compare the result.How do I check a hash on a Mac?+
Use
shasum -a 256in Terminal, followed by the file. Type the command and a space, drag the file into the window, and press Return.shasum -a 256 ~/Downloads/file.dmgDo not leave out
-a 256. The shasum documentation lists SHA-1 as the default, so plainshasumprints a 40-character SHA-1 instead of the SHA-256 most publishers list.How do I check a hash on Linux?+
Use
sha256sum, which is part of GNU coreutils. If the project ships a checksum file,-cchecks every file it lists in one go. This is a real run on Ubuntu 22.04:sha256sum -c SHA256SUMShello.txt: OK
The coreutils manual notes that
-cexits with a nonzero status if any file fails, and that--ignore-missingskips listed files you did not download.Which hash should I use?+
SHA-256, whenever the publisher lists it. MD5 and SHA-1 still catch accidental damage, but practical collisions exist for both, so they cannot rule out a deliberately swapped file. If a page offers several values, compare the strongest one you can compute.
If the only value on offer is an MD5, check it anyway: it will still catch a corrupted or truncated download. Then treat the match as proof of an intact file, and nothing more.
When hashes do not match
Why doesn't my hash match the one on the website?+
Usually because of something ordinary: the wrong algorithm, a different version or edition of the file, or a download that did not finish. Check the length of the published value first. 64 characters means SHA-256, 40 means SHA-1 and 32 means MD5, so a length mismatch tells you that you ran the wrong algorithm. Our list of the seven usual causes of a checksum mismatch goes through the rest in order.
Do capital and lower-case letters matter?+
No. A hash is a hexadecimal number, and
AB12andab12are the same value. Windows prints hashes in capitals, while macOS and Linux print lower case. Tools that compare for you, such assha256sum -cor PowerShell's-eq, ignore the difference.Does a mismatch mean the file has malware?+
Not necessarily, but do not run it. Rule out the innocent causes first, then download the file again from the official site. If a fresh copy still fails against a value you trust, treat the file as possibly tampered with. This is what a failure looks like in the same Ubuntu run, after one character in the file was changed:
hello.txt: FAILED sha256sum: WARNING: 1 computed checksum did NOT match
The hash matches. Is the file safe?+
It is unchanged, which is a different question. A match proves your file is byte for byte the file the published value describes. It does not prove the publisher is trustworthy, or that the value itself came from the publisher. For that, check a signed checksum file where the project offers one, and keep your usual malware protection switched on.
HashTab
Where did HashTab go?+
It was discontinued. Archived copies show the product page in its usual form until October 2021, and replaced by a redirect by November 2021. This site is not affiliated with Implbits Software, LLC, which published it.
The domain kept its old addresses, which is why links in old forum threads and install guides still lead here. The answers on this page are written for the tools people use now.
Can I download HashTab here?+
No. This site does not distribute HashTab or point to copies of it. The built-in commands above do the same job on every system with nothing to install.
My old HashTab tab shows no hashes. Why?+
The original support page had a one-line answer: open Settings on the File Hashes tab and make sure at least one hash algorithm is selected. The archived 2017 support page also notes that HashTab had no app icon; it only appeared as a tab under right-click, Properties.
What replaces HashTab's File Hashes tab?+
On Windows, OpenHashTab is the closest match: it adds hashing to the file Properties window. HashCheck Shell Extension and 7-Zip's right-click menu are other options, and on Linux, GtkHash adds a tab to several file managers. Our comparison of file hash checkers for every system lists each one's systems, price, algorithms and main limitation.
Related reading
- Explainer

Checksum mismatch
What a different hash means, and what to do next
- How-to

Check a hash on Windows
Commands that ship with the system, nothing to install
- How-to

Check a hash on a Mac
One line in Terminal, already on every Mac
- How-to

How to verify a download
Start here: find the hash, compute yours, compare