md4 hash generator online

Not for passwords

Create the md4 hash of any text: 32 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

Compare, hash a file, copy any format

Type text in the tool above or choose a file. Case, spaces and prefixes like md4: don't matter.

Formats for hello world
Hex
aa010fbc1d14c795d86ef98c95479d17
HEX (upper case)
AA010FBC1D14C795D86EF98C95479D17
Base64
qgEPvB0Ux5XYbvmMlUedFw==

Files are read in your browser and never uploaded.

In short

What is MD4?

MD4 is the 128-bit predecessor of MD5 (RFC 1320, 1990). It is completely broken: collisions can be found by hand. You still meet it in Windows NTLM password hashes (MD4 of the UTF-16LE password) and eDonkey/ed2k file links.

BrokenCollisions can be produced on purpose. Don't use it where an attacker could profit.
Where you meet it
  • Windows NTLM password hashes
  • ed2k file links
  • Old rsync versions
Try it

Change one letter, see what happens

A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.

Hash A…
Hash B…

Calculating…

"Decrypt" MD4?

Is it a common password?

No one can decrypt a hash. What "decrypt" sites do is compare it with hashes of known words. This check does the same in your browser with about 11,000 common passwords, PINs and years, so you can see how quickly weak passwords fall.

Nothing is sent anywhere. The list is part of this page.

Windows

NTLM hash: MD4 of UTF-16

Windows stores passwords as NTLM hashes: the password in UTF-16 little-endian, hashed with MD4. Compare it with the plain MD4 of the UTF-8 bytes.

NTLM (MD4 of UTF-16LE)
8846f7eaee8fb117ad06bdd830b7586c
MD4 of UTF-8
…
Use it in code

The same result in your code

Every snippet prints aa010fbc1d14c795d86ef98c95479d17 for hello world, the same as the tool. They are run against PHP's hash() before each release.

PHP
echo hash('md4', 'hello world');

Python, JavaScript, Java and Go have no built-in function for it. If you use a library, compare its output with the test values above.

Test values

MD4 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputmd4
empty string31d6cfe0d16ae931b73c59d7e0c089c0
abca448017aaf21d8525fc10ae87aa6729d
hello worldaa010fbc1d14c795d86ef98c95479d17
The quick brown fox jumps over the lazy dog1bee69a46ba811185c194762abaeae90

MD4 hashes of the 5 most common passwords

These five lead the public lists of leaked passwords year after year, so their hashes are in every cracking list too. If you see one of these values in a database, the password is known. Paste one into the password check above to see it found in a split second.

Passwordmd4
123456585028aa0f794af812ee3be8804eb14a
password8a9d093f14f8701df17732b2bb182c74
1234567892ae523785d0caf4d2fb557c12016185c
12345678012d73e0fab8d26e0f4d65e36077511e
1234523580e2a459f7ea40f9efa148b63cafb
Common mistakes

Why your MD4 doesn't match

NTLM is MD4 of UTF-16

An NTLM hash is MD4 of the password in UTF-16 little-endian, not of its UTF-8 bytes. Use the NTLM panel below for that.

Not for passwords

A fast hash lets attackers try billions of guesses per second. Store passwords with Argon2id, bcrypt or scrypt, which are slow on purpose and use a salt.

A line break sneaks in

echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.

Same text, different bytes

The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.

Upper or lower case

Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".

This tool trims and uses CRLF

Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.

Compare

The MD and SHA-1 family side by side

The same text, every MD and SHA-1 algorithm. Shown for hello world; type in the tool above to use your text.

AlgorithmHashBits
md2d9cce882ee690a5c1ce70beff3a78c77128
md4aa010fbc1d14c795d86ef98c95479d17128
md55eb63bbbe01eeed093cb22bb8f5acdc3128
sha12aae6c35c94fcfb415dbe95f408b9ce91ee846ed160
Measured on your device

How fast is MD4?

Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.

FAQ

Questions about MD4

Can MD4 be decrypted?

No. MD4 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" MD4 look the hash up in large tables of known inputs, which only works for short or common strings.

How long is a MD4 hash?

A MD4 hash is always 128 bits, written as 32 hexadecimal characters (16 bytes), no matter how long the input is.

Is MD4 secure?

No. Collisions for MD4 can be created on purpose, so it must not be used for signatures, certificates or anything an attacker could exploit. It is still fine to detect accidental corruption.

Should I hash passwords with MD4?

No. MD4 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.

How do I compute an NTLM hash?

Encode the password as UTF-16 little-endian and hash it with MD4. The NTLM panel below does that for you.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.