File hash generator
Get the SHA-256, SHA-1, SHA-512 or MD5 fingerprint of any file. Use it to compare files or publish a checksum.
- 1Upload
- 2Settings
- 3Download
How to use File hash generator
About File hash generator
A file hash is a short fingerprint of a file. If a download has the same hash as the one published by the author, the file is the one they released and it was not damaged or altered on the way. This free tool calculates MD5, SHA-1, SHA-256 and SHA-512 checksums for any file in your browser.
Choose up to 20 files, tick the algorithms you want and the results appear in a table. SHA-256 is the usual choice for checking downloads today; MD5 and SHA-1 are still widely published but are no longer suitable for security on their own. The file never leaves your device: the hash is calculated locally.
How it works: a hash is a fixed-length fingerprint calculated from a file's bytes. The tool computes SHA-256, SHA-1, SHA-512 and MD5 for the file you choose; tick the ones you need. Two identical files always produce the same fingerprint, and changing even one byte produces a completely different one.
Step by step: 1) select the file; 2) tick the algorithms; 3) calculate; 4) compare the result with the checksum published by the source, ideally SHA-256. If every character matches, the file is identical to what the publisher listed. The companion hash-verify tool can do this comparison against a published checksum for you.
Realistic limits: a match shows the file is unchanged compared with the checksum you compared against; it is only as trustworthy as where you got that checksum. If an attacker controls both the download and the page listing the hash, a match proves little. MD5 and SHA-1 are considered weak against deliberate tampering, so they are useful for spotting accidental corruption but should not be your only check. Very large files take time, since they are read through your device. Nothing is uploaded.
Typical uses: verifying a downloaded installer, confirming a backup copy matches the original, detecting duplicate files, or confirming a document was not altered in transit.
Comparing correctly: copy the published value and compare it with the calculated one across the whole string, not just the first and last characters. Case does not matter in hexadecimal. If the values differ, download the file again, preferably over a stable connection, and recalculate; a mismatch can mean corruption, an incomplete download or a different version from the one the checksum describes.
Understanding the algorithms: SHA-256 gives a 64-character result and is the modern default. SHA-512 gives 128 characters, SHA-1 gives 40 and MD5 gives 32. Longer is not always "better" for everyday verification, but SHA-1 and MD5 have known weaknesses where an attacker deliberately crafts files, so use SHA-256 or above whenever the source offers it. A checksum identifies content only; it says nothing about whether the content is safe.
Tips for better results
- Compare the whole string, not just the first characters. Hashes are case-insensitive, so upper and lower case letters mean the same.
- Prefer SHA-256 when the publisher gives a choice.
- To check a file against a hash you already have, use Hash verify. For text instead of a file, use Text hash.
- Prefer SHA-256 or SHA-512 when the publisher offers them.
- Copy the checksum from the official site, not from a forum.
- Ignore upper or lower case differences; hex hashes are the same either way.