Hash Generator (MD5, SHA)

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files online. Verify file checksums. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This hash generator creates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text or a file. It is for anyone who needs to confirm a download is intact, compare two pieces of data, or get a quick digest of a string. It is free, and your files are processed in your browser, so nothing is uploaded.

How do you generate a hash online?

  1. Type or paste your text, or choose a file. Files up to 500 MB are supported.
  2. Find the result for the algorithm you need: MD5, SHA-1, SHA-256, SHA-384 or SHA-512.
  3. Turn on the uppercase option if the checksum you are comparing against is written in capital letters.
  4. Copy the hash you need.
How to use the Hash Generator (MD5, SHA) on OneHubTools: 4 steps with a real screenshot of the tool
How to use the Hash Generator (MD5, SHA), step by step.

This tool pairs well with the Password Generator. If you do this kind of job often, the UUID Generator and the Regex Tester can save you time too.

The same input always produces the same hash. Change a single character and the result looks completely different. That is what makes hashes useful for spotting changes.

How do you verify a file checksum?

Many download pages publish a checksum next to the file. Comparing it with your own result tells you whether the file arrived unchanged.

  1. Download the file and note the checksum on the website, plus the algorithm it uses.
  2. Choose the downloaded file in the tool.
  3. Copy the hash for the same algorithm.
  4. Compare the two strings. If they match exactly, the file is not corrupted.

If they do not match, download the file again before you open or install it. Check that you compared the right algorithm first. A SHA-256 value will never match an MD5 value, even for the same file.

Result from the Hash Generator (MD5, SHA) on OneHubTools
What the Hash Generator (MD5, SHA) gives you.

What is a hash generator good for?

  • Checking downloads. Confirm an installer, ISO or archive matches the checksum the publisher lists.
  • Finding corrupted copies. After a file transfer or backup, hash both copies. Different results mean something went wrong.
  • Comparing files. Two files with the same hash are almost certainly identical, even if their names differ.
  • Checking text. Hash a string before and after editing to see whether it really changed.
  • Development and testing. Produce a known digest to check against the output of your own code.

Which hash algorithm should you choose?

Use the one the publisher lists. If you are free to choose, SHA-256 is a sensible everyday pick for a file checksum.

AlgorithmLength (hex characters)Typical use
MD532Quick checks for accidental corruption, or when a site only publishes MD5
SHA-140Older checksums and legacy systems
SHA-25664General-purpose checksums
SHA-38496When a source provides a SHA-384 value
SHA-512128When a source provides a SHA-512 value

The length is a quick sanity check. If the checksum you were given has 64 characters, it is almost certainly SHA-256.

Tips for accurate results

  • Watch for hidden characters. A trailing space or an extra line break changes the hash of your text completely.
  • Ignore letter case when comparing. Uppercase and lowercase hex describe the same value. The uppercase option only changes how it is displayed.
  • Copy, don't retype. One wrong character makes a good file look broken. Paste both strings next to each other and compare.
  • Match the algorithm. Check which one the website uses before you start.
  • Allow time for big files. Hashing a file near the 500 MB limit takes longer than a short string, because your browser does the work.

Can you use MD5 or SHA-1 for passwords?

No. MD5 and SHA-1 are not secure for passwords. They are fast to compute, which helps attackers who try millions of guesses. If you build a login system, use a dedicated password hashing method such as bcrypt or Argon2 instead.

A hash is also not encryption. You cannot turn a hash back into the original text, so it is not a way to hide data you need to read later. Use this tool for checksums and comparisons, not for storing secrets.

Why doesn't my hash match?

Most mismatches have a simple cause. Run through this list before assuming the file is bad:

  • You compared different algorithms, such as MD5 against SHA-256.
  • The text has extra spaces or a line break that the original did not.
  • The download was interrupted or changed along the way. Download it again and retest.
  • You copied only part of the checksum from the page.

If a fresh download still does not match with the correct algorithm, do not trust the file. Get it again from the official source.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Sources

According to Wikipedia, a cryptographic hash function always turns the same input into the same fixed-length output. MD5 was published more than 30 years ago and is no longer considered secure for passwords.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is a hash generator?

A hash generator turns text or a file into a fixed-length string called a hash or digest. The same input always gives the same result, so you can use it to check that data has not changed.

How do I verify a file checksum?

Choose your downloaded file in the tool, copy the hash for the algorithm the website uses, and compare it with the published checksum. If the two strings match exactly, the file is intact.

Which is better, MD5 or SHA-256?

SHA-256 is the better general choice. MD5 is still fine for spotting accidental corruption, but use it only when the publisher offers nothing else.

Should I use MD5 for passwords?

No, MD5 and SHA-1 are not secure for passwords. Use a purpose-built password hashing method such as bcrypt or Argon2.

Are my files uploaded when I generate a hash?

No, files are processed in your browser and nothing is uploaded. The tool is free to use and handles files up to 500 MB.

Can I get the original text back from a hash?

No, a hash cannot be reversed to reveal the original text. It only lets you check whether two inputs are the same.