Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Glossary

Punycode: how international domain names are stored

Punycode is the encoding that turns a Unicode domain label into plain ASCII letters, digits and hyphens so international domain names (IDNs) work in the DNS. The result starts with xn--, so bücher becomes xn--bcher-kva.

The short answer
  • DNS stores only ASCII; Punycode lets other scripts use it.
  • The prefix xn-- marks an encoded label (an A-label).
  • Lookalike characters make IDN spoofing possible; check the xn-- form of suspicious names.

How do the forms relate?

U-label to A-label (RFC 5890 example)
FormExampleWhere it appears
U-label (Unicode)bücherBrowsers and registrar forms
A-label (Punycode)xn--bcher-kvaDNS records, WHOIS and RDAP, certificates
Full domainxn--bcher-kva.exampleWhat resolvers actually look up

Definitions: RFC 5890. The Punycode algorithm itself is RFC 3492.

Where does Punycode matter to domain owners?

Registering IDNs

Registries allow specific scripts and characters; check the registry's IDN table before buying.

DNS and email

Enter the xn-- form in DNS records if your provider does not convert it for you.

Homograph lookalikes

Letters from other scripts can look identical to Latin ones. Convert unfamiliar names to Punycode to inspect them.

Common questions

What does xn-- mean in a domain?

It is the ASCII-compatible encoding prefix. A label starting with xn-- is an A-label: Punycode-encoded text that decodes back to a Unicode label, as defined in RFC 5890.

Is Punycode safe?

Punycode itself is just an encoding. The risk is lookalike names, where different scripts share similar-looking characters. Browsers apply display rules, and you can inspect the xn-- form to see what the name really is.

Can any character be used in an IDN?

No. Each registry publishes the scripts and code points it allows, based on IDNA rules in RFC 5892, so a character valid in one TLD may be rejected in another.

How do I convert a name to Punycode?

Registrars and many online converters show it automatically when you enter a Unicode name. The algorithm is public in RFC 3492, and libraries for most programming languages implement it.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.