1. Home
  2. Developer
  3. Hash Generator

Hash Generator

Five hashes of any text or file at once, with checksum comparison.

Runs in your browser · No upload
Paste the checksum from a download page to see which algorithm it matches.
MD5 · not for security
0160e60e6a7470131947fbca6746de9a
SHA-1 · not for security
0f68d491212c7ed605647ae35f658056462614dc
SHA-256
d92d48bd147475bbabc285f248ebb76d1215c41635b24bcf506c5cf4ff16bc09
SHA-384
b6f368424dac962e39a4f45d5597b9c179131e68ea630f046fc7a22961f94e1e4ddf890260cd236560bbd8dbf6ee5120
SHA-512
a11029c4c6afccf19c59f64d0a6c761bf8a32ec4eeb564c1d4c0c4e4ceb0c359b2432f7da177e469da6646358bfc1e375b0f6c7ccdcb5f9e7ded794b2aa776e4
MD5 and SHA-1 have practical collision attacks (two different inputs with the same hash), so never use them for signatures or certificates. They are still fine for spotting accidental corruption. For password storage, use bcrypt or Argon2 | not even SHA-256.

Text and files are hashed in your browser only and never uploaded.

How to use

  1. 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.
  2. 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.
  3. 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.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.