Hash Generator

MD5, SHA-1, SHA-256 and SHA-512 checksums of text or files

Runs in your browser

  • MD5—
  • SHA-1—
  • SHA-256—
  • SHA-512—

What is a hash?

A hash function turns any input, a word or a 10 GB file, into a short fixed-length fingerprint written in hexadecimal. The same input always gives the same hash, and changing a single byte gives a completely different one, so comparing two hashes tells you whether two files are identical without comparing them byte by byte. MD5 (32 characters) and SHA-1 (40) are still used as checksums but are broken for security: people can build two different files with the same hash. SHA-256 (64) and SHA-512 (128) belong to the SHA-2 family and are the safe choice today. Text is hashed as UTF-8, the encoding used by almost every other tool.

Use cases

  • Check that a downloaded ISO, installer or firmware matches the SHA-256 published by its maker
  • Find out whether two files are exactly the same without opening them
  • Get the MD5 or SHA hash of a string for code, an API signature test or a database lookup
  • Keep a fingerprint of a document or contract to prove later that it has not changed

When to use?

Use it whenever a website lists a checksum next to a download: drop the file here, paste the published value into the compare box and look for the green match. Prefer SHA-256 when you get to choose. Do not use a plain hash to store passwords: MD5 and SHA are designed to be fast, which makes guessing easy. Password storage needs a slow algorithm such as bcrypt or Argon2.

Examples

  1. The hashes of a short word

    Input

    hello

    Output

    MD5
    5d41402abc4b2a76b9719d911017c592
    SHA-1
    aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
    SHA-256
    2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
  2. One capital letter changes the whole hash

    Input

    Hello

    Output

    MD5
    8b1a9953c4611296a827abf8c47804d7
    SHA-256
    185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
  3. Vietnamese text, hashed as UTF-8

    Input

    Xin chào

    Output

    MD5
    d507cf86fa25f6787e3fc5e5d61e00a3
    SHA-256
    117ae605a3a02bf47978fba60ef2bf4a08a73eb34b0124d9a1a088c8cab6d9de

Questions and answers

Are my files uploaded?

No. The file is read in slices and hashed in your browser by background workers, so even files of several gigabytes work without being sent anywhere.

Which algorithm should I use?

SHA-256 for anything new. Use MD5 or SHA-1 only to compare with a checksum that was published in that format.

Can a hash be reversed to get the text back?

No. A hash keeps no copy of the input. Short or common words can still be found by guessing and comparing, which is why lists of MD5 values of common passwords exist.

Why is my hash different from another tool?

The input is usually different: an extra space or line break at the end, Windows line endings, or another text encoding. This tool hashes exactly what is in the box, as UTF-8.

Sources and standards

All Tools