Dev TooloraLocal dev tools

> Encoders

Punycode Converter

Convert internationalized domain names between Unicode and xn-- Punycode and flag mixed-script homograph labels.

Runs locallyWorks offline
Back to results
Input

Source data

Mode
Output

Result

Your result will appear here.

Tool guide

About this tool.

  • DNS only carries ASCII letters, digits and hyphens. Internationalized domain names (IDN) such as münchen.de are therefore stored as Punycode (RFC 3492): each non-ASCII label becomes the prefix xn-- followed by an ASCII encoding, for example xn--mnchen-3ya.
  • Browsers show the Unicode form and send the xn-- form. Everything runs locally in your browser or editor.

  • Each label goes through the same IDNA mapping as a URL in your browser or editor before encoding: letters are lowercased, compatibility forms are normalized and invisible characters such as the soft hyphen are removed. The ideographic full stop, fullwidth full stop and halfwidth ideographic full stop are treated as dots. A label that mapping does not allow is an error. Labels that are already ASCII are only lowercased.
  • A label that mixes letters from Latin, Cyrillic and Greek is flagged. Such names can imitate another domain, for example a Cyrillic a inside a Latin word, and are a common phishing trick.

Pick To ASCII or To Unicode and paste one domain per line.

In To ASCII mode every label with non-ASCII characters is converted to its xn-- form. In To Unicode mode xn-- labels are decoded and other labels are only lowercased.

The table lists the input, the output and a warning when a label mixes Latin, Cyrillic and Greek letters.

The summary shows the number of domains and, when present, the number of warnings. Errors name the line, for example Line 1: label exceeds 63 characters.

  • münchen.de → xn--mnchen-3ya.de
  • Bücher.DE → xn--bcher-kva.de
  • xn--bcher-kva.example → bücher.example
  • user@münchen.de → [email protected]

  • A converted domain may be at most 253 characters long.
  • Input is limited to 1,000 lines.
  • A converted label may be at most 63 characters long.
  • The conversion does not check registry rules or whether a domain is registered.

FAQ

Questions about Punycode Converter

How do I convert several domains at once?

Enter one domain per line and pick To ASCII or To Unicode. Blank lines are skipped. Each line becomes one row in the table with its input, output and any warning.

Can I paste an email address?

The text before the last @ is kept as it is and only the domain part is converted, so an email address such as user@münchen.de becomes [email protected].

Can I paste a full URL?

No. Enter only the host, such as münchen.de. A value with a scheme, port, path or spaces, such as https://münchen.de/path, is an error that names the line, because those characters cannot be part of a domain name.

What does a homograph warning mean?

It means the label mixes Latin, Cyrillic or Greek letters. Lookalike characters from another script can make a fake domain look genuine, so check the name before you trust it.

Why is an xn-- label rejected?

The label after xn-- is not valid Punycode, or it does not encode back to the same text, or it holds only ASCII characters. The error names the line and the label.

Continue with

URL ParserBreak a URL into protocol, host, path and query params.Email NormalizerNormalize and inspect an email address.Unicode NormalizerNormalize text to NFC, NFD, NFKC or NFKD and see exactly which graphemes and code points changed.