ToolsWhisper
Developer tools

Hash Generator

Generate MD5, SHA-256, SHA-512 and CRC32 hashes, or HMACs.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
Source
Output
Text to hash
MD5

—

SHA-256

—

MD5, SHA-1 and CRC-32 are fine for checksums and spotting accidental changes, but they are not safe for passwords or digital signatures. Use SHA-256 or stronger for anything security-related, and a slow password hash (Argon2, bcrypt) for passwords.

Verify against a published checksum

About this tool

Hash text or a file with MD5, SHA-1, SHA-256, SHA-384, SHA-512 or CRC-32, or switch on HMAC to sign with a secret key. Paste a published checksum and the result is compared for you, instead of leaving you to eyeball sixty-four hex characters.

How to use it

  1. Enter text, or drop in a file.
  2. Pick the algorithms and the output format.
  3. Optionally turn on HMAC and enter a key, or paste an expected checksum to verify a match.

MD5, SHA-1 and when they are still fine

MD5 is not part of the Web Crypto API, so this tool includes its own implementation, tested against the RFC 1321 reference vectors and against Node's built-in MD5 at every input length around the block boundaries.

When MD5 is fine: verifying that a download matches its published checksum, spotting accidental changes to a file, finding duplicates, generating cache keys, and talking to older systems that still expect it.

When it is not: passwords, digital signatures, certificates, or anything an attacker might choose the input for. MD5 has been cryptographically broken since 2004. Collisions can be generated in seconds on a laptop, and researchers have demonstrated colliding executables, colliding PDFs and a forged certificate authority.

SHA-1 is also broken; the SHAttered attack produced two colliding PDFs in 2017. It is included because verifying legacy checksums and Git object ids still requires it.

CRC-32 is a checksum, not a cryptographic hash. It catches accidental corruption (it is what zip, gzip and PNG use) and offers no protection against deliberate tampering.

For integrity you need to trust, use SHA-256. It is fast, universally supported and has no known practical attacks.

For passwords, use none of these. Cryptographic hashes are designed to be fast, which is exactly what an attacker wants when testing billions of guesses. Use Argon2id, scrypt or bcrypt, which are deliberately slow and memory-hungry.

Verifying a download

A published checksum lets you confirm a file arrived intact and unmodified. The process is simple, and its limitation is important.

Drop the file in, pick SHA-256, paste the published value, and the comparison is done for you — which beats eyeballing sixty-four hex characters and missing a transposed pair.

What a matching hash proves: the file is byte-for-byte what the publisher hashed. No corruption in transit, no truncated download.

What it does not prove: that the file is safe. If an attacker controls the download page, they control the checksum printed on it too, and can serve a malicious file with a matching hash. Checksums protect against accidents and mirrors, not against a compromised source.

Signatures do prove authenticity. A GPG signature is verified against a key you already trust, so an attacker would need the private key rather than just write access to a web page. Where a project publishes signatures, prefer them.

Files here are hashed locally by your browser, so size is limited only by memory — nothing is uploaded.

HMAC: hashing with a secret key

An HMAC combines a hash with a secret key, so only someone who knows the key can produce or check the result. It is how many APIs and webhooks sign requests: the sender computes an HMAC of the payload with a shared secret, and the receiver recomputes it and compares.

Tick HMAC with a secret key, enter the key, and each result becomes an HMAC using that algorithm. That is useful for debugging a signature that will not verify. Paste the exact payload, use the same key, and compare. The usual causes of a mismatch are a payload that was re-serialised before hashing, a trailing newline, or a key that was Base64-decoded on one side and used as plain text on the other.

The key is used as UTF-8 text and never leaves your browser. CRC-32 has no HMAC form.

Frequently asked questions

Is MD5 safe to use?

Not for security. MD5 is broken, so do not use it for passwords, signatures or anything an attacker could target. It is still fine for checksums, finding duplicates and compatibility with older systems.

What is HMAC?

HMAC is a hash combined with a secret key. It shows that a message came from someone who knows the key and was not altered, which is how many APIs and webhooks sign their requests.

Can I hash large files?

Yes. Files are read and hashed locally, so the practical ceiling is your available memory rather than any upload limit.

Are my files uploaded to be hashed?

No. Files are read with the FileReader API and hashed by the browser's own Web Crypto implementation, so even multi-gigabyte files never leave your disk.

Articles using this tool

Related tools