Developer Tools

Hash Generator

Generate MD5, SHA1, SHA256 and other hashes.

How to Use Hash Generator

1

Type or paste the text to hash into the input box, keeping in mind that newlines are included as typed.

2

Select the algorithm from the dropdown: MD5, SHA-1, SHA-224, SHA-256, SHA-384, or SHA-512.

3

Click the "Process" button to compute the digest and choose uppercase or lowercase hex output.

4

Copy the hash for an ETag, a cache-busting filename, or a checksum comparison.

Features

Six algorithms available: MD5, SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512
Optional uppercase hex output to match tools that expect capitalised digests
Displays the digest and its character count for a quick correctness check
Correctly handles empty strings, spaces, unicode, and multi-line UTF-8 text
Useful for ETags, cache keys, content addressing, and file integrity checks
Runs in the browser, so hashed values and secrets are not sent to our servers

Frequently Asked Questions

Use SHA-256 for anything new. It has no practical collision attack, is supported everywhere, and matches what Git, TLS certificate tooling, and most modern APIs expect. Reach for MD5 or SHA-1 only when you must interoperate with a system that already uses them.
Yes, the output is identical because they use the same standard algorithm. The dedicated pages are a convenience if that is the only hash you need, while this page lets you compare several algorithms on the same input without retyping it.
Not in any practical sense. Hash functions are one-way, so you cannot recover the input from the digest. Weak or short inputs can be cracked by brute force against a dictionary, which is why a leaked low-entropy password hash is still a real risk.
It is free with no account and no practical length limit, since hashing is fast regardless of size. The calculation happens in your browser, so nothing you hash is uploaded or stored.

About Hash Generator

A hash function turns any amount of input into a fixed-length digest that looks nothing like the original. The same input always produces the same output, and no practical way exists to work backwards from the digest to the text. That combination is what makes hashes useful for checksums, content-addressed filenames, cache keys, and signature verification.

This tool offers six algorithms in one place: MD5 for legacy compatibility, SHA-1 which is now considered broken for security purposes, and the SHA-2 family of SHA-224, SHA-256, SHA-384, and SHA-512. Each produces a digest of a predictable length, which the tool displays so you can confirm you copied every character.

Digest length is not a measure of security on its own, but it is a useful sanity check. If your expected SHA-256 is 40 characters, you have the wrong algorithm or a truncated value. Input is handled as UTF-8, including empty strings, whitespace-only values, emoji, and multi-line text, so the output matches what PHP hash(), Python hashlib, and the command-line sha256sum would produce for the same bytes.

When to Use This Tool

  • Computing an ETag or content fingerprint for HTTP caching
  • Verifying that a downloaded installer matches its published checksum
  • Generating a cache-busting filename from a build artefact
  • Checking an API webhook signature payload that uses a hex digest
  • Reproducing a hash a colleague generated on a different platform