Punycode Converter (IDN)
Convert domain names with non-English characters to Punycode (xn--) and back. Paste a domain or a full URL, one per line.
Convert domain names with non-English characters to Punycode (xn--) and back. Paste a domain or a full URL, one per line.
Domain names can contain non-English letters, for example münchen.de. DNS only understands ASCII, so these names are stored in Punycode, such as xn--mnchen-3ya.de.
This tool converts in both directions. You can paste bare domains or full URLs. Only the domain part is converted, and the rest of the URL is left unchanged.
münchen.de = xn--mnchen-3ya.de
Punycode, defined in RFC 3492, is the encoding behind internationalized domain names. DNS labels are limited to ASCII letters, digits and hyphens, so each non-ASCII label is converted separately. The algorithm copies the ASCII characters first, then encodes the positions and values of the remaining characters as a compact sequence of base-36 digits, and the label is prefixed with xn-- to flag it. In the name muenchen written with an umlaut, the ASCII letters stay readable and the umlaut is stored in the encoded tail after the final hyphen.
The conversion here works label by label, so only the parts of the domain between dots that contain non-ASCII characters are encoded. Before encoding, text is normalized to Unicode NFC form and lowercased, which mirrors part of the IDNA processing browsers do. Full IDNA 2008 rules, defined in RFC 5890 onward, add more validation, such as rejecting some characters. Look-alike characters from different scripts can imitate familiar names, so checking the Punycode form is a useful defence against phishing.
An encoding that represents Unicode characters using only letters, digits and hyphens, so international domain names work with DNS.
It marks a domain label that is Punycode encoded.
Browsers may show the Unicode form for some domains and Punycode for others to guard against look-alike spoofing.
No. The conversion runs in your browser.
Only the domain part would need conversion. Paste just the domain after the at sign, because the tool is designed for domains and URLs, not mailbox names.
Yes. Each label is handled, including the last one, so a Unicode top-level domain is converted to its xn-- form. Labels that are already plain ASCII stay unchanged.