Domain or URL
Converts both ways between Unicode domains and xn-- Punycode.
Conversion

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 formPunycode formNotes

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

How to use

  1. Enter a Unicode domain on the left, e.g. münchen.de or пример.рф.
  2. The right side shows both forms with per-label lengths.
  3. 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.

Related tools & reading

Comentarios

Este sitio es solo frontal: sin backend ni cuentas. Los comentarios van a GitHub Issues, Discussions o correo.

Pega esto en el issue o correo para ayudarme a localizar el problema; no incluye nada de lo que escribiste

También:Ver comentarios existentes · Comentarios por correo (sin cuenta de GitHub):278975598@qq.com