Lihat halaman ini dalam Bahasa IndonesiaVer esta página en españolVer esta página em portuguêsDiese Seite auf Deutsch ansehen

Hash Generator: SHA-256, MD5 & HMAC

Get every common hash of a text or a file at once, compare it with the checksum published on a download page, or compute an HMAC with a secret key, for example to check a webhook signature. Files are read by your browser and never uploaded.

Runs 100% in your browser: keys and data are never uploaded
Loading the tool…

How to use this tool

  1. Choose Text and type, or choose File and pick or drop a file.
  2. All five hashes appear at once, in hex or Base64.
  3. For an HMAC, tick "HMAC with a secret key" and enter the key.
  4. To verify a download, paste the expected checksum: the matching algorithm is highlighted.

What this tool can do

Five algorithms at once

MD5, SHA-1, SHA-256, SHA-384 and SHA-512, in lowercase or uppercase hex, or in Base64.

Files too

Hash an installer, archive or ISO to compare it with the checksum on the download page. The file is read into your browser memory and not uploaded; files over about 1 GB may not fit.

HMAC

HMAC-SHA1, HMAC-SHA256, HMAC-SHA384 and HMAC-SHA512 with a key you type, as used for webhook signatures and API request signing.

Checksum comparison

Paste a published checksum in hex or Base64, with or without a "sha256:" prefix, and see right away whether and which hash matches.

Tips and common problems

My hash differs from the command line

echo adds a line break, so echo "abc" | sha256sum hashes "abc\n". Use echo -n, or add the line break in the text box, to get the same result.

The webhook HMAC does not match

Hash the raw request body exactly as received, before any JSON parsing or reformatting, and check whether the provider sends hex or Base64.

Should I hash passwords with SHA-256?

No. Store passwords with a slow password hash such as Argon2id, scrypt or bcrypt. Plain SHA-256 and MD5 are far too fast for that.

Frequently asked questions

Is my file uploaded to calculate the hash?

No. Your browser reads the file and calculates the hash on your device.

Is MD5 still safe?

Not for security: collisions can be produced on purpose. It is fine for spotting accidental corruption, and that is the only use it is offered for here. Prefer SHA-256.

Why is there no HMAC-MD5?

The browser Web Crypto API does not provide it, and new systems should use HMAC-SHA256 anyway.

How do I check a download with SHA-256?

Choose File, pick the downloaded file and paste the SHA-256 from the publisher's page into the comparison box. A match means the file arrived intact.