File hash (checksum) calculator
Drop a file or type some text to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Paste the checksum from the download page and it will tell you whether it matches. The file is read in your browser and never uploaded.
đź”’ Your files never leave your device
How to use it
- Drop the file onto the box or choose it. You can also type or paste text.
- Tick the algorithms you need: SHA-256 is the most common today.
- Paste the checksum published by the vendor or download site into “Expected hash”.
- If it says “Match”, the file is identical to the original. If not, download it again.
Example
The hash of the word “hello”
The text “hello” (lowercase, no line break) has SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 and MD5 5d41402abc4b2a76b9719d911017c592. Change a single letter and you get a completely different hash.
How it works
SHA-1, SHA-256, SHA-384 and SHA-512 (FIPS 180-4) are computed with Web Crypto, your browser’s cryptographic module. MD5, which Web Crypto lacks, uses our own implementation of RFC 1321, checked against the official test vectors.
Text is converted to UTF-8 bytes before hashing, as most programs do.
When comparing, spaces, letter case and prefixes such as “sha256:” are ignored, and the algorithm of the pasted hash is inferred from its length.
Limitations
- The whole file is read into memory; the limit is 1 GB and phones may run out sooner.
- MD5 and SHA-1 catch download errors but are no longer safe against deliberate tampering: if SHA-256 is offered, use it.
- A matching hash only proves the file equals what was published; if the site itself were compromised, the hash could be too.
FAQ
Why check a file’s hash?
To know that what you downloaded is exactly what was published: not truncated, not corrupted and not altered by a third party. Many software sites publish a SHA-256 checksum next to the download link.
Is my file uploaded?
No. It is read and processed in your browser; you can confirm this in the Network tab of the developer tools while the hash is computed.
Why does my text give a different hash in another program?
Usually a trailing line break or space, or a different encoding. Here the text is used exactly as typed, in UTF-8, with nothing added.