Skip to content
Kural

Hash generator: MD5, SHA-1, SHA-256, SHA-512

MD5 and SHA checksums of text or files, with HMAC and hash comparison.

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

Paste a checksum from a download page, in hex or Base64.

HMAC-SHA256 with a key

Signed over the same text or file as above.

HMAC-SHA256
—

Enter text or drop a file and all five digests appear at once: MD5, SHA-1, SHA-256, SHA-384 and SHA-512. Text is hashed as UTF-8, so the result matches md5sum, sha256sum and most programming languages for the same string.

To check a download, paste the checksum from the vendor page into the compare field. The matching row turns green, so you do not need to know in advance which algorithm they used.

How to use

  1. Choose Text and type, or choose File and drop the file onto the box.
  2. Switch the output between lowercase hex, uppercase HEX and Base64 if needed.
  3. Paste an expected hash into the compare field to see which algorithm matches.
  4. For a signed digest, open the HMAC-SHA256 panel and enter the key.

Examples

MD5 of "abc"
abc  →  900150983cd24fb0d6963f7d28e17f72
SHA-256 of "abc"
abc  →  ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Frequently asked questions

Why does my hash differ from another tool?

Usually the input is not identical: a trailing newline (echo adds one, use echo -n), Windows line endings, or a different text encoding. This tool hashes exactly the characters in the field, encoded as UTF-8.

Is MD5 or SHA-1 safe to use?

For checking that a file downloaded without corruption, yes. For signatures, certificates or anything where an attacker could craft a collision, no: both have practical collision attacks. Use SHA-256 or stronger.

Can I hash passwords with this?

You can compute the digest, but plain SHA-256 or MD5 is the wrong way to store passwords. Use a slow password hash such as bcrypt, scrypt or Argon2.

What is HMAC-SHA256 for?

It is a hash keyed with a secret. Webhook signatures (GitHub, Stripe and others) and many API request signatures use it. Enter the shared secret as the key and the raw request body as the text.