Skip to content

Hash Generator (MD5, SHA-256)

No pressure and no sales script. Just honest answers.

Prefer Saad Raza SEO on Google Add this site as a preferred source and Google will show more of my SEO and AI search guides when you search.

Add saadrazaseo.com as a preferred source on Google
Free tool

Runs in your browser. Nothing you enter is uploaded or stored.

Loading the tool...

To create a hash, paste your text into the free Hash Generator above, choose MD5, SHA-1, SHA-256, SHA-384, SHA-512 or all of them, and press Generate. Switch on the per-line option to hash up to 1,000 lines at once, add a secret key to create an HMAC with the SHA algorithms, and paste a known hash into the compare box to see straight away whether it matches. Text is hashed as UTF-8, and everything runs in your browser.

Last updated: 11 November 2026. Written by Saad Raza.

Key takeaways

  • A hash is a fixed-length fingerprint of some data. The same input always gives the same hash, and any tiny change gives a completely different one.
  • Hashing is one way. You cannot turn a hash back into the original text, although short or common inputs can be guessed.
  • MD5 and SHA-1 are fine for checking that a file or text has not changed by accident, but they are broken for security. Use SHA-256 or stronger when security matters.
  • Never store passwords with a plain hash. Use a password-hashing function such as bcrypt or Argon2, which are designed to be slow.
  • An HMAC mixes a secret key into the hash, so only someone with the key can create or check it. It is used to sign webhooks and API requests.
  • Nothing is uploaded. Your text and keys stay in your browser.

What a hash does

A hash function turns any amount of data into a short string of a fixed size. MD5 gives 32 hexadecimal characters, SHA-1 gives 40, SHA-256 gives 64, SHA-384 gives 96 and SHA-512 gives 128. Because the output is a fingerprint, you can use it to check that two pieces of data are identical without comparing them character by character, to detect changes, to name things by their content and to sign messages.

Change one letter of the input and the whole hash changes, which is what makes hashes useful for spotting tampering and accidental corruption. They are not encryption: nothing is hidden and nothing can be decrypted, because the original data is not contained in the hash.

How to use the Hash Generator

  1. Paste your text into the box.
  2. Choose an algorithm, or choose all algorithms to see every hash side by side.
  3. Tick Hash each line separately to treat each line as its own input, up to 1,000. Leave it off to hash the whole text as one value, line breaks included.
  4. Optionally tick upper-case hex, and enter a secret key to produce an HMAC. HMAC works with the SHA algorithms. If you choose all algorithms with a key, MD5 is left out.
  5. Optionally paste an expected hash into the compare box. The tool tells you whether it matches any of the results.
  6. Press Generate. Copy the table or download it as a CSV with the input, algorithm and hash for each row.

Which algorithm should I use?

AlgorithmLength in hex charactersStatusUse for
MD532Broken for securityChecksums, cache keys, legacy systems
SHA-140Broken for securityLegacy checks, such as old Git object names
SHA-25664SecureThe sensible default: integrity checks, signatures, content IDs
SHA-38496SecureWhere a longer hash is required
SHA-512128SecureWhere a longer hash is required, and often fast on 64-bit hardware

MD5 and SHA-1 have known collision attacks, which means two different inputs can be made to give the same hash. For a checksum on a download that nobody is attacking, that does not matter. Where someone could gain by forging data, choose SHA-256 or stronger.

A worked example

The example loads two lines, “Saad Raza SEO” and “hello world”, chooses all algorithms and hashes each line separately. That gives 2 inputs and 10 hashes. For “hello world”, MD5 is 5eb63bbbe01eeed093cb22bb8f5acdc3 and SHA-1 is 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed, both well-known values that you can use to check any hash tool. For “Saad Raza SEO”, MD5 is 11b0eaf5aea5afca85a67d75938cb7d2.

Now paste 5eb63bbbe01eeed093cb22bb8f5acdc3 into the compare box. The tool reports a match with the MD5 result for “hello world”. Paste a hash with one character changed and it reports no match and suggests checking the algorithm, hidden spaces, line endings and the text itself. Those are the real causes of most failed comparisons: an extra space or a line break at the end of the text gives a completely different hash.

Practical uses

  • Verify a download or a file. Compare the published hash of a file with one you compute. For text or configuration you can paste, this tool does it directly.
  • Detect content changes. Store the hash of a page’s main text and compare later to know whether it changed, a trick used in monitoring and in finding duplicates. For readable differences, use the text compare checker.
  • Anonymise identifiers. Hashing an email address with SHA-256 is a common step when sending data to ad platforms that match on hashed emails. Trim spaces and lower-case the address first so that the same address always gives the same hash. Remember that a plain hash of a guessable value is pseudonymous, not anonymous, and privacy rules may still apply.
  • Sign webhooks and API calls. Use the key option to produce an HMAC with SHA-256 and compare it with the signature a service sends.
  • Create cache keys and ETags. A hash of the content makes a stable key that changes when the content does. Check the headers a server sends with the HTTP header checker.
  • IndexNow and verification files. Some services ask for a random key or a file whose name or content is derived from one. For random values, use the password generator or the UUID generator.

Hashes and passwords

It is tempting to store a hash of a password and call it secure. A plain MD5 or SHA-256 of a password is not safe: modern hardware can test billions of guesses per second, and tables of hashes for common passwords are published. Proper password storage uses an algorithm built to be slow and salted, such as bcrypt, scrypt or Argon2, and your CMS or framework normally does this for you. If you find plain MD5 password hashes in a database, treat it as a security problem. To make a strong password in the first place, use the password generator.

If you see hashed or encoded values in a URL or a header and wonder what they are, remember that a hash cannot be reversed, but Base64 can. Try the Base64 encoder and decoder first. For site security reviews and technical checks that go beyond tools, my SEO audit covers the technical side.

Limits

The generator hashes text, not files. Paste the content or use a command-line tool for binary files. Text is encoded as UTF-8 before hashing, and the same text encoded another way, for example UTF-16, gives a different hash. Line endings matter: a Windows line break is two characters and a Unix one is one, so the same text can give different hashes. SHA-1, SHA-256, SHA-384, SHA-512 and HMAC use the Web Crypto features of your browser, which need a secure (HTTPS) page, while MD5 is calculated by code in the tool. HMAC with MD5 is not offered. The per-line mode processes up to 1,000 lines. Comparison ignores case and spaces in the hash you paste. Everything is processed in your browser, and nothing is sent to a server.

Questions about the Hash Generator

What is a hash?

A fixed-length fingerprint of data. The same input always gives the same hash, a small change gives a very different one, and the original cannot be recovered from it.

Is MD5 still safe to use?

Not for security. It is still fine for checking that data was not corrupted by accident, but because two inputs can be made to share an MD5, use SHA-256 or stronger where someone could forge data.

Can I decrypt a hash?

No. A hash is not encrypted data. Short or common inputs can be found by guessing and comparing, but the hash itself cannot be reversed.

What is an HMAC?

A hash that includes a secret key. Only someone with the key can produce or verify it, so it is used to sign webhooks and API requests.

Why does my hash not match?

Usually an extra space, a different line ending, different capitalisation of the input or a different algorithm. Check each of these and compare again.

Is my text uploaded?

No. Hashing runs in your browser, so text and keys stay on your device.

If you want help with security and technical SEO, see my SEO services or ask for a free audit. You can also browse the other free technical SEO tools.

Got your results? Let’s turn them into a plan

Tools show the issues. I will tell you which ones matter most and how to fix them.

Your details are only used to reply to your request. No spam.

Grow my trafficCall