Punycode converter: decode xn-- domains to Unicode

Convert Unicode domains to Punycode and back for IDN compatibility.

Was this helpful?
Share Tool

An xn-- domain is an internationalized hostname stored as ASCII for DNS. The xn-- prefix marks Punycode (ACE). Browsers may show café.example as Unicode; the on-the-wire label is still xn--caf-dma.example. This converter decodes an xn-- domain to its readable Unicode name and encodes Unicode back to Punycode in your tab. It does not register domains, does not query WHOIS, and does not prove that a name is available.

Paste a hostname, an xn-- label, or a full URL. The converter reads the host and ignores the path, query, and port. Unicode in → xn-- ACE out. ACE in → Unicode out. Only labels that need encoding are rewritten; ASCII labels such as www and com stay as they are. Dots remain separators.

Worked example. Input münchen.example becomes xn--mnchen-3ya.example. Input xn--mnchen-3ya.example becomes münchen.example. Input café.com becomes xn--caf-dma.com. Input xn--80a0achx.com becomes харон.com. Copy the ACE form into a registrar search or the domain-to-IP tool before you pay. Confirm the code points — lookalike Cyrillic or Greek letters encode to a different xn-- string than the Latin letters they resemble. To decode an xn-- domain with Thai, German, and Korean examples, use that guide.

Conversion stays in this tab, like a few other local FlashKit Tools pages: compress a PDF to 200 KB, resize a photo in cm or mm, or compress an image to 20 KB. Punycode does not shrink those files; it only rewrites the hostname labels.

How to convert Punycode (IDN ↔ xn--)

  1. Paste a Unicode domain (münchen.example), an ACE label (xn--mnchen-3ya.example), or a full URL. The host is converted; the path is ignored.
  2. Convert. Read the other form. Only the label that needs encoding is rewritten.
  3. Copy the ACE form into a registrar search or the domain-to-IP tool.
  4. Do not trust lookalike characters. Confirm the code points, then look the name up in DNS.

Key Features

  • To-ASCII and To-Unicode in one field
  • Per-label conversion (dots stay as separators)
  • No network request for the conversion itself
  • Works on email domains as well as hostnames

What is an xn-- domain?

  • An xn-- domain is a DNS hostname whose non-ASCII label was encoded with Punycode and prefixed with xn-- so DNS can store it as ASCII.
  • Punycode (RFC 3492) is the encoding. IDNA (RFC 5890–5891) wraps it for domain names. Decoding xn--80a0achx.com yields харон.com.
  • Conversion is per label. mail.münchen.example encodes only münchen, not mail or example.
  • You can paste a full URL. The converter takes the hostname and ignores the path, query, and port.

Worked IDN examples

  • münchen.example → xn--mnchen-3ya.example
  • café.com → xn--caf-dma.com
  • bücher.example → xn--bcher-kva.example
  • Paste the ACE form into domain-to-IP. If DNS has no record, conversion still succeeded — the name is simply not delegated.
  • Homograph check: Latin “a” and Cyrillic “а” look the same and encode differently. Always inspect the xn-- output.

A full URL, an email, and 東京.jp

  • Paste https://www.münchen.de/stadt?x=1 into the Unicode box. The Punycode box becomes www.xn--mnchen-3ya.de. The path /stadt and the query x=1 are dropped because only the hostname is encoded. www stays ASCII. münchen is the only label that grows an xn-- prefix.
  • Paste user@münchen.example. The mailbox name is discarded and the result is xn--mnchen-3ya.example. MÜNCHEN.example in the same box lowercases the label first and produces that same xn-- string. Typing MÜNCHEN.example into the Punycode box does not decode it: that box only rewrites labels that already start with xn--.
  • 東京.jp becomes xn--1lqs71d.jp. español.com becomes xn--espaol-zwa.com. The ñ is not kept as a letter in the ASCII skeleton, which is why the label reads espaol rather than espanol. 日本。jp, with an ideographic full stop, is treated as 日本.jp and encodes to xn--wgv71a.jp.

Lookalike letters and labels this page will not police

  • Latin apple.com stays apple.com. The same shape with a Cyrillic а (U+0430) in the first letter encodes to xn--pple-43d.com. The two strings are not the same hostname. This page shows the encoding. It does not warn you that the letters come from two scripts.
  • Each label is encoded on its own. mail.münchen.example:443/path becomes mail.xn--mnchen-3ya.example. The port and the path are not part of the result. An empty label from a double dot is left empty rather than repaired into a registrable name.
  • The converter does not apply the full IDNA mapping tables. A disallowed character can still produce an xn-- string that a registrar or a browser will reject. Encoding success is not proof the name can be registered, and it is not a DNS answer.

How to check an xn-- link before you log in

  • Paste the hostname from the address bar into the Punycode box and read the Unicode box. If the readable name is not the brand you expected, stop. Then paste the Unicode form back into the Unicode box and confirm you get the same xn-- string you started with.
  • Copy the ACE form into a registrar search or a DNS lookup. If DNS has no record, the conversion still succeeded. The name is simply not delegated. Do not add https:// back by hand until the hostname itself matches.

Frequently Asked Questions

What is an xn-- domain?

A hostname whose internationalized label is stored as ASCII for DNS. The xn-- prefix marks Punycode. Decoding xn--80a0achx.com yields харон.com; encoding харон.com yields the xn-- form.

What is Punycode?

An encoding that represents Unicode DNS labels as ASCII. Internationalized domain names are stored as ACE labels that start with xn--. This page converts between the Unicode form and that ACE form in your browser.

Can I paste a full URL?

Yes. Paste a hostname, an xn-- domain, or a URL with a path. Conversion uses the host only. https://xn--80a0achx.com/login decodes to харон.com.

Does this register the domain?

No. Conversion only shows the ACE form. Registrars still have to accept the TLD and the string.

Does this detect homograph attacks?

It shows the encoding. It does not flag mixed-script lookalikes. Check code points yourself. If a link’s punycode is not the brand you expect, do not log in there.

Expert Guide for Punycode Converter

View Blog
Decode xn-- Domains to Unicode (Punycode)

Decode xn-- Domains to Unicode (Punycode)

Paste an xn-- domain to decode Punycode to Unicode (and back). Worked hostnames and URLs. Converter runs in this tab — no DNS lookup.

Read Guide

Categories

Browse all FlashKit tools