Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file at the same time. Use them to verify downloads, compare files or create checksums. All hashing happens in your browser.

  • 100% free, no sign-up
  • Runs in your browser: text never uploaded
  • Instant results
Hash text below, or a file’s exact bytes.

Hashes

  • SHA-256
    —
  • SHA-512
    —
  • SHA-384
    —
  • SHA-1Deprecated for security
    —
  • MD5Not secure; checksums only
    —

How to use the Hash Generator

  1. Type or paste text, or upload a file to hash its exact contents.

  2. All five hashes appear and update as you type.

  3. Click Copy next to the algorithm you need.

  4. To verify a download, compare the hash with the one published by the provider; they must match exactly.

Examples

Hashes of "hello"
Input
hello
Result
MD5: 5d41402abc4b2a76b9719d911017c592
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

What is a hash?

A cryptographic hash function turns any input, a word or a multi-gigabyte file, into a fixed-length fingerprint. The same input always gives the same hash, but changing even one character produces a completely different result, and you cannot work backwards from the hash to the input.

That makes hashes ideal for checking integrity: if the hash of a file you downloaded matches the one the publisher lists, the file has not been corrupted or tampered with.

Which algorithm should I use?

AlgorithmOutputStatus
MD5128-bit, 32 hex charactersBroken for security; fine for non-security checksums
SHA-1160-bit, 40 hex charactersDeprecated; practical collisions exist
SHA-256256-bit, 64 hex charactersSecure, the most widely used choice
SHA-384384-bit, 96 hex charactersSecure
SHA-512512-bit, 128 hex charactersSecure, often faster on 64-bit machines

Use SHA-256 unless a system specifically asks for something else. MD5 and SHA-1 are included because many older systems and download pages still publish them.

Do not hash passwords with these

MD5 and the SHA family are designed to be fast, which is exactly wrong for storing passwords: attackers can try billions of guesses per second. Password storage needs slow, salted algorithms built for the purpose, such as Argon2, bcrypt or scrypt. Use this tool for checksums, cache keys, deduplication and verifying files, not for securing credentials.

Text encoding and exact matches

Text is hashed as UTF-8 bytes, the standard on the web and in most programming languages. Hashes are extremely sensitive: a trailing space or a Windows line ending (CRLF instead of LF) changes the result completely. If your hash does not match one produced elsewhere, check for invisible whitespace with Remove Extra Spaces, or hash the original file instead of pasted text.

Need to encode rather than fingerprint data? See the Base64 Encoder.

Worked example: verifying a download

A software site lists the SHA-256 checksum of its installer next to the download link.

  1. Download the installer.
  2. Upload the file here. Its SHA-256 hash appears in a moment.
  3. Compare it with the published value. Copying both into a text editor makes it easy to check every character.
  4. If they match, the file is exactly what the publisher released. If they differ, delete it and download it again from the official source.

Check that the checksum itself comes from the official site over HTTPS. A tampered download page could list a tampered hash.

Other everyday uses

  • Detecting duplicate files by comparing their hashes instead of their contents.
  • Cache keys and ETags that change whenever content changes.
  • Subresource Integrity attributes for scripts and stylesheets, which use SHA-256, SHA-384 or SHA-512 in Base64 form.
  • Comparing configuration between environments without exposing the values themselves.

Frequently asked questions

No. Hash functions are one-way. Short or common inputs can sometimes be guessed with lookup tables, which is why hashes alone do not protect passwords.

Last reviewed by the WordTools Pro team. How our tools work