Skip to content

Hash Generator

Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a file up to 200 MB, in hex or Base64, and check a download against its published checksum.

  • Free, no sign-up
  • Runs in your browser
  • Developer
Input
Up to 1,000,000 characters, hashed as UTF-8 bytes. Line breaks count as a single LF character.
Output format
Paste a published checksum to compare. Hex is compared without regard to case; spaces are ignored.

Read the guide How to Verify a File Checksum With SHA-256 or MD5

How to use the hash generator

  1. Choose Text or File.
  2. Type or paste the text, or pick a file of up to 200 MB. Text hashes update as you type.
  3. Pick an algorithm. SHA-256 is selected by default because it is the most common choice for checksums today.
  4. Choose the output format: lowercase hex, uppercase hex or Base64.
  5. To verify a download, paste the checksum published by the author into Expected hash. The tool tells you at once whether it matches.
  6. Press Copy to put the hash on your clipboard.

Your text and files stay on your device

Everything is calculated in your browser. Files are read locally and are never uploaded to our server, so you can safely check large installers or private documents.

What a hash is

A hash function turns any amount of data into a short, fixed-length fingerprint. The same input always gives the same hash, and changing even one bit of the input changes the result completely. That makes hashes ideal for spotting corrupted or altered files.

Text is first converted to bytes with UTF-8, so accented letters and emoji hash the same way they would in most programming languages. Line breaks in the text box count as a single line feed character; a file saved with Windows line endings (CR LF) therefore has a different hash than the same text pasted here.

Worked example

The three letters abc are three bytes. Their hashes are:

  • MD5: 900150983cd24fb0d6963f7d28e17f72 (32 hex characters, 128 bits)
  • SHA-1: a9993e364706816aba3e25717850c26c9cd0d89d (40 hex characters, 160 bits)
  • SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad (64 hex characters, 256 bits)

In Base64 the same MD5 hash is the 24-character string kAFQmDzST7DWlj99KOF/cg==.

Good to know

  • MD5 and SHA-1 are broken for security. Attackers can create two different inputs with the same hash, so never use them for digital signatures or certificates. They are still fine for detecting accidental corruption.
  • Plain hashes are not for passwords. Even SHA-256 is far too fast to store passwords safely. Password storage needs a slow, salted function such as bcrypt, scrypt or Argon2.
  • SHA hashing uses your browser's built-in Web Crypto, which only works on a secure (HTTPS) page. MD5 is calculated by the tool itself.
  • Hex checksums are compared without regard to upper or lower case, and spaces are ignored.

Frequently asked questions

Which algorithm should I use?

Use whichever algorithm the publisher of the file used for its checksum. For new checksums, SHA-256 is the usual choice. SHA-512 is equally safe and can be faster on 64-bit computers. Choose MD5 or SHA-1 only when you need to match an older published value.

Why does my hash differ from the one in another program?

The most common causes are invisible differences in the input: a trailing space or newline, Windows (CR LF) versus Unix (LF) line endings, or a different text encoding. For files, make sure the download finished and you picked the same file. Also check that both tools use the same algorithm.

Can a hash be reversed to get the original text?

No. A hash keeps only a fingerprint, not the data itself. Short or common inputs such as simple passwords can be guessed by trying many candidates, which is why fast hashes must not be used to store passwords.

Is my file uploaded to calculate the hash?

No. The file is read by your browser and hashed on your device. Nothing is sent to our server.

Why is there a 200 MB limit?

The browser has to hold the whole file in memory while hashing it. 200 MB works well on most computers and phones. For larger files, use a command-line tool such as sha256sum, shasum or certutil.