Hash generator (MD5, SHA-256, HMAC)

Get MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, verify checksums, and compute HMAC signatures. Everything runs in your browser; nothing is uploaded.

MD5—
SHA-1—
SHA-256—
SHA-384—
SHA-512—

How to use it

Type text or choose a file and all hashes appear at once. To verify a download, paste the checksum published by the vendor into Compare; a green message means the file is intact.

Which hash should I use?

  • SHA-256 for checksums, signatures and anything security-related.
  • MD5 and SHA-1 only to match old systems or detect accidental changes; both are broken for security use.
  • HMAC (add a secret key) to sign API requests and verify webhooks, such as Razorpay or GitHub webhook signatures.
  • Never store passwords with a plain hash. Use bcrypt, scrypt or Argon2.

Questions

Is my file uploaded?

No. The file is read and hashed inside your browser; nothing leaves your device.

Can a hash be reversed?

No. A hash is one-way. Short or common inputs can be guessed by trying many candidates, which is why passwords need a slow algorithm such as bcrypt.

Why does my hash differ from another tool’s?

Usually a trailing newline or different encoding. This tool hashes the exact UTF-8 bytes you typed; echo in a terminal adds a newline unless you use echo -n.

How do I verify a Razorpay or GitHub webhook?

Compute HMAC-SHA256 of the raw request body with your webhook secret as the key, then compare it with the signature header.

More tools