Punycode Encoder/Decoder

Updated: 2026-07-12
Ad Space - Top (728x90)

Punycode Encode/Decode

Free online Punycode encoder/decoder. Convert between Unicode (e.g. 中文.cn) and Punycode (xn--fiq228c.cn). Client-side processing, instant results.

Examples:
Waiting for conversion...
Ad Space - Bottom (728x90)

📖 How to Use

Enter text: Input a Unicode string or Punycode string.

Select mode: Encode converts Unicode to Punycode, Decode converts back.

Get result: Click Convert for instant results. All processing is done locally.

❓ FAQ

What is Punycode?

Punycode is an encoding that converts Unicode characters into ASCII for DNS compatibility. IDNs like "中文.cn" are stored as "xn--fiq228c.cn" in DNS.

When do I need Punycode?

When registering international domains, configuring DNS, or setting up servers. Developers debugging IDN features also use it frequently.

Is Punycode reversible?

Yes, fully reversible. Unicode encoded to Punycode can be accurately decoded back. This tool supports both directions.

Why convert Chinese domains to Punycode?

DNS originally only supports ASCII characters. Punycode (RFC 3492) converts Unicode domains to ASCII format for DNS compatibility.