What Is the MD5 Hash of an Empty String?

The MD5 hash of an empty string ("") is d41d8cd98f00b204e9800998ecf8427e. This is a well-known constant in cryptography. If you see this hash in logs or databases, it almost always means the input was empty or missing.

Verify It Yourself

Node.js

require('crypto').createHash('md5').update('').digest('hex');
// "d41d8cd98f00b204e9800998ecf8427e"

Python

import hashlib
hashlib.md5(b'').hexdigest()
# 'd41d8cd98f00b204e9800998ecf8427e'

Bash

echo -n '' | md5sum
# d41d8cd98f00b204e9800998ecf8427e  -

Is MD5 Still Safe?

MD5 is cryptographically broken. Collisions can be generated in seconds on commodity hardware. Do not use MD5 for passwords, digital signatures, or any security-critical application. Use SHA-256 or SHA-3 instead. MD5 is still acceptable for non-security uses like file checksums or cache keys.

Try It Yourself

Use our MD5 Hash Generator to hash any string instantly.

Frequently Asked Questions

Is MD5 still safe to use?

MD5 is cryptographically broken. Do not use it for passwords or digital signatures. It is still acceptable for non-security checksums like file integrity verification or cache keys.

Why would you hash an empty string?

The empty-string hash is commonly used as a sentinel value, a unit test constant, or to verify your hashing implementation is correct. Seeing d41d8cd98f00b204e9800998ecf8427e in logs often indicates missing or empty data.

Built by Michael Lip. 100% client-side — no data leaves your browser.