esc
  • Loading the root zone…

Glossary

IDN & Punycode

An internationalized domain name (IDN) uses characters beyond A–Z, like ü, я or 中. The DNS itself only stores ASCII, so IDNs are converted to Punycode: an ASCII form that starts with "xn--". The TLD .рф, for example, is stored as xn--p1ai.

Browsers convert between the two forms automatically. Because some characters look alike across scripts, browsers sometimes show the xn-- form instead, to protect people from look-alike phishing domains.

The conversion follows IDNA2008 (RFC 5890 to 5894) and the Punycode algorithm (RFC 3492). The "U-label" is what people read, such as пример.рф, and the "A-label" is what the DNS stores: xn--e1afmkfd.xn--p1ai. Each label is converted separately, which is why the TLD and the name before it each get their own xn-- prefix.

IDNs reached the top level in 2010, when the first country codes in Arabic script were delegated; the 2012 program then added generic TLDs in Chinese, Cyrillic, Arabic and other scripts. Today 151 TLDs are internationalized. Han (Chinese) characters are the most common script, followed by Arabic and Cyrillic.

IDNs make the web readable in more languages, but support is uneven. Some email systems still reject internationalized addresses, a few apps show only the xn-- form, and look-alike characters (a Cyrillic "а" next to a Latin "a") make phishing easier. Registries limit this by allowing only certain scripts per TLD and blocking mixed-script names.

Try it

Examples

Quick answers

What does xn-- mean in a domain?

"xn--" marks a Punycode-encoded label: the ASCII form of a name written in another script. Browsers show the native characters instead when they can.