FormatterHQ

MD4 Hash Generator

Compute MD4 digests of text or files for legacy protocols and testing. MD4 is completely broken as a security function — use it only for compatibility.

Loading tool…
Ready.

How to use the MD4 Hash Generator

  1. Type or paste text into the input box, or switch the source to File and choose a file — it is hashed locally, never uploaded.
  2. Read the main hash at the top — the table below shows the same input under every other common algorithm. Tick Uppercase hex if you need capitals.
  3. To verify a value, paste it into Compare with an expected hash — the tool reports a match, or which algorithm it matches instead. Copy any row with its Copy button.

MD4 hash generator

MD4 (RFC 1320, 1990) was Ron Rivest’s fast successor to MD2 and the first of the 32-bit “MD” designs. This MD4 hash generator computes its 128-bit digest for any text or file. MD4 matters mostly for historical and compatibility reasons: its structure inspired MD5, SHA-1 and RIPEMD, and it still appears inside a few older protocols.

Example

Input:

The quick brown fox jumps over the lazy dog

MD4:

1bee69a46ba811185c194762abaeae90

The MD4 digest of an empty string is 31d6cfe0d16ae931b73c59d7e0c089c0.

Algorithm at a glance

PropertyValue
Digest size128 bits (32 hex characters)
Block size512 bits (64 bytes)
Rounds3 rounds of 16 operations on 32-bit words
DesignedRonald Rivest, 1990 (RFC 1320)
StatusCompletely broken; RFC 6150 moved it to Historic status in 2011

Why MD4 is broken

Collisions in MD4 were found in the mid-1990s, and modern techniques generate them in a fraction of a second on an ordinary computer. Practical second-preimage attacks for some messages have been published as well. MD4 therefore provides no meaningful integrity protection against an attacker and must never be used for signatures, certificates or passwords.

Where MD4 still shows up

  • NTLM. The Windows NT password hash is MD4 applied to the UTF-16LE encoding of the password. The NTLM Hash Generator does that encoding for you.
  • eDonkey / eMule ed2k links, which identify files by MD4 digests of 9,500 KiB chunks.
  • Older rsync versions, which used MD4 for block checksums before switching to faster and stronger options.
  • Test suites for crypto libraries and forensic software.

From MD4 to MD5

MD5 was Rivest’s response to early concerns about MD4: it adds a fourth round, gives every step its own additive constant and changes the order in which message words are used. Those changes held off attacks for about a decade, but MD5 eventually fell to the same family of differential techniques. The table under the main result shows MD4’s descendants — MD5, SHA-1 and SHA-256 — for the same input, which makes the comparison easy.

Note on text encoding

This tool hashes text as UTF-8 bytes. Plain MD4 of UTF-8 text is not the same as an NTLM hash, which uses UTF-16LE. If you are comparing with a Windows or Samba value, use the NTLM tool instead.

For anything security-related, use SHA-256, SHA-3 or BLAKE2. Hashing runs locally in your browser.

Frequently asked questions

Is MD4 still secure?
No. MD4 collisions can be generated almost instantly, and it has been classified as Historic by RFC 6150. Use it only where a legacy protocol requires it.
Is an NTLM hash the same as MD4?
NTLM uses MD4, but over the UTF-16LE bytes of the password. Plain MD4 of UTF-8 text gives a different result, so use the NTLM Hash Generator for Windows hashes.
What is the MD4 of an empty string?
31d6cfe0d16ae931b73c59d7e0c089c0. You may recognise it: it is also the NTLM hash of an empty password.
Can MD4 hashes be reversed?
Hashes cannot be decrypted. However, MD4 is extremely fast, so short or common inputs can be guessed quickly by trying candidates, which is one reason it is unsuitable for passwords.

Last updated September 26, 2026

Related tools

MD5 Hash Generator Generate the MD5 hash of any text or file online. Instant 128-bit digest in hex, computed in your browser. NTLM Hash Generator Generate the Windows NTLM (NT) password hash — MD4 of the UTF-16LE password — online. Password Strength Checker Estimate password entropy and crack time for online and offline attacks, and spot common patterns — checked privately in your browser. PBKDF2 Hash Generator Generate PBKDF2-HMAC-SHA256/512 derived keys and Django-style password hashes with your own salt and iteration count, using WebCrypto. RIPEMD-160 Hash Generator Generate the RIPEMD-160 hash of any text or file online. Instant 160-bit digest in hex, computed in your browser. RSA Key Pair Generator Generate RSA 2048, 3072 or 4096-bit public/private key pairs in PEM (PKCS#8, PKCS#1) or JWK format with WebCrypto, entirely offline. Scrypt Hash Generator Derive scrypt password hashes and keys with custom N, r, p and salt; output as hex, Base64 and common encoded formats. Self-Signed Certificate Generator Create a self-signed SSL/TLS certificate and RSA key for localhost, dev servers or internal tools. Generated locally with WebCrypto. SHA-1 Hash Generator Generate the SHA-1 hash of any text or file online. Instant 160-bit digest in hex, computed in your browser. SHA-2 Hash Generator Generate SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 or SHA-512/256 hashes from text or files. SHA-224 Hash Generator Generate the SHA-224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA-256 Hash Generator Generate the SHA-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser.