Use this free hash generator to create MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files in one click. Add a secret key to create HMAC signatures, or paste an expected checksum to confirm that a download has not been changed. You can copy each hash, copy them all, or download the results as a .txt file.

A hash is a fingerprint for data. Change a single character and the whole hash changes.

How to use the hash generator

  • Add your input: type or paste text, or switch to File and pick a file from your device.
  • Choose a format: lowercase hex, uppercase hex, or Base64.
  • Add a key or checksum (optional): enter a secret key for HMAC, or paste a hash to compare against.
  • Click Generate: all five hashes appear at once. Copy one, copy all, or download them.

Supported algorithms

AlgorithmOutput lengthUse today
MD5128 bits · 32 hex charactersOld checksums only, not secure
SHA-1160 bits · 40 hex charactersOld systems only, not secure
SHA-256256 bits · 64 hex charactersThe safe default for most uses
SHA-384384 bits · 96 hex charactersHigher security margin, TLS
SHA-512512 bits · 128 hex charactersStrong and fast on 64-bit systems

Common uses for hashes

  • Checksums: confirm that a downloaded file matches the hash the publisher lists.
  • Webhook and API signatures: HMAC-SHA256 proves a request came from the expected sender.
  • Deduplication: compare file hashes to find duplicates without comparing every byte.
  • Cache keys: turn long inputs into short, fixed-length keys.
  • Integrity checks: detect when stored data has been changed or corrupted.
Do not store passwords as plain MD5 or SHA hashes. Use a slow password hash such as Argon2, bcrypt, or scrypt.

Worked examples

Hash a short text

Type hello world and click Generate. The SHA-256 result is b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9. Add a capital letter or a trailing space and the hash changes completely.

Verify a download

Switch to File, choose the file you downloaded, and paste the publisher's SHA-256 checksum into Compare. The matching row is highlighted, and the result shows whether the hashes match.

Check a webhook signature

Paste the raw request body as text, enter your webhook secret as the HMAC key, and compare the HMAC-SHA256 result with the signature header your provider sent.

Frequently asked questions

Is this hash generator free to use?

Yes. You can hash text and files, create HMAC signatures, and compare hashes without creating an account.

Is my text or file uploaded?

No. Hashing happens entirely in your browser. Your text, files, and HMAC keys are never sent to a server or saved.

Which hash algorithm should I use?

Use SHA-256 or SHA-512 for anything security related. MD5 and SHA-1 are broken for security use and should only be used to match older checksums.

Can a hash be reversed?

No. Hash functions are one-way. Short or common inputs can still be guessed by trying many values, so a plain hash is not a safe way to store passwords.

What is HMAC?

HMAC combines a hash function with a secret key. It proves a message came from someone who knows the key and was not changed, and is common for API and webhook signatures.

Why does my hash not match another tool?

Hashes change with any difference in the input, including spaces, line breaks, letter case, and text encoding. This tool hashes text as UTF-8 with line breaks as LF. For exact results, hash the file itself instead of pasted text.

Share this article