MD5 Hash Generator

Compute the MD5 digest of any text or file, as lowercase hex, uppercase hex or Base64 — no upload needed.

Loading tool…

About the MD5 Hash

MD5 (RFC 1321) produces a 128-bit digest, written as 32 hex characters. The same input always gives the same hash — md5("") is d41d8cd98f00b204e9800998ecf8427e — and a one-character change gives a completely different one. Text is hashed as UTF-8, so the result matches md5sum, PHP's md5() and Node's crypto.createHash('md5') for the same bytes (watch out for a trailing newline added by echo).

The Web Crypto API deliberately omits MD5, so this page uses a small JavaScript implementation that is checked against the RFC 1321 test vectors. Files are read locally with the File API and never uploaded, which makes it convenient for comparing a download against a published MD5 checksum.

MD5 is cryptographically broken: practical collision attacks have existed since 2004 and were used to forge a CA certificate in 2008. It is still fine for non-adversarial uses such as cache keys, deduplication, ETags and detecting accidental corruption, but not for signatures, certificates or password storage.

How to use it

  1. Type or paste text, or click “Hash a file”.
  2. Read the MD5 digest in the large box.
  3. Switch between hex, HEX and Base64 if needed.
  4. Copy the value.

Frequently asked questions

Can an MD5 hash be decrypted?
No, hashes are one-way. “MD5 decrypters” look up precomputed hashes of common strings, which is why unsalted MD5 must never be used for passwords.
Why does my terminal give a different MD5?
echo adds a newline. Use echo -n "text" | md5sum (or printf) to hash exactly the same bytes.
Is MD5 safe for verifying downloads?
It detects accidental corruption. It does not protect against an attacker who can craft a colliding file; prefer SHA-256 checksums when they are published.
What is the Base64 form used for?
HTTP Content-MD5 headers and some cloud storage APIs (for example S3's Content-MD5) expect the 16 raw bytes in Base64 rather than hex.

Related tools