Encoding & Decoding

Punycode and Internationalized Domain Converter

Convert between internationalized domain names (IDN) and Punycode (xn--). Useful for non-ASCII domain lookup, DNS setup, and mail server configuration. Conversion stays in the browser.

PunycodeIDNDomain

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Look up or configure the xn-- form of an IDN
  • Compare ASCII domain forms used in DNS and certificates
  • Check how mail systems write internationalized domains

How to use

  1. Enter an internationalized domain or xn-- value
  2. Choose the conversion direction
  3. Copy the result

Example input and output

Domain

中文.com

Punycode

xn--fiq228c.com

FAQ

What is Punycode?

Punycode encodes internationalized domain labels as ASCII (RFC 3492). In DNS it usually appears with an xn-- prefix.

Does it convert hostnames or full URLs?

It processes domain labels: non-ASCII labels encode to xn--, and xn-- labels decode to Unicode. That fits hostnames and multi-level domains.

Tools

Related tools

Continue with another translated tool for a nearby task.

URL Encode/Decode

URL Encoder and Decoder

Available

Percent-encode or decode text with encodeURIComponent or encodeURI. Useful for query values, non-ASCII paths, and API debugging. All processing stays in the browser.

URL Encoding Decoding

Unicode Converter

Unicode Escape Converter

Available

Convert between plain text and Unicode escape sequences (\uXXXX). Useful for inspecting API payloads, config files, and frontend strings. Conversion stays in the browser.

Unicode Escape Encoding

URL Parser

URL Parser and Query Parameter Splitter

Available

Parse a URL into protocol, host, port, path, query, and hash fields, and list each query parameter name and value. Useful for debugging API URLs and share links.

URL Parser Developer