About this tool
Domain names can contain letters from any language: münchen.de, пример.рф, 例え.テスト. Underneath, DNS only understands ASCII, so these internationalized domain names (IDNs) are converted to Punycode, an ASCII form that starts with xn--: münchen.de is really xn--mnchen-3ya.de. This tool converts in both directions.
How to use it
- Paste one domain per line. Full URLs work too (only the host part is converted), and so do email addresses (only the part after
@). - Auto-detect converts Unicode domains to Punycode and
xn--domains back to Unicode. - Each label (the parts between dots) is converted separately, after Unicode normalization and lowercasing, as browsers do.
Where you need Punycode
- DNS records, server configs (nginx
server_name, ApacheServerName), TLS certificate names andhostsfiles. - Systems and older software that only accept ASCII hostnames.
- Reading logs and certificates, which show the
xn--form.
Lookalike (homograph) domains
Some letters in other alphabets look identical to Latin ones: the Cyrillic а (U+0430) is indistinguishable from the Latin a. Attackers register domains like аpple.com (really xn--pple-43d.com) for phishing. When a converted domain mixes Latin with Cyrillic, Greek or Armenian letters in one label, this tool shows a warning. Browsers apply similar rules and display such domains as Punycode in the address bar.
Punycode itself is defined in RFC 3492; this converter’s output matches what browsers produce.
FAQ
What is Punycode?
An encoding (RFC 3492) that represents Unicode domain names using only ASCII letters, digits and hyphens. Encoded labels start with xn--, so münchen.de becomes xn--mnchen-3ya.de.
How do I convert a domain to Punycode?
Paste the domain, URL or email address. Each non-ASCII label is converted to its xn-- form.
How do I decode an xn-- domain?
Paste it and it is converted back to Unicode automatically, for example xn--r8jz45g.xn--zckzah becomes 例え.テスト.
Why does my browser show xn-- instead of the real name?
Browsers show Punycode when a domain mixes scripts or could be confused with another, to protect against lookalike phishing domains.
Do emails support international domains?
The domain part can be converted to Punycode, so user@bücher.de becomes user@xn--bcher-kva.de. The local part (before @) needs SMTPUTF8 support from mail servers.