Hash Generator

MD5, SHA-1, SHA-256, SHA-512 and CRC32 of text or files, with checksum compare

0 bytes (UTF-8)
Hashed exactly as typed, including spaces and line breaks (as LF). A trailing space or newline changes every hash.
Hashes
Type some text to see its MD5, SHA and CRC32 hashes.

Runs entirely in your browser. Nothing you type or upload is sent to us or stored.

Results are for general guidance. Please check anything important before relying on it. Terms of use

How to Use

  1. Choose Text to hash something you type or paste, or File to hash a file from your device.
  2. Type the text (hashes update as you type) or drop a file. Large files show a progress percentage while they're read.
  3. Read the MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 values. Switch between Hex and Base64 output if needed.
  4. To verify a download, paste the checksum from the publisher's website into Compare with expected hash.
  5. A green Match means the file is intact; No match means it differs. Use the copy icon to copy one hash, or Copy all hashes to copy the whole list.

What is a hash?

A hash function turns any input, a single word or a 4 GB video, into a short fixed-length "fingerprint". The same input always gives the same hash, and changing even one character gives a completely different one. You can't get the original data back from a hash. That's why hashes are used to check that a download isn't corrupted or tampered with, to spot duplicate files, and to store fingerprints of data in software. This hash generator works out MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 for text or files.

SHA-256("abc") = ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
MD5("abc") = 900150983cd24fb0d6963f7d28e17f72
CRC32("abc") = 352441c2

Type abc into the tool and you'll get exactly these values. Type Abc and every one of them changes.

Which algorithm should I use?

AlgorithmOutputStatusTypical use
MD5128 bits (32 hex)Broken for securityOld download checksums, duplicate detection
SHA-1160 bits (40 hex)DeprecatedLegacy systems, older Git repositories
SHA-256256 bits (64 hex)SecureSoftware downloads, certificates, blockchains
SHA-384384 bits (96 hex)SecureTLS, subresource integrity (SRI)
SHA-512512 bits (128 hex)SecureChecksums from some Linux distributions, high-security uses
CRC3232 bits (8 hex)Not cryptographicZIP and PNG files, detecting accidental errors

Researchers showed practical MD5 collisions (two different inputs with the same hash) in 2004, and the first public SHA-1 collision ("SHAttered") was announced in 2017. So never rely on MD5 or SHA-1 where someone might deliberately forge data. They're still fine for catching accidental corruption. For anything security-related, use SHA-256 or stronger.

How to verify a downloaded file

  1. On the official download page, find the checksum next to the file. It is often labelled "SHA256" or in a file like SHA256SUMS.
  2. Switch this tool to File and choose the downloaded file.
  3. Paste the published checksum into Compare with expected hash. The tool finds the matching algorithm on its own and ignores spaces, colons and upper/lower case.

A match proves your copy is byte-for-byte identical to what the publisher hashed. A mismatch usually means an incomplete download. Download again, and if it still fails, don't run the file. And a checksum is only as trustworthy as the page you copied it from.

Good to know

  • Text is hashed as UTF-8. Hindi, Gujarati or emoji characters take 3 to 4 bytes each, and the byte count above the box shows exactly what is hashed.
  • Invisible characters matter. A trailing space or newline changes the hash. Text copied from Windows files may use CRLF line endings, while a browser text box uses LF, so a file and the same text pasted here can hash differently. Use File mode to hash a file exactly.
  • Hashes are not encryption, and plain SHA-256 is not suitable for storing passwords. Websites should use a slow password hash such as bcrypt, scrypt or Argon2.
  • Privacy: files are read and hashed inside your browser (SHA via the built-in Web Crypto API). Nothing is uploaded, so it's fine for large or confidential files.

Frequently Asked Questions

Choose File and select the file; the SHA-256 value appears in a few seconds. Paste the checksum from the publisher's website into 'Compare with expected hash' and the tool shows whether they match. The file never leaves your device.

No. A hash is a one-way function, not encryption, so there is no key to reverse it. Websites that claim to 'decrypt' MD5 only look the hash up in huge lists of common words and passwords, which is why short or common inputs are unsafe to rely on.

Not for security. Collisions can be created deliberately, so MD5 must not be used for signatures, certificates or passwords. It's still fine for detecting accidental corruption or duplicate files. Prefer SHA-256 when you have a choice.

Usually the input differs slightly: a trailing space or newline, Windows (CRLF) versus Unix (LF) line endings, or a different text encoding. This tool hashes text as UTF-8 exactly as typed. For an exact comparison, hash the file itself using File mode.

No. Hex hashes are case-insensitive: 900150983cd2โ€ฆ and 900150983CD2โ€ฆ represent the same bytes. The comparison box ignores case, spaces and colons. Base64 output, however, is case-sensitive.

Yes, 1 GB, because the browser reads the whole file into memory. Phones with little free memory may struggle with very large files; a laptop works best for those.