Decode xn-- Domains to Unicode (Punycode)
To decode an xn-- domain to its readable Unicode name, convert the ACE label back with Punycode — and the same widget encodes Unicode back to xn--. DNS cannot store arbitrary Unicode, so IDNA writes an ASCII Compatible Encoding that starts with xn--. FlashKit’s Punycode converter runs that conversion in this tab. Paste a hostname or a full URL; the host is converted and the path is ignored. It does not query DNS, does not speak WHOIS, and does not register names.
The algorithm is Punycode, RFC 3492. IDNA for domain names is RFC 5890 and RFC 5891. The examples below were produced with Node’s url.domainToASCII / url.domainToUnicode (not invented by hand).
Worked Punycode examples (German, Thai, Korean)
| Unicode | ACE (xn--) |
|---|---|
münchen.de | xn--mnchen-3ya.de |
münchen.example | xn--mnchen-3ya.example |
café.example | xn--caf-dma.example |
bücher.example | xn--bcher-kva.example |
ไทย.com | xn--o3cw4h.com |
กรุงเทพ.com | xn--12cm2c2aw0k8b.com |
서울.kr | xn--2i4bq6h.kr |
한글.kr | xn--bj0bj06e.kr |
харон.com | xn--80a0achx.com |
蓝色大肥鱼.com | xn--pssy23gqgbz2d718b.com |
Decoding is the reverse. url.domainToUnicode("xn--mnchen-3ya.de") returns münchen.de. url.domainToUnicode("xn--o3cw4h.example") returns ไทย.example. Conversion is per label: mail.münchen.example encodes only münchen.
Convert xn-- ↔ Unicode in this tab
Hostname only. No DNS query for the conversion itself.
Open the Punycode converterThe ACE prefix, and when the address bar stays xn--
xn-- marks an ACE label. A browser may still display Unicode in the address bar after ToUnicode. It may keep xn-- when scripts mix, when the label looks like a lookalike of a known brand, or when you copy the name from a certificate or a mail header. Seeing xn-- is not proof of fraud by itself — it is the on-the-wire form. Compare it to the brand you expected. Latin “a” (U+0061) and Cyrillic “а” (U+0430) encode to different ACE strings.
Background on the encoding, with café and münchen: what Punycode and xn-- mean. After you have the ACE form, domain-to-IP (Google Public DNS) and WHOIS are separate lookups. Command-line nslookup/dig: find a domain’s IP.
Look the ACE name up in DNS
A and AAAA via dns.google. Conversion success is not the same as a delegated name.
Open domain-to-IPHow to decode an xn-- label without the widget
In Node, url.domainToUnicode("xn--mnchen-3ya.de") returns münchen.de. url.domainToASCII("münchen.de") returns xn--mnchen-3ya.de. Python’s idna library does the same job. FlashKit runs Punycode / IDNA in the tab so you do not have to paste a suspicious hostname into a registrar search just to read it. Conversion is per label. Dots stay separators. www and com are already ASCII, so they are not rewritten.
Thai example, from the same Node run: ไทย.com ↔ xn--o3cw4h.com. A longer Thai city label กรุงเทพ.com ↔ xn--12cm2c2aw0k8b.com. Korean: 서울.kr ↔ xn--2i4bq6h.kr, 한글.kr ↔ xn--bj0bj06e.kr. If a mail log or a certificate shows only the ACE form, paste that ACE form; the Unicode column is what a person is meant to read.
Homographs: Latin a (U+0061) and Cyrillic а (U+0430) look the same in many fonts and encode to different ACE labels. The converter will not flag the mix. If the decoded Unicode is not the brand you typed from memory, do not enter a password there. Seeing xn-- in the address bar is not itself proof of fraud; some browsers keep ACE when scripts mix or when you copied the name from a certificate. Compare the decoded letters to the brand.
What decoding does not do
It does not tell you whether the name is registered. WHOIS is a separate query and the domain leaves your browser. It does not tell you which A or AAAA records exist. Domain-to-IP calls Google Public DNS. A successful ToUnicode plus NXDOMAIN means “this is how you spell it” and “it is not delegated,” two different facts. Paths and query strings are not DNS labels: paste https://xn--80a0achx.com/login and the converter still returns only the host харон.com.
RFC 3492 is Punycode, the bootstring encoding. RFC 5890 and RFC 5891 are IDNA: how domain names use that encoding with the ACE prefix xn--. FlashKit does not implement a full IDNA mapping table in the article prose; the widget is the converter. If a label is already ASCII, the output equals the input. If conversion throws in the widget, the string may contain dots in odd places, a scheme, or characters the IDNA implementation rejects — fix the paste, do not assume the TLD is “broken.”
The earlier explainer what is Punycode covers café and münchen with less of the decode-from-logs angle. This page is for people who already have an xn-- string in a ticket. Decode first, then decide whether to look the name up, and only then whether to visit it.
Worked round-trips you can repeat
These pairs were produced with Node url.domainToASCII / url.domainToUnicode and should match the widget when you paste either column:
münchen.de↔xn--mnchen-3ya.decafé.exampleas a hostname label: the café label isxn--caf-dma(the TLD is whatever you typed)ไทย.com↔xn--o3cw4h.comกรุงเทพ.com↔xn--12cm2c2aw0k8b.com서울.kr↔xn--2i4bq6h.kr한글.kr↔xn--bj0bj06e.kr
The umlaut on München is U+00FC (ü). Punycode does not keep that code point as UTF-8 bytes inside the DNS label; it encodes the non-ASCII label into an ASCII string that starts with xn--. That is why a WHOIS or certificate log can show only ASCII and still represent a German or Thai name. RFC 3492 is the bootstring. RFC 5890–5891 describe how IDNA uses it on domain names, including the ACE prefix.
Do not decode a URL path. https://xn--mnchen-3ya.de/login has a host and a path. Paste the host xn--mnchen-3ya.de (or the full hostname with dots), not the scheme and not /login. Query strings and fragments are not IDNA labels. If the widget errors, strip the scheme first.
Lookalikes, mixed scripts, and what to do next
A label that mixes Latin and Cyrillic can look like a brand you know and still encode to an ACE string you have never seen. The converter will happily show both forms. It will not score “this looks like paypal.” Your job after decode is to read the Unicode, compare it letter by letter to the brand, and only then decide whether to resolve DNS. Domain-to-IP on this site queries Google Public DNS; that query leaves the browser. WHOIS leaves the browser too. Decoding in the tab does not.
Some browsers show Unicode in the address bar after ToUnicode. Some keep xn-- when scripts mix or when the name is copied from a certificate. Copy-paste from a mail header often yields ACE. Copy-paste from a rendered page often yields Unicode. Paste whichever you have; the other column is the check. If Unicode → ACE does not match the ACE you were sent, you are looking at two different names.
A successful decode is not a registration check. münchen.de as a spelling and “does this name have NS records” are different questions. NXDOMAIN after a DNS lookup means the spelling is not delegated, not that Punycode failed. The inverse — a delegated ACE name — is still a name you should read in Unicode before you type a password. Decode, read, then look up, then visit. Skip the last step when the letters are not the brand you intended.
Email headers, TLS certificates, and server logs usually store the ACE form because DNS is ASCII-on-the-wire. A ticket that says “blocked xn--mnchen-3ya.de” is the same name as münchen.de. Paste the ACE string; read the Unicode column; only then decide whether WHOIS or domain-to-IP is worth a query that leaves the browser. The converter does not cache, does not log, and does not register names. It maps labels. RFC 3492 plus IDNA (RFC 5890–5891) are the documents if you need the encoding, not a registrar FAQ.