What is Punycode?
The domain name system only understands the letters a to z, the digits and the hyphen. To let people register names such as bücher.de, пример.рф or 日本語.jp, the standard called IDNA turns every label that has other characters into an ASCII form that starts with xn--. The encoding used for that is Punycode, defined in RFC 3492. So bücher.de travels over the network as xn--bcher-kva.de, and your browser shows you the readable version.
This converter goes both ways. Paste a domain with accents, Cyrillic, Greek, Arabic, Chinese or emoji and you get the xn-- form you need in a DNS panel, a certificate request, a mail server setting or a firewall rule. Paste an xn-- name from a log, a certificate or a phishing report and you see what it really says. It works on bare domains, on e-mail addresses (only the part after the @ is converted) and on full URLs (only the host changes, the path and query stay exactly as typed). You can paste many lines at once.
It also gives a hint that matters for security: when one label mixes alphabets, for example a Cyrillic "а" inside an otherwise Latin word, the tool warns you. Such look-alike letters are the basis of homograph attacks, where аpple.com looks like a well known site and is not.
Everything runs in your browser. No name is looked up, no request is made, and the text you type is never stored. The conversion follows the WHATWG URL rules, the same as modern browsers: letters are lower-cased, compatibility forms are normalised, and the German ß stays ß instead of becoming "ss".
How to convert a domain
- Paste or type one domain, e-mail address or URL per line. The page opens with an example that has all of them.
- Leave the direction on Automatic. A line with non-ASCII characters becomes Punycode, and a line with
xn--labels becomes readable text. Switch to "To Punycode" or "To Unicode" when you want to force one side. - Read the result on the right, line by line. Use Copy for the whole list or Download for a text file.
- Look under the boxes. Lines that could not be converted are listed with the reason, and look-alike warnings appear there too.
- Use "continue with" to open the converted URL in the URL parser or the URL encoder.
Examples
A German domain
bücher.de -> xn--bcher-kva.deThe letter ü is replaced by the encoded form after xn--bcher-. Use the right side in DNS records and certificates.
A Russian domain in a URL
https://пример.рф/путь?q=1 -> https://xn--e1afmkfd.xn--p1ai/путь?q=1Both labels are encoded, including the top-level domain .рф. The path is left alone because it is not part of the host name.
An e-mail address
josé@пример.рф -> josé@xn--e1afmkfd.xn--p1aiOnly the domain changes. The part before the @ is not covered by Punycode; sending to a local part with accents needs a server that supports SMTPUTF8.
A look-alike warning
аpple.com (the first letter is Cyrillic)The result is xn--pple-43d.com, and the page warns that the label mixes Cyrillic and Latin. Real owners rarely mix alphabets in one word, so treat it as suspect.
Common mistakes
- Converting a whole URL by hand. Encoding the path or the query with Punycode is wrong. Only the host uses it; the rest uses percent-encoding. Use the URL encoder for that part.
- Cut-off names. An
xn--label that ends early is not valid Punycode and the line is reported as an error with the label that failed. - Labels that are too long. A label can have at most 63 characters and the full name 253, counted after conversion. Names with many non-Latin letters get long fast.
- Expecting "ss" for ß. Modern browsers keep ß, so
faß.debecomesxn--fa-hia.de. Some older registries and tools still map it tofass.de, which is a different name. - Assuming no warning means safe. A name written entirely in Cyrillic or Greek can still imitate a Latin name. The warning only catches mixed alphabets inside one label.
Frequently asked questions
Is this the same as IDNA?
It covers the part people use daily: mapping to lower case and compatibility forms, splitting at the dots and encoding each non-ASCII label with Punycode, as browsers do for the address bar. It is not a full registry validator. It does not check which characters a given top-level domain allows, and it does not look the name up.
Why does my domain show as xn-- in the browser?
Browsers show the xn-- form on purpose when a name mixes scripts or looks risky, to protect you from look-alike domains. Paste it here to see the readable version and to check which alphabets it uses.
Does anything leave my computer?
No. The algorithm is written from RFC 3492 and runs locally, and the page makes no network request. Nothing you type is saved.
Can I check a name with the parser?
Yes. After the conversion, open the result in the URL parser to see the host, port, path and query as separate fields.
What about Unicode in the path of a link?
It is not Punycode. Browsers send it as percent-encoded UTF-8 bytes. If you need that, the URL encoder does it.