File Hash Calculator
Drop a file below to calculate its SHA-256, SHA-384 and SHA-512 hashes. The file is read and hashed entirely on your device -- it is never uploaded anywhere.
Drag and drop a file here, or
Your file never leaves this device. It is read locally and hashed with the browser's built-in Web Crypto API -- no upload, no network request, no storage.
What this tool does
This tool reads a file you choose from your computer directly into browser memory and computes SHA-256, SHA-384 and SHA-512 hashes for it. These digests act as a unique fingerprint: if even one bit of the file changes, the resulting hashes are completely different.
Why security professionals use it
File hashing is a core part of verifying software downloads, confirming forensic evidence has not been altered, and sharing indicators of compromise. Incident responders routinely hash suspicious files before submitting them to malware analysis sandboxes or checking them against threat intelligence feeds, since hashes can be shared and compared without ever exposing the file itself.
How it works
When a file is selected, the browser's File API reads its contents into an ArrayBuffer entirely in memory. That buffer is passed to crypto.subtle.digest() for each algorithm, and the resulting bytes are converted into hexadecimal strings for display. None of this requires -- or uses -- a network connection.
Step by step
- 1Drag a file onto the drop zone, or click Choose a file to open a file picker.
- 2Wait for the tool to read the file and compute all three hashes -- larger files take longer.
- 3Compare the SHA-256 (or other) digest against the one published by the file's source.
- 4Copy any digest you need to share or record for documentation.
Practical examples
Before installing software downloaded from a mirror, you can hash the installer and compare it against the checksum published on the vendor's official site to confirm it was not corrupted or tampered with in transit. During an incident, a responder might hash a suspicious attachment found on a compromised machine and search that hash on a threat intelligence platform to see whether it is already known.
Common mistakes
- Comparing hashes from different algorithms (e.g. a published SHA-256 against a computed SHA-1).
- Assuming a matching hash proves a file is safe -- it only proves the bytes match a specific reference, not that the reference itself is trustworthy.
- Re-hashing after opening or editing a file, which changes its bytes and therefore its hash.
- Sharing full files instead of just hashes when trying to check a suspicious file with colleagues or online services.
Security considerations
Hashing a file locally is safe precisely because the file stays on your machine -- this tool never uploads it. When investigating potentially malicious files, treat the file itself with caution (avoid opening or executing it) even though hashing it is harmless. Always prefer SHA-256 or stronger over MD5 or SHA-1 when sharing hashes for security purposes, since the older algorithms have known collision weaknesses that can be exploited to forge matching files.
Frequently asked questions
Does the file get uploaded anywhere?
No. The file is read directly from your disk into browser memory using the File API, hashed locally with the Web Crypto API, and never transmitted over the network at any point.
Why would I compute a file's hash?
To verify a downloaded file matches the hash published by its source (confirming it wasn't corrupted or tampered with), to fingerprint a suspicious file during incident response, or to check a file against known-malware hash lists on threat intelligence platforms.
Which hash algorithm should I share with others?
SHA-256 is the most widely used and accepted default for file integrity verification and threat intelligence sharing. Include the algorithm name alongside the digest so recipients know how to verify it.
Can this handle very large files?
It can, but very large files (multiple gigabytes) require reading the entire file into browser memory, which may be slow or use significant RAM depending on your device and browser.
Related tools
Hash Generator
Generate SHA-256, SHA-384 and SHA-512 hashes from any text using the Web Crypto API.
IOC Defanger / Refanger
Safely defang and refang URLs, domains, IPs and emails when sharing indicators.
Unix Timestamp Converter
Convert Unix timestamps to readable UTC dates and back, in seconds or milliseconds.