Toolsky

Free Online Tools & Utilities for Every Task.

Punycode to Unicode

Convert Punycode to Unicode.

Every so often you meet a domain name that looks like a typing accident: something beginning xn-- followed by letters and hyphens, such as xn--mnchen-3ya.de. That is not a broken address. It is an internationalized domain name wearing its travelling clothes — punycode, the encoding that squeezes non-English characters into the plain ASCII the domain name system understands. This punycode to Unicode converter translates those encoded labels back into the readable characters they represent.

Why Punycode Exists at All

The domain name system was built in an era when names could contain only basic Latin letters, digits and hyphens. That is a poor fit for a world that writes in hundreds of scripts — German umlauts, Arabic, Chinese, Cyrillic, Hindi and thousands more. Rather than rebuild DNS, engineers designed punycode, standardised in RFC 3492: a method of encoding a Unicode string into a short ASCII form. In domain names, the encoded form is marked with the prefix xn--, producing what is technically called an A-label.

Browsers hide this machinery when they can, displaying the friendly Unicode name in the address bar. But the encoded form leaks out constantly: in copied links, email headers, certificate records, log files, DNS tools and WHOIS results. When it does, a decoder is how you find out what the address actually says.

What This Converter Is For

  • Decoding full domains or single labels: paste an xn-- name and read the real characters.
  • Verifying links before you trust them: decode a domain from an email or message to see what it genuinely spells.
  • Checking your own international domains: confirm the encoded form in your registrar or DNS records matches the name you registered.
  • Reading technical records: certificates, logs and DNS output frequently show the ASCII form; decoding restores legibility.
  • Debugging registrations: mismatches between the name you intended and the label that was registered become visible immediately.

Suspicious lookalike domains deserve a closer look with the IDN punycode detector, and names going the other direction belong to the Unicode to punycode converter.

How to Decode a Punycode Domain

  1. Copy the encoded domain or label exactly as it appears, including the xn-- prefix.
  2. Paste it into the converter.
  3. Run the conversion.
  4. Read the Unicode result — the name as its owner intends it to be seen.
  5. Compare it character by character with the name you expected, especially if the link arrived in an unsolicited message.

Example: Two Famous Encodings, Decoded

The city of Munich's German name produces the classic demonstration. Encoded, it is xn--mnchen-3ya.de; decoded, it reads münchen.de — the ü folded into ASCII, with the trailing segment after the hyphen describing where the special character sits and what it is. A second standard example, xn--bcher-kva.ch, decodes to bücher.ch — "books" in German. Notice what punycode preserves: the plain ASCII letters stay visible in order (mnchen, bcher), and the encoded tail carries the missing characters and their positions. That design keeps labels short and vaguely recognisable even before decoding — but only the decoded form tells you the truth.

A Security Reason to Decode, Not Just Curiosity

Punycode has a shadow side worth understanding: homograph attacks. Some characters in different scripts look identical on screen — a Cyrillic "а" and a Latin "a" are indistinguishable in most fonts. An attacker can register a domain that decodes to something visually identical to a well-known brand while being a completely different name underneath. Modern browsers defend against the crudest versions by showing the xn-- form when a name mixes scripts suspiciously, which means seeing an encoded domain in the wild is sometimes a warning sign in itself.

Decoding is therefore a verification habit, not a rubber stamp: the decoded text may look right while still being a lookalike built from foreign characters. Check the decoded name, consider whether the script mixture makes sense for the organisation it claims to be, and if a link arrived unexpectedly, navigate to the service directly rather than through it. Encoding questions around ordinary web addresses, meanwhile, are the territory of the URL encoder — a different mechanism entirely.

Frequently Asked Questions

What does the xn-- prefix mean?

It marks an ASCII label as a punycode-encoded internationalized domain name. Browsers and DNS tools recognise the prefix as the signal to decode the rest of the label into Unicode.

Is punycode the same as URL percent-encoding?

No. Percent-encoding (like %C3%BC for ü) is used inside URLs and works byte by byte. Punycode is a separate algorithm designed specifically for domain labels, producing the xn-- form. They solve different problems and are not interchangeable.

Why did my browser show the xn-- form instead of the real name?

Browsers display the encoded form as a safety measure when a name looks like a potential lookalike — for example, when it mixes scripts in unusual ways. It is the browser being cautious, not an error.

Can I decode the domain part of an email address?

Yes. The part after the @ sign is a domain name and follows the same rules. Decode it to see the mail server's real, readable name — a useful check on unfamiliar senders.

What if the decoded output looks like nonsense?

Usually the input was mistyped or truncated — a single wrong character changes the result entirely, because the encoding packs character positions into the label. Copy the encoded name again exactly, including every hyphen.

Does punycode work for every language?

Yes. It can encode any Unicode string, which covers every writing system in use, from Arabic and Chinese to emoji-free brand names in accented Latin scripts.

Can I convert a normal domain with no xn-- in it?

There is nothing to decode in a plain ASCII domain — it is already its own final form. Only labels carrying the xn-- prefix contain hidden Unicode.

Reading the Web in Its Own Languages

The internet's names were never really going to stay English-only. Punycode is the quiet mechanism that lets them travel, and a decoder is how you read what actually arrived — whether you are checking a certificate, untangling a log, or deciding whether a link deserves your click.