EN
My tools

NTLM Hash Generator (NT, LM and MD4)

Compute the Windows NT hash (MD4 of the UTF-16LE password), the legacy LM hash, or the MD4 hash of any text or hex, in your browser.

Not added to share links or history.
My tools →
Advertisement

Windows stores account passwords as NT hashes: the MD4 digest of the password in UTF-16 little-endian. The same value is used by NTLM authentication, Samba, FreeRADIUS (NT-Password) and Active Directory tools. Older systems also kept the LM hash, a weak DES-based scheme. This generator computes both, and the plain MD4 of any text or hex, entirely in your browser — useful for configuring RADIUS or Samba and for checking test fixtures.

How to use this tool

  1. Choose password → NT/LM, or MD4 of arbitrary input.
  2. Type the password (it is never put in links or history).
  3. Untick LM if you only need the NT hash.
  4. Copy the hash in lower or upper case.

Formula

NT = MD4( UTF-16LE(password) ) LM = DES_K1("KGS!@#$%") ‖ DES_K2("KGS!@#$%")

For LM the password is upper-cased, padded or cut to 14 bytes and split into two 7-byte halves; each half is spread over 8 bytes (7 bits each) to form a DES key that encrypts the constant KGS!@#$%. MD4 (RFC 1320) is a 128-bit hash with three rounds over 512-bit blocks; it is cryptographically broken, so NT hashes are only as strong as the password.

Example

The password password has the NT hash 8846f7eaee8fb117ad06bdd830b7586c and the LM hash e52cac67419a9a224a3b108f3fa6cb6d. An empty password gives the well-known values 31d6cfe0d16ae931b73c59d7e0c089c0 (NT) and aad3b435b51404eeaad3b435b51404ee (LM).

Frequently asked questions

Is the NT hash salted?

No. The same password always gives the same NT hash on every Windows machine, which is why NT hashes are vulnerable to precomputed tables and why long passphrases matter.

What is the difference between NTLM and NT hashes?

The NT hash is the stored password hash. NTLM is the challenge–response protocol that uses it as a key; NTLMv1 and v2 responses differ for every login and are not computed here.

Why does a long password have an "empty" LM hash?

LM cannot represent more than 14 characters, so Windows stores the LM hash of an empty password (aad3b435…) instead. The same happens when LM storage is disabled, the default since Vista.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). NTLM Hash Generator (NT, LM and MD4). https://kakao.mobile/tools/ntlm-hash-generator/

MLA

“NTLM Hash Generator (NT, LM and MD4).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/ntlm-hash-generator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement