Hash Generator: Create MD5, SHA-1, SHA-256 and SHA-512 Hashes Online

Get every popular checksum for a piece of text or a file at the same time, from MD5 through the SHA-2 family. Confirm a download against its published value, or sign data with a key using HMAC.

  • Five algorithms together
  • Text, files and HMAC
  • Fully private, no upload

How to use the Hash Generator tool

  1. Text or fileEnter some text, or flip to the File tab and drag in whatever you want to fingerprint.
  2. See every hashAll five digests are shown at once and recalculated with each keystroke.
  3. Compare a checksumPut the reference value in the comparison box and whichever algorithm agrees is highlighted.
  4. Copy the hashPress “Copy” beside any result; options switch the output to uppercase or Base64.

Hash generator features

  • Every common algorithmSide-by-side digests mean you never have to work out which algorithm a vendor published.
  • File checksum verificationProve that a downloaded installer or archived backup arrived intact, however large it is.
  • HMAC signingSupply a key to get keyed digests in the same form payment gateways and webhook senders use.
  • Instant match checkPaste a published checksum for a clear match or mismatch verdict.
  • PrivateAll computation is local; nothing you enter or drop is transmitted.

What is a cryptographic hash?

Think of a hash as a digital fingerprint. A hashing algorithm takes any input, whether a single word, a contract or a multi-gigabyte video, into a short fingerprint of fixed length. Feed it the same bytes and you always get the same output; change a single letter and the output looks totally unrelated. There’s also no route back from the digest to the input. Those properties make hashes the standard way to prove a file or message is unchanged.

Which hash algorithm should I use?

  • MD5 produces 128 bits (32 hex characters). It’s broken for security, but still handy for quick checksums, cache keys and older systems.
  • SHA-1 produces 160 bits (40 hex characters). Also broken for security, it remains in use for Git object IDs and backward compatibility.
  • SHA-256 produces 256 bits (64 hex characters). It’s secure and the modern default for file checks and signatures.
  • SHA-384 produces 384 bits (96 hex characters). Secure, and common in TLS and Subresource Integrity.
  • SHA-512 produces 512 bits (128 hex characters). Secure, suited to high-security work and often quick on 64-bit processors.

The two older algorithms remain good at spotting random corruption, yet it’s now practical to engineer a pair of different files with an identical digest. If an attacker could have an interest in altering the data, rely on the SHA-2 family instead.

Checking a download step by step

  1. Copy the digest the publisher lists next to the download link; it’s usually marked as a checksum or SHA-256.
  2. Open the File tab here and add the file you received.
  3. Paste the publisher’s value into Compare with a hash. If it turns green, your copy is byte-for-byte the same as theirs.

Don’t use plain hashes to store passwords

Fast hashes like SHA-256 are unsuitable for password storage because attackers can test billions of guesses every second. Login systems need deliberately slow algorithms with a unique salt per user, for example Argon2, bcrypt or scrypt. For creating a hard-to-guess password in the first place, there’s our Password Generator.

What is HMAC?

HMAC mixes a hash function with a secret key, so only someone holding the key can generate the right value. That’s why payment processors and webhook services attach an HMAC-SHA256 value to each request: the receiver recomputes it with the shared key to be sure the sender is genuine and the body untouched. Enter your key in the HMAC box to produce one. For signed login tokens, open the JWT Decoder.

Frequently asked questions

Is it possible to turn a hash back into the original?
No, hashing works in one direction only. Attackers can still guess very short or popular inputs by trying candidates, which is why password storage uses slow, purpose-built algorithms.
Should I still use MD5?
Only for catching unintentional damage. Because matching digests can be manufactured, pick SHA-256 or SHA-512 wherever security is involved.
Another site gives me a different result. Why?
Invisible details matter: a line break at the end, a stray space or a different character encoding all change the digest. Here, text is encoded as UTF-8 precisely as you typed it.
Is there a file size limit?
Files up to 512 MB are supported, processed locally without any upload.
What makes HMAC different from an ordinary hash?
An ordinary digest can be produced by anybody, whereas an HMAC requires the secret key, so a correct value shows the sender possesses it.