Punycode / IDN Converter

Encode Unicode domain names to Punycode (xn--) or decode them back. RFC 3492 compliant.

Last reviewed: April 2026

New to this tool? Click here for instructions

Unicode Domain
Punycode
Enter a domain name to convert.

How to Use the Punycode Converter

To use the Punycode Converter, follow these steps:

1. Choose a direction: "Unicode → Punycode" converts an IDN domain to its xn-- form; "Punycode → Unicode" reverses it.

2. Enter your domain - e.g., münchen.de or xn--mnchen-3ya.de.

3. See the result - both forms are shown side by side with immediate feedback.

When to Use the Punycode Converter in Real Workflows

Use the Punycode Converter when working with internationalized domain names (IDN) that need to be converted to ASCII-compatible format.

This tool is useful for developers, administrators, and anyone who needs to handle IDN domains in their workflows.

How the Punycode Converter Works

Punycode uses a clever algorithm to convert non-ASCII labels to a compact ASCII representation prefixed with xn--.

The algorithm first extracts the basic ASCII characters and places them at the start of the encoded output, then encodes the non-ASCII characters using a variable-length integer scheme called "generalized variable-length integers."

Tips, Edge Cases, and Limitations

Punycode can be misused in homograph attacks, so always verify the Punycode form of unfamiliar domains before clicking.

Use our URL Encoder alongside this tool for full URL analysis.

Frequently Asked Questions

Punycode is an encoding syntax (RFC 3492) that converts Unicode domain names to an ASCII-compatible format.
The "xn--" prefix is the ACE (ASCII Compatible Encoding) prefix defined by the IDNA standard.
No, Punycode is a specific encoding syntax for internationalized domain names, while URL encoding is a different encoding scheme used for other purposes.
Attackers use Punycode to create homograph attacks, where a domain name looks identical to a legitimate domain name, but is actually a different domain name encoded in Punycode.
This tool handles both full URLs and domains, but it is primarily designed for converting IDN domains to Punycode and back.