How to use
- Choose Text and type something. The MD5, SHA-1, SHA-256, SHA-384 and SHA-512 values appear right away. Text is hashed as UTF-8 bytes.
- For a file checksum, choose File, then pick a file or drop it onto the area. Large files are read in pieces, so you can watch the progress and cancel at any time.
- Paste the value from a download page into Compare with expected hash (optional) to see which algorithm it matches. Upper or lower case, spaces and prefixes like
sha256:are ignored.
Algorithms at a glance
A hash function boils input of any size down to a value of fixed length, and it only works in one direction. Change a single character and the result is completely different.
| Algorithm | Output | Hex characters | Standard | Safe for security? |
|---|---|---|---|---|
| MD5 | 128 bits | 32 | RFC 1321 | No (collisions found in 2004) |
| SHA-1 | 160 bits | 40 | FIPS 180-4 | No (a real collision was published in 2017) |
| SHA-256 | 256 bits | 64 | FIPS 180-4 | Yes |
| SHA-384 | 384 bits | 96 | FIPS 180-4 | Yes |
| SHA-512 | 512 bits | 128 | FIPS 180-4 | Yes |
Example
The SHA-256 of abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, and its MD5 is 900150983cd24fb0d6963f7d28e17f72. These are the official test values from FIPS 180-4 and RFC 1321, so you can use them to check that the tool gets it right. The SHA-256 of an empty string starts with e3b0c442 and ends with b855.
Things to watch out for
- The same characters stored as different bytes give a different hash. Windows (CRLF) versus Unix (LF) line endings, or an extra newline at the end, will change the result. The text box uses LF line endings, so use File mode when you need to match a file exactly.
- Don’t store passwords as plain hashes. Even SHA-256 is fast enough to be cracked by trying guesses at scale. Use a function built for passwords, such as bcrypt, scrypt or Argon2. Need a new password? Try the Password Generator.
- Only use MD5 and SHA-1 to catch accidental damage to a file. When tampering is a concern, use SHA-256 or stronger.
FAQ
Does it handle big files? Are they uploaded?
Files are never uploaded. Your browser reads them on your device, 2 MB at a time. There’s no size limit, but all five hashes are calculated in plain JavaScript, so a file of several gigabytes can take a few minutes depending on your device.
Can a hash be reversed?
Not by calculation, because hashes only go one way. Short, common strings can still be looked up in precomputed tables, though, so a hash on its own doesn’t keep a secret safe. If you just need to turn data into text, you want the Base64 Encoder, not a hash.
Text and files are hashed in your browser and never sent to a server.