MD2

This MD2 online tool helps you calculate hash from string or binary. You can input UTF-8, UTF-16, Hex to MD2. It also supports HMAC.

Input
Output
Share Link
Settings

What is MD2?

MD2 is a hash function from the MD family, introduced in 1989 by Ron Rivest (RFC 1319). It turns input of any size into a fixed 128-bit (32 hex character) digest. The same input always gives the same output, and a one-bit change in the input gives a completely different result.

Security status: MD2 is broken and obsolete.

Common uses: legacy certificates and historic systems only.

How to calculate MD2 online

  1. Type or paste your text into the Input box.
  2. Choose the input encoding (UTF-8, UTF-16, Hex or Base64) if needed.
  3. The MD2 hash appears instantly in the Output box while Auto Update is on.
  4. Click the copy icon, or use Share Link to send the exact input and settings.

Everything runs in your browser with JavaScript. Your text is never uploaded to a server.

Frequently asked questions

Is this MD2 tool free and private?

Yes. It is free with no sign-up, and the MD2 calculation runs entirely in your browser. Nothing you enter is sent to our servers.

Can I reverse or decrypt a MD2 hash?

No. MD2 is a one-way function, so the original input cannot be recovered from the output. Sites that "decrypt" hashes only look them up in tables of precomputed common inputs.

How long is a MD2 hash?

A MD2 digest is 128 bits, which is 16 bytes or 32 hexadecimal characters.

Should I use MD2 for passwords?

No. Use a slow, salted password hash such as Argon2id, bcrypt or scrypt. For integrity checks, prefer SHA-256 or BLAKE3.

Why does my hash differ from another tool?

Check the input encoding and trailing newlines. "abc" and "abc\n" hash differently, and UTF-8 and UTF-16 produce different bytes for the same text.

Related tools