⚡ DevToolKit

Punycode / IDN Converter

Convert Unicode domain names (like 中文.com) to ASCII Punycode (xn--...). Useful for DNS, SSL, and debugging IDN-related issues.

Tip: Enter just the domain name (e.g., "中文.com"), not a full URL.

Punycode is used to represent Unicode characters in DNS hostnames. It starts with "xn--" followed by ASCII-safe encoding.

How to use

  1. Paste a Unicode domain (or a Punycode xn-- domain).
  2. Choose the conversion direction: Unicode → Punycode or Punycode → Unicode.
  3. Copy the result for use in DNS records, SSL certificates, or debugging.

FAQ

Can I paste a full URL?

This tool is intended for domain names. If you paste a full URL, extract the hostname first for best results.

Is Punycode the same as URL encoding?

No. Punycode encodes Unicode for DNS hostnames. URL encoding (percent-encoding) is for URL components.