MD5 of an Empty String
The MD5 of an empty string is d41d8cd98f00b204e9800998ecf8427e. Confirm it and hash other empty-like inputs.
Part of the free MD5 Hash Generator. Runs in your browser — nothing is uploaded.
MD5 of an Empty String
Hashing nothing is a useful sanity check. If your code produces a different digest for an empty input, you are hashing null, undefined, or a leftover newline.
Worked example: Empty input
Input
(empty string)
MD5
d41d8cd98f00b204e9800998ecf8427e
Practical tip
d41d8cd98f00b204e9800998ecf8427e is one of the most googled hashes. If you see it in a log, something hashed an empty body.
How to use this MD5 Generator
- 1Use the live tool above — it runs entirely in your browser and never uploads your data.
- 2Paste the sample from the worked example, or use your own input.
- 3Copy the result, then adapt the same steps in your editor, script, or pipeline.
MD5 of an Empty String FAQs
What is the MD5 of a single space?
A space is not empty. Its MD5 is 7215ee9c7d9dc229d2921a40e899ec5f.
Is an empty file the same?
Yes. A zero-byte file hashes to the same digest as an empty string.
More MD5 Generator pages
- Convert Text to an MD5 HashConvert any text string to a 32-character MD5 hash. Instant, UTF-8 accurate, runs in your browser.
- MD5 Checksum of a FileCalculate the MD5 checksum of a local file without uploading it. Compare the digest with a published MD5.
- Verify an MD5 ChecksumCheck whether text or a file matches a published MD5 checksum. Paste the expected hash and compare.
- MD5 Hash of a StringGet the MD5 hash of any string instantly. Useful for checking fixtures, cache keys and legacy checksums.
- Uppercase MD5 HashGenerate an MD5 hash in uppercase hex (A–F). Some Windows tools and older APIs expect this format.
- MD5 vs SHA-256Compare MD5 and SHA-256 on the same input. Learn why SHA-256 replaced MD5 for checksums and signatures.
- MD5 File Hash CalculatorA browser md5sum: pick a file, get its MD5, compare with a published checksum. No upload.
- MD5 Is Not a Password HashSee what an MD5 of a password looks like, and why you must use Argon2, bcrypt or scrypt instead.
- MD5 Hash LengthAn MD5 hash is always 32 hexadecimal characters (128 bits), regardless of input size. Confirm it with the generator.