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

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 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.