Punycode Converter โ Unicode Domain (IDN) โ Punycode (xn--)
Punycode Converter
Automate link and QR code creation with the API
- Link API Create short links automatically from your app or internal tools with a REST API.
- QR Code API Create QR code links via the API, then get the PNG image by adding /qr to the short link.
- App deep links Open your app from a single link, or send users to the app store or web when the app isn't installed.
When you need Punycode conversion
System-level tasks such as web server configuration, SSL certificate issuance and DNS record setup mostly use the Punycode form. Apache and Nginx configuration, HTTP request headers and log analysis also rely on Punycode.
Use this tool to convert internationalized domains to Punycode, or to find the original domain behind Punycode in your logs.
Supported domains
You can convert characters allowed by internationalized domain name (IDN) rules, such as accented Latin letters or Chinese, Japanese and Korean characters. If you enter a URL instead of a domain, only the host part is converted. Lines containing disallowed characters, such as emoji, are listed separately under โLines that could not be converted.โ
Punycode structure and the xn-- prefix
A label converted to Punycode always starts with xn--. This prefix tells DNS that the label is an internationalized domain, and the string after it is the Unicode text encoded in ASCII characters.
Each dot-separated label is converted separately. In ํ๊ธ.๋๋ฉ์ธ.com, only the labels with non-ASCII characters are converted, while ASCII-only labels such as com stay unchanged.
For example, bรผcher.com becomes xn--bcher-kva.com. This tool uses Punycode to convert domain names. A Unicode escape such as \u00FC represents a character in text.
Bulk conversion of multiple domains
Enter one domain per line to convert them all at once, up to 2,048 characters. Lines that cannot be converted are listed separately with their line numbers, and the remaining lines are converted as usual.
Copy the results or download them as a TXT file to paste straight into server configuration files or spreadsheets. This is useful for domain transfers, server migrations and multilingual DNS setup.
How browsers handle internationalized domains
When you type an internationalized domain into the address bar, the browser automatically converts it to Punycode for the DNS lookup and shows the original characters again in the address bar. Users never see this step.
Server configuration, SSL certificate registration and application code, however, must handle this conversion directly. Use this tool to check or verify the results.
Frequently Asked Questions
Punycode is an international standard for converting domains into ASCII strings (RFC 3492). It turns domains written in Unicode characters, such as Chinese, Japanese or Korean, into strings made only of letters, digits and hyphens. Converted labels always start with xn--, so internationalized domain names (IDNs) can work on DNS and web servers that handle ASCII only.
Select the Unicode Domain โ Punycode tab at the top, enter one domain per line, and click Convert. Multiple lines are converted at once. Use Copy to clipboard to copy the results, or download them as a TXT file.
No. Emoji such as ๐ and ๐ are not allowed under the current conversion rules, so they cannot be converted. If you enter multiple lines, any lines that fail are listed separately from the results.
Major languages provide Punycode conversion out of the box.
- Java:
java.net.IDNwithtoASCII()andtoUnicode() - Python:
.encode('idna')on strings, or theencodings.idnamodule - JavaScript: The
URLAPI converts automatically, and thepunycodepackage is also available.
Check the conversion results with this tool before writing your code.
- Label-by-label conversion: Each dot-separated label is converted separately, not the whole domain. In
ํ๊ธ.๋๋ฉ์ธ.com,comstays unchanged. - Letter case: Domains are not case-sensitive, so lowercase input is recommended.
- Leading and trailing spaces: Spaces at the start and end of each line are removed automatically, and empty lines are skipped.
Click Unicode Domain in the results panel to convert the result back in the other tab and check that you get the original domain. Addresses that cannot make a round trip under this toolโs rules appear under โLines that could not be convertedโ (e.g. faร.de, xn--fa-hia.de).
A free online tool to convert internationalized domain names to Punycode (xn--) and back.