Sooner or later, anyone who works with international websites meets a strange string: a domain that reads perfectly well in one place, like bücher.de, and appears somewhere else as xn--bcher-kva.de. It shows up in registrar paperwork, in some browser security views, and in messages from support teams. It looks like a different, broken address. It is neither: it is the same domain, spelled the way the domain name system actually stores it. This explainer covers what Punycode is, how the encoding works, and how to translate between the two forms with the free Punycode Converter on Ovatly.
Contents
- Quick answer
- Two spellings of the same domain
- How the encoding works, label by label
- Why your browser sometimes shows the xn-- form
- How to convert a domain, step by step
- Worked example: three conversions
- Limits worth knowing
- Common mistakes
- FAQs
- Conclusion
Quick answer
People type domain names in Unicode: accented Latin, Greek, Cyrillic, Arabic, Chinese, Japanese and more. DNS, the system that stores and resolves domains, works in plain ASCII. Punycode is the bridge between the two: an encoding, defined in RFC 3492 and built into IDNA, that rewrites each internationalized label as an ASCII string beginning with xn--. The Punycode Converter translates a domain in either direction and shows both forms side by side, so the string in your registrar's paperwork and the name your visitors type can be checked against each other in seconds.
Two spellings of the same domain
The German word for books gives the classic example. A visitor types bücher.de. DNS stores that name as xn--bcher-kva.de. These are not two domains that point at each other; they are one domain with two representations, the way a person can be described by a name in two alphabets. The Unicode form is for humans. The ASCII form is for the machinery.
That is why both spellings keep crossing your desk. Registrars show the xn-- form in paperwork because it is the form on record. Browsers usually show the Unicode form because it is the form people can read, but switch to the Punycode form in some security views. Support teams pass the ASCII form back and forth because it survives any keyboard and any mail client. Knowing that the two are the same name turns a confusing string into a simple translation task.
How the encoding works, label by label
A domain is a row of labels separated by dots, and Punycode is applied per label, not to the whole domain at once. The rule is simple to state: a label that contains non-ASCII characters is encoded, and the encoded result is marked with the xn-- prefix so that software knows how to read it. A label made of plain ASCII letters is left exactly as it is.
Take shop.bücher.de. It has two labels before the ending. The label shop contains nothing special, so it passes through unchanged. The label bücher contains an accented character, so it is encoded and becomes xn--bcher-kva. The full stored form is shop.xn--bcher-kva.de. When a resolver or browser meets the xn-- prefix, it decodes the rest of that label back to Unicode for display, and the visitor sees bücher again.
Two details of the system matter in practice. Domains are case-insensitive, so input is lowercased before conversion, matching how DNS treats it: BÜCHER.DE and bücher.de are the same name. And the encoding supports any Unicode letters that can legally appear in a label, across many scripts, while underscores and spaces are rejected outright, because domain names never allow them.
Why your browser sometimes shows the xn-- form
If the two forms are the same domain, why does the address bar occasionally insist on showing the unreadable one? Because some Unicode characters look like Latin letters, and a domain built from lookalike characters can imitate a well-known site. When a domain could be a lookalike spoof, for example by mixing scripts that resemble Latin letters, browsers show the Punycode form instead. Seeing xn-- in the address bar is a safety display choice by the browser, not a sign that you have landed on a different or broken address. The domain itself is the same; the browser is simply showing you the spelling it can vouch for.
How to convert a domain, step by step
- Open the Punycode Converter and type or paste a domain in either form. A full URL works too; only its domain is read.
- Read both forms side by side: the ASCII (Punycode) form and the Unicode form.
- Check the per-part table to see which labels are internationalized and which are plain ASCII.
- Copy the form you need with its Copy button, for a registrar form, a support reply or a configuration file.
Worked example: three conversions
The converter's own examples show the pattern at three scales. The German bookshop domain: bücher.de converts to xn--bcher-kva.de. The city name with the same accented letter: münchen.de converts to xn--mnchen-3ya.de. And a name from a script with no Latin letters at all: the Japanese domain 日本.jp converts to xn--wgv71a.jp. In each case the ending, .de or .jp, is plain ASCII and passes through untouched, because only the label carrying non-ASCII characters is encoded. Converting any of the three xn-- results back returns the original Unicode name exactly, which is the check to run whenever a string from paperwork needs to be trusted.
Limits worth knowing
Punycode has hard size limits. Each label may be at most 63 characters after encoding, and a full domain at most 253. Encoded labels grow longer than the names people type, so a long internationalized name can hit the label limit sooner than expected. The converter enforces both limits and explains if a name exceeds them, rather than handing you a string that would fail elsewhere.
The most important limit is about meaning, not size. A successful conversion does not mean a name is registrable. Registries restrict which scripts and combinations they allow, for example mixing scripts inside one label, and those rules are the registry's, not the encoding's. The converter answers the translation question: what is this name in the other spelling? Whether you may register or use the name is a separate question, answered by the registry.
The tool also expects a full domain with a dot, because Punycode in practice applies to domain labels. To convert a single word, add the ending, like .de, first.
Common mistakes
- Treating the xn-- form as a different or broken domain. It is the same name in its stored spelling. Convert it before concluding anything about it.
- Trying to convert a bare word. The converter needs a full domain with a dot. Add the ending and the conversion works.
- Assuming a converted name can be registered. Conversion proves the encoding is valid, nothing more. Registries restrict scripts and combinations, so availability is a separate check.
- Worrying about capital letters. Domains are case-insensitive and input is lowercased before conversion, so capitalization never changes the result.
- Pasting text with spaces or underscores. Both are rejected, because domain names never allow them. What looks like a converter error is the domain rules being enforced.
FAQs
Why does my browser address bar sometimes show the xn-- form? Browsers show Punycode when a domain could be a lookalike spoof, for example mixing scripts that resemble Latin letters. It is a safety display choice; the domain itself is the same.
What does the xn-- prefix mean? It marks the label as Punycode-encoded. When a resolver or browser sees xn--, it decodes the rest of the label back to Unicode for display.
Can I convert just one word, without a domain ending? The tool expects a full domain with a dot, because Punycode in practice applies to domain labels. Add the ending, like .de, to convert a name.
Which characters are supported? Any Unicode letters that can legally appear in a label: accented Latin, Greek, Cyrillic, Arabic, Chinese, Japanese and more. Underscores and spaces are rejected, as domain names never allow them.
Does a successful conversion mean the name can be registered? No. A successful conversion only means the encoding is valid. Registries restrict which scripts and combinations they allow, for example mixing scripts in one label, so check with the registry before relying on a name.
Conclusion
Punycode is a translation layer, not a second internet: people type Unicode, DNS stores ASCII, and the xn-- prefix marks the labels that were encoded to cross between them. Once that is clear, the strange string in the paperwork stops being a mystery and becomes a ten-second check with the Punycode Converter. The same respect for what browsers will and will not let a page do shapes our guide to opening many URLs at once in your browser. For more guides in this series, see our URL and Link Tools guides.