MD5 Hash Generator

Compute the 128-bit MD5 digest of any text

Ad placeholder (leaderboard)

What MD5 produces

MD5 takes any text or byte stream and produces a fixed 128-bit value, displayed as 32 hexadecimal characters. The same input always yields the same digest, and a tiny change in the input produces a completely different output. That makes MD5 convenient for checksums, deduplication, and cache keys.

How it works

MD5 processes the message in 512-bit blocks after padding it so its length is congruent to 448 modulo 512, then appending the original 64-bit length. Each block updates four 32-bit state words (A, B, C, D) through 64 operations grouped into four rounds, each using a nonlinear function, a per-step sine-derived constant, and a left-rotate. The final concatenation of the four words, output little-endian, is the digest. This tool implements that full algorithm in JavaScript, so the result matches any standard MD5 library.

Security note and example

The MD5 of an empty string is the recognizable constant d41d8cd98f00b204e9800998ecf8427e, a quick way to confirm the tool is correct. Important: MD5 is cryptographically broken. Practical collision attacks exist, so never use it for passwords, digital signatures, or anything an attacker could try to forge. For passwords use a slow, salted hash such as bcrypt or Argon2; for integrity against adversaries use SHA-256 or stronger. MD5 is only appropriate for non-adversarial checksums.

Ad placeholder (rectangle)