01What is Punycode Converter?
DNS only speaks ASCII. So a domain with accents or a non-Latin script, like münchen.de or пример.рф, is stored as an ASCII string starting with xn--. This converter goes both ways between the readable form and that stored form. In To Punycode mode, the tool hands your domain to the browser's own URL parser and reads back the hostname. That means it follows the WHATWG URL Standard, which applies the Unicode IDNA rules (UTS #46). It's the same processing as Node's url.domainToASCII and your address bar. The name is lowercased and NFC-normalised. Full-width letters and the ideographic full stop (。) are mapped to their plain forms. Then each label that still has non-ASCII characters goes through the RFC 3492 Punycode algorithm and gets the xn-- prefix. How does Punycode itself work? It copies the plain ASCII characters of a label first, then adds a dash. After that comes a compact base-36 code that records which non-ASCII characters to insert, and where. So münchen becomes mnchen, a dash, and 3ya. The full result is xn--mnchen-3ya.de. Before encoding, the tool checks for things that are not part of a hostname. Spaces, slashes, a scheme, a port, a query, a percent sign or an @ all trigger a clear error. Anything the URL parser refuses under IDNA rules is reported as an error too. From Punycode mode runs a separate decoder written to RFC 3492. It lowercases the input, splits it on dots and decodes each label that starts with xn--. Labels without that prefix pass through untouched. So xn--e1afmkfd.xn--p1ai comes back as пример.рф. The output panel shows the result with a Copy button, and the reset icon clears the input. The three examples load a German, a Japanese and an Arabic domain. 例え.jp encodes to xn--r8jz45g.jp and مثال.com to xn--mgbh0fb.com. Both directions run in your browser, so the domains you check are not sent to any lookup service. Some honest limits apply. The decoder only reverses Punycode. It doesn't check that the decoded label would be valid under IDNA, and a broken xn-- label is returned as typed rather than flagged. Encoding follows browser rules, which are looser than the IDNA2008 rules many registries enforce. An emoji domain like ☃.net encodes fine here, yet most registries would refuse to register it. Also, Copy copies whatever is in the panel, including an error message.
Web developers, DNS administrators and security analysts who need the exact ASCII form of a non-English domain or want to read an xn-- hostname. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Punycode Converter
- Choose To Punycode or From Punycode.
- Type a bare domain (no https:// or path) into the International Domain or Punycode Domain field.
- Read the result in the output panel, labelled Punycode or Unicode Domain.
- Click Copy to take the result, or the reset icon to clear the input.
03Worked examples
- Input:
bücher.de - Result:
xn--bcher-kva.de - Only the label with non-ASCII characters gets the xn-- prefix.
- Input:
MÜNCHEN.de - Result:
xn--mnchen-3ya.de - The name is lowercased first, so this matches münchen.de.
- Input:
faß.de - Result:
xn--fa-hia.de - ß is kept and encoded, not turned into ss, under the browser's non-transitional rules.
- Input:
example。com - Result:
example.com - Full-width letters and the ideographic full stop are mapped to plain ASCII, so no xn-- is needed.
- Input:
xn--e1afmkfd.xn--p1ai (From Punycode) - Result:
пример.рф - Both labels are decoded. Input case doesn't matter.
- Input:
https://bücher.de - Result:
Error: Enter a bare domain name (no spaces, scheme, path, port or @).
04Common use cases
- Finding the ASCII form of an internationalised domain before adding DNS records at a registrar
- Decoding an xn-- hostname that shows up in server logs, TLS certificate SANs or email headers
- Checking a suspicious xn-- link for look-alike Cyrillic or Greek characters during phishing triage
- Writing the ASCII hostname into nginx server_name, a CDN config or a CORS allow-list
- Confirming that a full-width or uppercase domain someone pasted maps to the same name you already own
- Testing how a browser will treat ß or emoji in a hostname before buying a domain
05Tips
- Strip the scheme and path first. The encoder only accepts a hostname, so https://bücher.de/shop gives an error.
- Encoding follows browser rules (UTS #46, non-transitional), so ß stays ß and is encoded. Older IDNA2003 tools turn it into ss and give a different domain.
- Punycode works per label. Only labels with non-ASCII characters change, so a .de or .com suffix stays as it is.
- Browsers often show the xn-- form when a domain mixes scripts. If a link displays that way, decode it here before trusting it.
- Python's idna package applies stricter IDNA2008 checks, so a domain that encodes here can still be refused there.
06Related concepts
Punycode, IDNA, Internationalised domain names, RFC 3492, Homograph attack.
Frequently Asked Questions
What is Punycode Converter?
Punycode Converter is a free, browser-based developer tool on AIDToolStack. Convert international domain names to Punycode It requires no installation or sign-up and works entirely in your browser.
Is Punycode Converter free to use?
Yes. No sign-up, no fees and no usage cap.
Does Punycode Converter store my data?
No. It runs in your browser; nothing is uploaded.