md4 hash generator online
Not for passwordsCreate 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.
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.
hello world- Hex
aa010fbc1d14c795d86ef98c95479d17- HEX (upper case)
AA010FBC1D14C795D86EF98C95479D17- Base64
qgEPvB0Ux5XYbvmMlUedFw==
Files are read in your browser and never uploaded.
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.
- Windows NTLM password hashes
- ed2k file links
- Old rsync versions
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.
……Calculating…
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.
Free course: why hashes can’t be decrypted, and how to store passwords →
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
…
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.
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.
MD4 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | md4 |
|---|---|
| empty string | 31d6cfe0d16ae931b73c59d7e0c089c0 |
abc | a448017aaf21d8525fc10ae87aa6729d |
hello world | aa010fbc1d14c795d86ef98c95479d17 |
The quick brown fox jumps over the lazy dog | 1bee69a46ba811185c194762abaeae90 |
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.
| Password | md4 |
|---|---|
123456 | 585028aa0f794af812ee3be8804eb14a |
password | 8a9d093f14f8701df17732b2bb182c74 |
123456789 | 2ae523785d0caf4d2fb557c12016185c |
12345678 | 012d73e0fab8d26e0f4d65e36077511e |
12345 | 23580e2a459f7ea40f9efa148b63cafb |
Why your MD4 doesn't match
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.
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.
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.
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.
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:".
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.
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.
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.
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.