MD5 hash

Computes MD5 hash of a string: a 128-bit fingerprint in hex or Base64. Fast — fine for checksums, not for passwords or cryptography.

01Hasher02Examples03About04Related
01

Hasher

Format
Layout
Source text
MD5 hash · hex
Hash will appear here…
Input: 0 chars · Hash: 128 bit
02

Known values

fixed length: any input → 128 bit (32 hex chars)
Input
MD5
«»пустая строка / empty
d41d8cd98f00b204e9800998ecf8427e
a
0cc175b9c0f1b6a831c399e269772661
abc
900150983cd24fb0d6963f7d28e17f72
message digest
f96b697d7cb7938d525a2f31aaf161d0
The quick brown fox jumps over the lazy dog
9e107d9d372bb6826bd81d3542a419d6
Привет, мир!
c446a2994f35689482651b7c7ba8b56c
03

About MD5

MD5 (Message Digest 5) is a 1991 hashing algorithm that turns any data into a 128-bit fingerprint. Output length is fixed — 32 hex characters or 22 Base64 characters. The hash cannot be reversed back to the source text.

MD5 is broken for cryptography: practical collisions exist since 2004. For passwords use bcrypt, scrypt or Argon2. For file integrity checks (checksum) MD5 is still fine — no adversary, and it reliably catches random errors.

MD5 is broken for cryptography

since 2004
collision: hash(A) === hash(B), where A ≠ B
In 2004 practical MD5 collisions were demonstrated. Since 2008 — attacks on PKI certificates. Do not use for signatures, TLS, passwords, authentication.

Still fine for checksums

OK
verifying file integrity during download
For random errors (network glitch, bad disk) MD5 is fine: no adversary involved. Used in rsync, git before 2005, Linux distributions alongside stronger SHA-256.

For passwords — bcrypt / Argon2 only

critical
MD5(password) === MD5(password) → rainbow table
MD5 is fast: billions of hashes per second on a GPU. Rainbow tables + brute-force crack passwords in minutes. Store passwords with bcrypt, scrypt or Argon2 (slow, salted).

Replacements: SHA-256, BLAKE2

sha256sum · openssl dgst -sha256 · crypto.subtle.digest('SHA-256')
For new projects use SHA-256 (de-facto standard) or BLAKE2 (faster). Both give a longer hash (64 hex chars vs 32) and have no known practical attacks.
«» added to favorites