Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

Punycode / IDN Converter

Turn Unicode domain labels like münchen.de into their ASCII-compatible xn-- form for DNS, or decode xn-- labels back to Unicode. Implemented in pure JavaScript following RFC 3492.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What the Punycode converter does

Type a domain and the tool converts it in the direction you choose: Unicode labels such as münchen become the ASCII-compatible form münchen with an xn-- prefix for DNS, and xn-- labels decode back to their Unicode form. Labels that are already plain ASCII pass through unchanged, so mixed domains work.

Checking a Unicode domain before you register it

Use it when you are considering an internationalised domain and want to see the exact ASCII string a registrar or DNS provider will store, or when you receive an xn-- link and want to know which characters it really spells before you click. Seeing the decoded form also exposes lookalike characters used for homograph tricks.

Choosing the direction

The Direction option switches between Unicode to ASCII and ASCII to Unicode. In the first direction each non-ASCII label is encoded and prefixed; in the second, only labels starting with xn-- are decoded, and anything else is left as written, which keeps the round trip predictable.

What it will not validate

This is the RFC 3492 code conversion and nothing more. Label length limits, the IDNA case folding and normalisation steps, and script-mixing or spoofing checks are not applied, so the output is the raw Punycode form rather than a validated registrable domain. An invalid encoded label raises a clear error.

Conversion stays on your device

The algorithm runs in pure JavaScript inside the page, with no DNS lookup and no network request. The domains you type are never transmitted, and the converter works offline.

Questions

Is every label validated for length?

No — this tool performs the RFC 3492 code conversion only. DNS label length limits (63 bytes) and whole-domain validation are the responsibility of your registrar or DNS tooling.

Why do some labels keep their Unicode form?

Any label that is already plain ASCII is passed through untouched, so example.com stays as it is next to the encoded xn-- label. In the other direction, only labels that begin with xn-- are decoded, and an invalid encoded label raises an error instead of guessing.

Does it apply IDNA mapping?

No. It converts code points with the RFC 3492 algorithm but does not perform the IDNA case folding, NFC normalisation or script-mixing checks that browsers run before a lookup. Treat the result as the raw Punycode form, not as a validated registrable domain.

See category