Security & Encoding · Free tool

IDN Encode Decode

Convert internationalized domain names to punycode and back: münchen.de ↔ xn--mnchen-3ya.de, per RFC 3492.

How to use the idn encode decode

  1. Pick the direction: encode a Unicode domain for DNS, or decode an xn-- name to read it.
  2. Type the domain — conversion happens live, label by label.
  3. Copy the result into DNS records, certificates, or browser testing.
  4. Check the validity hint: the converted name must be a legal hostname.

About this tool

The DNS only speaks ASCII, but half the world’s domains contain non-ASCII letters. IDNA bridges the gap with punycode: each Unicode label becomes an xn---prefixed ASCII string, e.g. Chinese, Arabic, or German umlaut domains resolve through exactly this mechanism.

This tool implements RFC 3492 punycode directly in JavaScript — both directions, label by label, with scheme stripping so pasting a full URL works. Useful for DNS admins, certificate SAN checks, and anyone debugging why an IDN resolves in one browser but not another.

Frequently asked questions

Why does DNS need xn-- at all?

Historical ASCII-only protocol constraints. Punycode keeps resolvers simple while letting any script appear in browser address bars.

What is the homograph risk?

Different characters can look identical (Cyrillic а vs Latin a). Browsers mitigate with scripts/locale rules; be extra careful with certificates and email domains.

Does it handle full URLs?

Yes — scheme and path are stripped automatically; only the hostname is converted.

Looking for more? Browse the full tools library, read the site FAQ, or contact us.