Hash Generator — Get MD5 and SHA hashes of any text or file, and check them against a known hash.

Type or paste text, or choose a file, and see its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once. Paste a hash you were given to see whether it matches. Hashing happens on your device, so your text and files are never uploaded.

Generate a hash Your text and files stay in your browser
Hash generator showing MD5, SHA-1 and SHA-256 hash values for a piece of text

Input

Hashes

The guide

Hash Generator Guide: What Hashes Are and When to Use Them

A plain explanation of MD5 and SHA, how to verify a file, and what hashes are not for.

A simple explanation

What is the Hash Generator?

A hash function turns any input, a word or a whole file, into a short fixed-length fingerprint. The same input always gives the same hash, and even a one-character change gives a completely different one.

That makes hashes useful for checking that a file arrived unchanged, spotting duplicate files, creating cache keys and comparing data without sharing the data itself.

Common reasons to use it

Why People Use a Hash Generator

Verify downloads

Hash a downloaded file and compare it with the checksum the publisher lists to make sure it was not corrupted.

Developers

Create quick checksums, cache keys or test values for APIs, signatures and fixtures.

Find duplicates

Two files with the same SHA-256 hash are, for practical purposes, the same file.

Which algorithm to pick

MD5, SHA-1 and the SHA-2 Family

MD5 gives a 32-character hex hash and SHA-1 gives 40. Both are fine for catching accidental corruption, but collisions can be created on purpose, so do not use them for anything security-related. SHA-256 (64 characters), SHA-384 (96) and SHA-512 (128) belong to the SHA-2 family and are the safe choices today.

A hash is not encryption: it cannot be reversed to get the original back. It is also not enough for storing passwords. Use a slow, salted password hash such as bcrypt, scrypt or Argon2 for that.

Get it done in a few steps

How to Use the Hash Generator

  1. Choose Text or File.
  2. Type or paste your text, or pick a file. Hashes appear right away.
  3. Press Copy beside the hash you need. Switch on uppercase if you want capital hex letters.
  4. To verify a download, paste the published hash into the compare box and check for a match.
Better results

Simple Tips

  • Hash text exactly as written. A trailing space or a different line ending gives a different hash.
  • For a download check, use SHA-256 if the publisher offers it.
  • Text is hashed as UTF-8, which is what most tools and APIs expect.
  • Hex output is case-insensitive, so the compare box ignores case and spaces around the hash.
Good to know

Limitations and Privacy

Privacy

Text and files are hashed in your browser with built-in browser tools. Nothing is uploaded, stored or logged.

Limitations

Very large files are read into memory, so a file of several gigabytes may fail on a phone or older computer. MD5 and SHA-1 are shown for compatibility and should not be used for security.

Common questions

Hash Generator FAQ

What is a hash?

A hash is a fixed-length fingerprint calculated from some data. The same input always gives the same hash, and a tiny change in the input changes the hash completely.

Which hash should I use?

Use SHA-256 for most things, including checking downloads. MD5 and SHA-1 are only suitable for catching accidental changes, not for security.

Can a hash be reversed to get the original text?

No. A hash is a one-way function. People can guess the input and compare hashes, which is why weak passwords can still be found.

How do I check a downloaded file?

Choose File, select the downloaded file, and compare the SHA-256 hash with the one on the publisher's page. Paste the published hash into the compare box to see a match or a mismatch.

Why does my hash not match another tool?

Usually the input differs by a space, a line ending or the text encoding. This tool hashes text as UTF-8 exactly as typed, with no trimming.

Is MD5 safe for passwords?

No. MD5 is fast and has known collisions. Store passwords with bcrypt, scrypt or Argon2 instead of a plain hash.

How long is each hash?

MD5 is 32 hex characters, SHA-1 is 40, SHA-256 is 64, SHA-384 is 96 and SHA-512 is 128.

Are my text and files uploaded?

No. Everything is hashed inside your browser and nothing leaves your device.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

The homepage features dozens more free tools that don't require an API key.

Suggest a tool