Why the same domain has two spellings
DNS only carries ASCII, so an internationalised domain (IDN) has to be Punycode-encoded into the xn-- form before it can be registered or resolved. The address bar shows you the readable form; the wire protocol uses the encoded one. Each label is capped at 63 bytes, the whole name at 253.
| Unicode form | Punycode form | Notes |
|---|
Punycode / IDN Converter
Non-ASCII domains (German umlauts, Cyrillic, Greek) have to be encoded into the xn-- form before DNS can resolve them. That encoding is Punycode. Registering a domain, requesting a certificate or writing a hostname regex usually means converting between the two spellings.
Encoding uses the browser built-in IDNA handling (UTS#46 normalisation), which matches other mainstream tools; decoding implements RFC 3492 directly and needs no network call.
Features
- Both directions — Unicode to Punycode and Punycode back to a readable domain.
- Per-label detail — The name is split on dots and each label is measured, so you can see which one exceeds 63 bytes.
- Validity warnings — Total length over 253 bytes, empty labels and illegal characters are reported explicitly.
- Full URLs accepted — Paste a URL with scheme and path; only the host gets converted.
How to use
- Enter a Unicode domain on the left, e.g. münchen.de or пример.рф.
- The right side shows both forms with per-label lengths.
- Paste an xn-- host instead and it decodes back.
FAQ
Why does one domain have two spellings?
DNS only carries ASCII, so an internationalised domain is Punycode-encoded first. What you see in the address bar is the readable form; what goes on the wire starts with xn--.
How long can a single label be?
Measured on the encoded ASCII form: 63 bytes per label, 253 for the whole name. A CJK character costs four to six characters once encoded, so a Chinese label only fits a dozen characters.
Are xn-- domains phishing?
Not inherently — xn-- is just an encoding. But homoglyphs (Cyrillic а versus Latin a, say) can build look-alike names, so decoding an xn-- host before trusting it is a reasonable habit.