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

Feedback

Diese Seite ist rein front-end: kein Backend, keine Konten. Feedback geht an GitHub Issues, Discussions oder E-Mail.

Füge dies in das Issue oder die E-Mail ein, um mir zu helfen, das Problem zu finden – es enthält nichts von dem, was du eingegeben hast

Auch:Vorhandenes Feedback ansehen · Feedback per E-Mail (ohne GitHub-Konto):278975598@qq.com