A file hash is a short fingerprint of a file, and looking it up can reveal known harmful files.
This guide is for students, new IT staff and careful home users who have been told to "check the hash" of a file. You do not need to write code: one built-in command or tool makes the fingerprint, and a lookup site does the rest.
In short
- A hash tool turns any file into a fixed-length string of letters and numbers. The same file gives the same hash.
- Change even one character and the hash changes completely, so hashes show whether a file is unchanged.
- A reputation check looks the hash up in records of files that others have already checked.
- A "known bad" result is a strong warning. A "no match" result does not prove a file is safe.
What you will learn
- Explain what a file hash is in one sentence.
- Make a hash of a file using a built-in tool.
- Read a reputation result without over-trusting it.
- Check a suspicious file without sharing private data.
- File fingerprint (hash)
- a fixed-length string worked out from every part of a file.
- Known-file record (reputation)
- what others have already reported about a file, a web address or an internet address.
What is a file hash and a reputation check?
Think of a fingerprint. It is small, but it belongs to one finger. You cannot rebuild the finger from the print, yet you can match the print against records.
A file hash works the same way. A hash function, a kind of maths, reads every part of a file and produces an output of fixed length.[1] That output is the hash. Microsoft says that if two files have identical hashes, their contents are identical. Changing even one character changes the hash.[2]
A reputation check is the matching step. You look the hash up in a database of files that security tools and researchers have already checked. If the file is a known piece of malware, harmful software, the result may say so.
Where the comparison stops working: a person cannot change their fingerprint at will. An attacker can change one small part of a harmful file, and its hash becomes new and unknown. So a hash check only finds files someone has seen before.
Why does it matter?
A hash lets you ask "has anyone seen this file before?" without opening it. It is one of the first checks security teams make on a strange file.
If you work in a small office
What could happen: an unexpected attachment looks like an invoice, and someone opens it.
Check this: pass odd attachments to your IT contact before opening them, rather than checking them alone.
Next: Malware for Beginners
If you are new to IT or security work
What could happen: you upload a staff member's private file to a public checking site, and others can then see it.
Check this: search by hash first. Upload only with your team's approval.
Next: Antivirus for Beginners
If you download software at home
What could happen: you install a copy from an unofficial site that someone has changed.
Check this: where the maker publishes a hash for the download, compare it with your own copy.
What does it look like?
Here is a made-up hash and a made-up lookup result, shortened for reading.
Example only. All values are made up.
File: invoice-EXAMPLE.pdf Algorithm: SHA256 (1) Hash: 0000AAAA1111BBBB...EXAMPLE...FAKE0000 (2) Lookup result Detections: 41 / 70 security vendors (3) First seen: 2026-11-02 (4) Names: invoice.pdf, payment-EXAMPLE.pdf (5)
- The type of hash. SHA-256 is the usual choice today.
- In a real file check, this line would contain 64 letters and numbers.
- How many security tools flagged the file, out of how many checked it.
- When the lookup site first saw this file.
- Other names the same file has been sent under.
Why this is risky: many tools agree this file is harmful, and it has been sent under several names. Opening it could infect the computer.
The safer way: do not open it. Report it to whoever looks after your IT, with the hash, and delete the email.
How does it work?
- Make the hash. A built-in tool reads the file and works out its hash. On Windows, the PowerShell command Get-FileHash uses SHA-256 unless you choose another type.[2]
- Look it up. Paste the hash into a reputation site. For example, VirusTotal accepts MD5, SHA-1 and SHA-256 hashes in its search box.[3]
- Read the result. VirusTotal checks items with over 70 antivirus scanners and blocklist services.[4] Its report shows how many of them flagged the file.[5]
- Decide. Known bad: do not open it, and report it. Known good: it matches what you expected. No match: treat it as unknown and ask for help.

Some hash types are older than others. Microsoft says MD5 and SHA-1 are no longer seen as secure, and should only be used for simple change checks.[2] For anything that matters, use SHA-256.

Searching and uploading are not the same. A hash search shares only the hash. Uploading shares the whole file, and VirusTotal says file contents may be shared with its paying customers.[4] VirusTotal also asks people not to search for anything holding private or personal data.[3]
The same idea works for web addresses and internet addresses. Reputation sites keep records of those too.[3]
A worked example
Kaia Erikson works on the front desk at Brightwell Lettings, a fictional letting agency. She also helps look after the office computers.
One morning an email arrives from a supplier's address. It has a file called "invoice-november.pdf". The supplier usually sends invoices through a web portal, not by email.
Kaia does not open the file. She saves it to a folder the antivirus scans, and asks Kaia Lomax, the agency's outside IT adviser, for help.
Kaia Lomax shows her how to make a hash on Windows with Get-FileHash. The result is a long string of letters and numbers. They copy it into the VirusTotal search box. They do not upload the file, in case it holds a real tenant's details.
The result shows a high number of security tools flagging the file. It also shows several other names the same file has used.
That is enough to act. Kaia deletes the email and the saved file. Kaia Lomax adds the hash to the agency's antivirus block list and checks whether anyone else received the same email. Kaia phones the supplier on a number from their website, not from the email. The supplier says they did not send it.
A week later, a different invoice file arrives. Its hash shows no match at all. Kaia now knows that means "unknown", not "safe", and asks for help again.
Myths and mistakes
| What people think | What is true |
|---|---|
| No match means the file is safe. | It usually means the site has no record of that exact file. New or changed malware may have no match. |
| Uploading a file to a checking site is private. | Uploaded contents may be shared with others.[4] Search by hash first. |
| One tool flagging a file proves it is harmful. | A single flag can be a false alarm. Look at how many tools agree and ask for help. |
| MD5 is fine for every check. | Microsoft says MD5 and SHA-1 are no longer seen as secure.[2] Use SHA-256. |
| A hash can be turned back into the file. | Hash functions are designed to be one-way.[1] The hash tells you nothing about the content on its own. |
What can I do this week?
- Make the hash of a harmless file you own, such as a photo, using a built-in tool.
- Change one letter in a copy of a text file and see that the hash changes.
- Find out who to send suspicious files to at work, and how.
- Next time you download software, check whether the maker lists a hash to compare.
Checklist
- You do not open unexpected attachments before they are checked.
- You use SHA-256 for hash checks where you have the choice.
- You search by hash before you think about uploading a file.
- You keep files with private or customer data off public checking sites.
- You treat "no match" as unknown, not safe.
- You report a "known bad" result, with the hash, to whoever looks after IT.
Common questions
Can two different files have the same hash?
In theory, yes, because a hash is shorter than most files. For a strong hash such as SHA-256, finding two files that match is meant to be far too hard to do in practice. Older types such as MD5 are weaker here, which is why they are not trusted for security.
Is it safe to search a hash on a public site?
Usually, yes. A hash says nothing about what is inside the file. But the search itself may be stored, so do not search for anything that holds personal data. Uploading the whole file is different, because others may then see its contents.
What does "41 out of 70" mean?
It means 41 security tools flagged the file, out of 70 that checked it. A high number is a strong sign of harm. A low number, such as one or two, may be a false alarm. Either way, ask someone with experience before you decide.
Why do download pages show a long string of letters?
That is often the file's hash, sometimes called a checksum. You make the hash of your downloaded copy and compare. If they match, your copy is the same as the one the maker published. This only helps if the hash comes from the maker's own site.
Where next?
Ready for the detail? Read the practitioner guide: D3-FHRA File Hash Reputation Analysis. It goes further into automated lookups in security tools, data sources for reputation and the limits teams plan around.
Also useful:
- D3-FH File Hashing
- D3-IPRA IP Reputation Analysis
- Encoding, Encryption and Hashing for Beginners
- Malware for Beginners
Related NHI Mgmt Group resources: Antivirus for Beginners · Encoding, Encryption and Hashing · Hash collision attacks
Key terms
- File hash
- A fixed-length fingerprint worked out from a file's contents.
- Hash function
- The maths that turns any amount of data into an output of fixed length.
- SHA-256
- A widely used hash type that gives a 64-character result.
- VirusTotal
- A website that checks files, web addresses and hashes against many security tools.
- Indicator of compromise
- A clue, such as a known bad hash, that a system may have been attacked.
- Collision
- When two different inputs give the same hash.
- Malware
- Software made to harm, spy on or take over a device.
Sources and further reading
- Hash function. Computer Security Resource Center glossary, US National Institute of Standards and Technology (NIST), citing FIPS 186-5. https://csrc.nist.gov/glossary/term/hash_function, accessed 28 Nov 2026.
- Get-FileHash. PowerShell documentation, Microsoft Learn. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash, accessed 28 Nov 2026.
- Searching. VirusTotal documentation, VirusTotal. https://docs.virustotal.com/docs/searching, accessed 28 Nov 2026.
- How it works. VirusTotal documentation, VirusTotal. https://docs.virustotal.com/docs/how-it-works, accessed 28 Nov 2026.
- Results and reports. VirusTotal documentation, VirusTotal. https://docs.virustotal.com/docs/results-reports, accessed 28 Nov 2026.