About Punycode Converter for Domain Names
Paste domain names with accents, Cyrillic, Arabic, Chinese or emoji and get the xn-- form that DNS, certificates and server configuration files use, or paste xn-- names to read what they really say. Put one name per line to convert a whole list at once.
A web address or an e-mail address can be pasted as it is: only its host changes, and the scheme, user name, port, path and the part before the @ are kept exactly as written. A line that cannot be converted is left as it was and explained, while the other lines still convert.
How it works
- Each line is trimmed and its host is found: the whole line for a bare name, the part between the scheme and the port or path of a web address, or the part after the @ of an e-mail address.
- The host is split into labels at dots. The ideographic and full-width full stops (。.。) count as dots too, as they do in browsers.
- To Punycode: each label that is not plain ASCII is converted to lower case, then to Unicode NFC form, and encoded with the Punycode algorithm behind an xn-- prefix. ASCII labels are lower-cased.
- To Unicode: each xn-- label is decoded, then encoded again to check that it is exactly what an encoder would write. Labels without the prefix are left as written.
- Lengths are checked in the xn-- form: a label longer than 63 characters or a name longer than 253 is converted but flagged, because DNS will not accept it. A single label of more than 253 characters, longer than any whole name, is left as it was.
Questions
Does it apply the full IDNA rules that browsers use?
No. It lower-cases each label and puts it in Unicode NFC form, treats the three Unicode full stops as dots, and then applies Punycode. It does not apply the rest of the IDNA mapping tables or check which characters a registry allows, so a name it encodes (an emoji name, for example) may still be refused by a registrar.
Why was one of my lines left unchanged?
Because it could not be converted safely: an xn-- label that is not valid Punycode, one that decodes to plain ASCII or to control characters, a space or other character that a domain name cannot hold, an empty label from two dots in a row, or a label longer than a whole domain name may be. The note under the result names the line and the reason; every other line is still converted.
Can I paste a full web address or an e-mail address?
Yes. Only the host changes. The scheme, any user name and password, the port, the path, the query and the fragment are kept as written, and so is the part of an e-mail address before the @, which Punycode does not apply to.
How do right-to-left names look in the result?
Arabic and Hebrew labels are written in their logical order, as they are stored, and your browser displays them right to left. The dots between labels may therefore appear in a surprising place on screen, but the text itself is in the correct order.
Is anything sent to a server?
No. The conversion runs in this browser tab with a small Punycode library, and nothing you paste is stored or sent anywhere.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.