File Hash Calculator
Calculate SHA-256 and other hashes for files.
About this tool
Choose a file and press Process. You get its MD5, SHA-1, SHA-256 and SHA-512 hashes as hexadecimal text, all computed on your device.
How to use
How it works
The whole file is read into memory and run through each algorithm. SHA-256 and SHA-512 are the right choice for checking integrity; MD5 and SHA-1 are included because many download pages still publish them, but they are no longer collision-resistant, so do not rely on them for security. Identical bytes always give identical hashes, and changing a single byte changes the hash completely.
Worked example
A file containing the text hello
- Input
- A file whose contents are exactly: hello (no newline)
- Output
- md5 5d41402abc4b2a76b9719d911017c592 sha256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
- Walkthrough
- The same text always produces these values.
Limitations
- Very large files depend on your device's memory because the whole file is loaded at once.
- One file at a time.
- A hash proves the file matches a published value; it does not prove the value itself is trustworthy.
Questions
How do I get the SHA-256 of a file?
Is my file uploaded?
Which hash should I compare?
Are MD5 and SHA-1 safe?
Features
- MD5, SHA-1, SHA-256, SHA-512
- Hex output
- Private, in-browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
How Image Compression Works
Leo Isikdogan
Size limits matter for many file-sharing tools.
Watch on YouTubePDF, What is it FOR?
Computerphile
File tools often sit next to document packet workflows.
Watch on YouTube
- File API
MDN
Browser file handling behind local file tools.
- RFC 1952 — GZIP file format
IETF
GZIP format notes for compress/decompress utilities.