Punycode (IDN) Converter.
Convert internationalized domain names between Unicode and xn-- Punycode.
Runs in your browserAbout Punycode (IDN) Converter
Domain names on the wire may only contain ASCII letters, digits and hyphens, so names written in other scripts are stored in Punycode: an ASCII encoding defined in RFC 3492 and wrapped in the "xn--" prefix by IDNA. This converter goes both ways. Paste münchen.de and you get xn--mnchen-3ya.de, the form you need for DNS records, TLS certificates, nginx server_name and most configuration files; paste xn--e1afmkfd.xn--80akhbyknj4f and you get пример.испытание back. Each label is converted separately, so mixed names such as shop.bücher.example keep their ASCII parts unchanged. Lines that contain an @ are treated as email addresses: only the domain after the last @ is converted, because the local part is not Punycode. Put one domain per line to convert a whole list; the table shows the Unicode and ASCII form of each and flags labels longer than 63 characters, domains longer than 253 characters and labels that start or end with a hyphen. Typical mistakes include running Punycode on the whole domain with the dots included, forgetting the xn-- prefix, and expecting upper-case letters to survive: domain names are case-insensitive and IDNA lower-cases them. Decoding also rejects malformed labels such as xn--zz-, which would decode to plain ASCII and is therefore never valid. This tool applies NFC normalization and lower-casing but not the full UTS #46 mapping table, so compatibility characters such as full-width letters may convert differently than in a browser. Conversion runs locally in your browser.
How to Use
- Paste one or more domains, one per line; email addresses work too.
- Leave the direction on auto or force Unicode → ASCII or ASCII → Unicode.
- Copy the converted list or check the table for warnings.
Frequently Asked Questions
What does the xn-- prefix mean?
It marks an IDNA label whose remaining characters are Punycode. Resolvers and browsers see the prefix and decode the label back to Unicode for display.
Do I need Punycode for SSL certificates and DNS?
Yes. DNS zone files, certificate subject names and most server configs expect the xn-- form. Browsers show the Unicode form to users.
Why is ß converted differently by my browser?
Older IDNA 2003 implementations map ß to ss. This tool follows IDNA 2008, like current browsers and Node.js, and keeps ß, so straße.de becomes xn--strae-oqa.de.
Is my list sent anywhere?
No. The conversion runs in your browser.
Related Tools
Split a URL into scheme, credentials, host, port, path, query parameters and fragment, and normalize it.
Encode and decode URL components.
Encode and decode HTML entities.
Look up A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and SRV records.
Information about your current IP address.
Encode and decode Base64 strings.