Identify a file by its magic bytes and flag extensions that lie about the real format.
File Hash Calculator
Use File Hash Calculator
What it does
Drop one or more files to get their MD5, SHA-1 and SHA-256. Hashing happens in your browser; only the lookup links you click send a hash to VirusTotal or MalwareBazaar.
It runs entirely in your browser: nothing you enter is uploaded.
How to use File Hash Calculator
- Drop or choose files. Drop one or more files on the box or choose them. Up to 50 files are queued and hashed one after another.
- Watch the progress. Each file gets a card with its size and a progress bar. Stop cancels the current file and the rest of the queue.
- Copy the hashes. Each card shows MD5, SHA-1 and SHA-256 with a Copy button. Copy all hashes gives a tab-separated table of every file.
- Look the hash up. Press VirusTotal or MalwareBazaar to search for the SHA-256 in a new tab, or use Send to for IOC Converter or Abuse Report Generator.
- Start over. Clear stops any running job and removes all cards.
Example
Published test sentence
The quick brown fox jumps over the lazy dogexample.txt
43 B (43 bytes) · browser type text/plain
Done
MD5
9e107d9d372bb6826bd81d3542a419d6
SHA-1
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
SHA-256
d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
VirusTotal ↗
MalwareBazaar ↗
These links open virustotal.com or bazaar.abuse.ch in a new tab and send only the SHA-256, never the file.Hashed as a 43-byte file named example.txt: MD5 9e107d9d372bb6826bd81d3542a419d6, SHA-1 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 and SHA-256 d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592, the published values for this sentence.
What it checks
| Signal | What it means |
|---|---|
| SHA-256 | The value to quote in reports and to search malware databases. Changing even one byte of the file gives a different value. |
| MD5 and SHA-1 | Still used by older lookups and feeds. They are not collision-resistant, so do not rely on them alone as proof. |
| Empty-file warning | A 0-byte file has the same hashes as every other empty file, so a match proves nothing. |
| Files over 500 MB | Only MD5 is computed, and the lookup link becomes VirusTotal (by MD5). MalwareBazaar needs the SHA-256. |
| Memory note | If the browser cannot reserve memory for the whole file, SHA-1 and SHA-256 are skipped and a note says so. |
| Browser type | The MIME type your browser guesses from the file name. It does not check the content; File Type Sniffer does. |
| Copy all hashes | A header row and one line per file with name, bytes, MD5, SHA-1 and SHA-256, ready for a ticket or spreadsheet. |
| Lookup links | They open the search with only the hash. An unknown hash is not proof of safety: new samples are often not listed yet. |
| Size line | The exact byte count. If it differs from the size in a report or a mail gateway log, you are looking at a different file. |
More examples
An empty file
A file of 0 bytesMD5 d41d8cd98f00b204e9800998ecf8427e, SHA-1 da39a3ee5e6b4b0d3255bfef95601890afd80709, SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, and a warning that these are the hashes of zero bytes, shared by every empty file.
The test string abc
A 3-byte file containing abc, with no line breakMD5 900150983cd24fb0d6963f7d28e17f72, SHA-1 a9993e364706816aba3e25717850c26c9cd0d89d, SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad: the values published in RFC 1321 and FIPS 180.
A very large disk image
A 2 GB .iso fileOnly MD5 is shown, with the note that SHA-1 and SHA-256 were skipped because the file is larger than 500 MB, and a single VirusTotal (by MD5) link.
FAQ
Which hashes does the calculator produce, and how?
MD5 comes from this page's own RFC 1321 implementation while the file is read in 4 MB slices; SHA-1 and SHA-256 come from the browser's Web Crypto API. All three cover the exact bytes of the file, so they match what sha256sum, Get-FileHash or VirusTotal report for it.
Why are SHA-1 and SHA-256 missing for very large files?
Web Crypto can only hash a complete buffer, so the page would have to hold the whole file in memory; above 500 MB it skips them to keep the tab from crashing and computes only MD5. MD5 and SHA-1 are fine for lookups but not collision-resistant, so quote the SHA-256 when you report a sample.
Is the file uploaded to VirusTotal or MalwareBazaar?
No. The file never leaves your browser. The VirusTotal and MalwareBazaar buttons are ordinary links that open those sites in a new tab with the hash in the address, and nothing is sent until you click one.
Why does my hash differ from the one in a report?
Any change to the bytes changes every hash: a re-saved, re-zipped or converted copy is a different file. Renaming a file does not change its hash. Hash the original you received.
Should I upload the file to VirusTotal myself?
Search by hash first. Files uploaded to VirusTotal are shared with its security partners, so do not upload documents that contain personal or company data.
Is it risky to hash a malicious file?
Hashing only reads the bytes: the file is never opened, run or rendered. Keep it closed afterwards and delete it when you no longer need it as evidence.
What does Send to pass on?
The SHA-256 of each hashed file, one per line, or the MD5 where SHA-256 was skipped. IOC Converter and Abuse Report Generator accept that list.