DevKits

Punycode Converter — IDN Domains ↔ xn-- ASCII (RFC 3492)

Convert internationalized (IDN) domain names to and from their ASCII xn-- form. Follows RFC 3492 exactly — the same encoding your browser and DNS resolver use. 100% local.

Last updated:

Comments
8 chars · 1 lines

Frequently Asked Questions

What is Punycode?

Punycode (RFC 3492) is the encoding that lets non-ASCII domain names (like café.com or 中国.cn) travel through DNS, which is ASCII-only. Browsers convert the Unicode form into its 'xn--…' Punycode form before doing a DNS lookup.

Why do I see xn-- in a URL bar sometimes?

Most modern browsers show the xn-- form when a domain mixes scripts (e.g. Latin + Cyrillic) that could be used for a homograph phishing attack. Displaying the raw ASCII form makes the deception visible.

Which characters are safe in a domain label?

IDNA 2008 restricts each label to a curated set of Unicode letters, digits, and hyphens. This tool encodes any input that syntactically fits Punycode; ICANN / registry policy on which strings are actually registerable is out of scope here.

Related Tools