Punycode and internationalised domain names explained
If you paste an address with accented or non-Latin letters into a technical tool, it may come back as an odd string beginning with xn--. That is Punycode, the encoding that represents Unicode characters in an ASCII-compatible form for internationalised domain names (IDNs). It changes how the name is written and proves nothing about whether the website behind it is genuine.
Why a domain needs two spellings
DNS was built around host names made of ASCII letters, digits and hyphens. To carry other scripts without changing that, each name has two forms. The Unicode form that people read is often called a U-label. Its ASCII-compatible counterpart is an A-label, which begins with xn-- when Punycode is involved.
For example, the IDN test label bücher has the A-label xn--bcher-kva. Both forms refer to the same domain label when processed under the applicable IDNA rules. Registries may apply further restrictions of their own on which labels can actually be registered.
What is converted and what is left alone
Each eligible label between the dots is processed separately, so a name can mix converted and untouched labels. The conversion does not encode an entire URL: the scheme, path and query follow other rules.
After conversion, an A-label takes part in DNS like any other valid label. Delegation, caching, DNSSEC and record types all still apply. If a Unicode name fails to resolve, compare the exact ASCII form and the DNS answers for it, and do not rely on what the browser displays.
Why your browser sometimes shows the xn-- form
A browser may show the Unicode form for one domain and the A-label for another, according to its security and language rules. Copying a URL into a diagnostic tool can likewise reveal an unfamiliar xn-- string. This is expected for many internationalised names and is not itself evidence of an attack.
How lookalike domains exploit other alphabets
Characters from different scripts can look alike. A deceptive domain may resemble a familiar brand on screen while consisting of different underlying code points, which makes it a different domain with a different owner. Punycode encodes those characters faithfully. It does not detect impersonation, verify ownership or check a site’s content.
The A-label is useful here precisely because it is unambiguous. Two names that look the same in a font produce different ASCII forms if any character differs.
Checking a suspicious address before you sign in
Read the complete host name, including the domain ending, before you enter credentials. Compare it with a trusted bookmark or the address the organisation publishes. Be careful with links in urgent messages, and check the certificate name when the browser reports a warning.
A conversion tool can show the Unicode and ASCII forms side by side, but the conversion alone is not a safety verdict. Registration data may add context, yet private or limited records cannot prove a sender’s identity. When in doubt, navigate to the service independently and leave the questionable link alone.
Keeping evidence of a lookalike link
When you document a suspicious name, copy both the visible Unicode spelling and the corresponding A-label. A font difference, a copy-and-paste step or an automatic link preview can otherwise hide which characters were actually used. Record the complete URL separately from the domain as well, because a misleading path can sit below a perfectly legitimate host.