File Hash Calculator

Calculate SHA-256 and other hashes for files.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Choose a file.
2
Step 2
Press Process.
3
Step 3
Copy the hash you need from the result.

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?
Choose the file and press Process. The sha256 value is in the result.
Is my file uploaded?
No. Hashing is done in your browser.
Which hash should I compare?
Use the algorithm the publisher lists; SHA-256 where there is a choice.
Are MD5 and SHA-1 safe?
Not against deliberate tampering. Prefer SHA-256.

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 YouTube
  • PDF, What is it FOR?

    Computerphile

    File tools often sit next to document packet workflows.

    Watch on YouTube