Hash Generator

Generate MD5, SHA-1, SHA-2 and SHA-3 hashes of any text in hex or Base64, check a hash you were given, or sign the text with an HMAC key.

Show as
MD5—
SHA-1—
SHA-224—
SHA-256—
SHA-384—
SHA-512—
SHA3-256—
SHA3-512—

HMAC (signed hash)

HMAC hash

Enter a secret key to sign the text above, for example to check a webhook or API signature.

Computed in your browser: SHA-1, SHA-256, SHA-384, SHA-512 and HMAC with the Web Crypto API; MD5, SHA-224 and SHA-3 with the audited @noble/hashes library. Nothing is sent anywhere. MD5 and SHA-1 are broken for security; for passwords, use bcrypt or Argon2 on your server.

What a hash is

A hash turns any text into a fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one. Example: SHA-256 of abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, and its MD5 is 900150983cd24fb0d6963f7d28e17f72.

Which algorithm?

  • SHA-256: the standard choice for checksums and signatures. SHA-224, SHA-384 and SHA-512 are shorter and longer versions from the same SHA-2 family (FIPS 180-4).
  • SHA3-256 and SHA3-512: a newer, different design (FIPS 202), for when a standard or system asks for SHA-3.
  • MD5 and SHA-1: legacy only. Both are broken for security, but you'll still see them as download checksums and in older systems.
  • HMAC: when the hash must prove it came from someone who knows a secret key, for example a webhook signature.

Checking a hash

Paste a hash into Check a hash and the tool tells you which algorithm it matches for the text above, if any. Hex in upper or lower case and Base64 both work, with or without a prefix such as sha256:. Use Show as to switch every result between lower-case hex, upper-case hex and Base64. To hash a file instead of text, use the file checksum checker.

HMAC example

With the key Jefe and the text what do ya want for nothing?, HMAC-SHA-256 gives 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843. That's the published test value from RFC 4231, so you can use it to check that your own code signs messages the same way. Text and keys are read as UTF-8, and the result is shown in hex and Base64.

Frequently asked questions

Can a hash be reversed?

No. Hashes are one-way, but short or common inputs can be guessed by trying many options, which is why passwords need slow, salted hashing such as bcrypt or Argon2.

Why doesn't my hash match the one from the command line?

Usually a hidden line break. The command echo abc | sha256sum hashes "abc" plus a newline, so it gives edeaaff3…18cb instead of ba7816bf…15ad. Use printf '%s' abc | sha256sum, or echo -n, instead. Extra spaces and Windows line endings change the hash too. This tool hashes the text exactly as typed, as UTF-8, with line breaks as a single newline character.

Is MD5 still safe to use?

Not for security. Researchers can create two different inputs with the same MD5 hash, so it mustn't be used for signatures or passwords. It's still fine for spotting accidental changes, such as checking a download against a published MD5 checksum, and for older systems that expect it.

What is an HMAC?

A hash that also depends on a secret key (RFC 2104). Only someone with the key can produce the same value, so services use it to sign webhooks and API requests. GitHub, for example, sends an HMAC-SHA-256 hex digest in its X-Hub-Signature-256 header, starting with "sha256=", and a legacy HMAC-SHA-1 one in X-Hub-Signature. To check a signature, paste the exact message body, enter the shared secret and compare.

Is SHA3-256 the same as Keccak-256?

No. SHA-3 (FIPS 202) pads the input differently from the original Keccak that Ethereum uses, so the results differ. For empty input, SHA3-256 is a7ffc6f8…434a, while Keccak-256 is c5d24601…a470. This tool gives the standard SHA-3.

Is my text or key sent anywhere?

No. SHA-1, SHA-256, SHA-384, SHA-512 and HMAC use your browser's built-in Web Crypto API, and MD5, SHA-224 and SHA-3 run in the page with the open-source @noble/hashes library. Nothing is uploaded, so it's safe to use with real secrets, though it's good practice to rotate any key you paste into a website.

More text and developer tools

See all text and developer tools →

Can't find the tool you need? Tell us.