- Home
- Domain & Network
- IDN / Punycode Converter
IDN & Punycode (xn--) Converter
Convert international domain names to punycode (xn--) and back, including Turkish characters.
What it is for?What it is for?
You need the xn-- form when a Turkish or other international domain goes somewhere that only accepts ASCII: a DNS zone file, a web server config, an SSL certificate request, or a list of allowed hosts. You need the reverse when a log or an e-mail header shows xn-- and you want to know which domain it is.
What is punycode?
Domain names with non-ASCII letters, such as ç, ş or ü, are stored in DNS as punycode starting with xn--. Encode turns a readable domain into its xn-- form, Decode turns it back.
An example
örnek.com encodes to xn--rnek-4qa.com. Only the part with special letters changes; .com stays as it is. Each part between dots is converted on its own, so münchen.de becomes xn--mnchen-3ya.de. An e-mail address such as ali@örnek.com also works: the part before the @ is left alone.
Common mistakes
- Write the domain in lower case. This converter does not lower case the input for you, and Örnek.com gives a different xn-- result from örnek.com. Browsers and DNS use the lower case form.
- Paste only the domain, not a full address. With https:// or a path in front, the whole string is treated as one label and the result is wrong.
- Convert one domain at a time.
Where it runs
The conversion happens in this tab with a JavaScript library. The domain is not sent to our server.