Your files stay on your device

# Punycode and IDN converter

Convert Unicode hostnames to xn-- labels and back, with warnings for lookalike characters.
DomainOptionsCopy result

## Labels, prefixes, and round trips

A domain splits into labels at each dot, and each label converts on its own. A non-ASCII label gets the xn-- prefix followed by a Punycode string. For example, münchen becomes xn--mnchen-3ya. Labels that are already plain ASCII pass through unchanged.

## Lookalike characters across scripts

Cyrillic а (U+0430) and Latin a (U+0061) look nearly identical, yet they are different characters with different codes. A label that mixes scripts can imitate another name. When a link looks unfamiliar, check each character rather than trusting the glyphs.

## More encoding tools

- [URL encoder](/encoding/url-encoder)
- [HTML entities](/encoding/html-entities)
[All encoding tools](/encoding)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/encoding/punycode
Markdown version: https://nutter.tools/encoding/punycode.md
Plain-text version: https://nutter.tools/encoding/punycode.txt
Agent index: https://nutter.tools/llms.txt

