Skip to main content
Yoryantra
← Back to Tools

Punycode Converter

Convert IDN hostnames between readable Unicode and ASCII form with label-level validation.

Paste Unicode domains like mañana.com, Punycode domains like xn--maana-pta.com, full URLs, emails, or one value per line.

Options

Converts international domain labels to xn-- Punycode and decodes xn-- labels back to readable Unicode. Review IDN domains carefully before use.

Output

Converted Punycode output will appear here.
Punycode conversion happens directly in your browser. Your domains, URLs, and email addresses are not uploaded to a server.

Converting International Domain Names to Punycode

Punycode is the reversible ASCII encoding defined by RFC 3492. Domain-name processing adds another layer: IDNA decides which Unicode labels are acceptable and how they are mapped before an xn-- label is produced. Raw Punycode and a usable IDN hostname are therefore not interchangeable concepts.

Unicode-to-ASCII conversion here goes through the browser URL host parser so IDNA processing happens before the ASCII hostname is returned. For a full URL, only the hostname is transformed while the path, query, and fragment remain separate URL components; this is different from percent-encoding those components. Decoding an xn-- label still exposes the underlying Punycode string, then round-trips it through that host parser to flag suspicious or non-canonical labels.

Review IDN Domains Carefully

International domain names are useful, but visually similar characters from different scripts can be confusing. For example, letters from Latin, Cyrillic, Greek, and other scripts may look similar even when they are different characters.

An xn-- result does not prove that a name is safe, registrable, or visually unambiguous. Registry policy, browser display rules, script mixing, and look-alike characters remain separate checks.

Encoding reference: RFC 3492 — Punycode. IDNA processing updates that foundation through the IDNA2008 specifications.

Example Punycode Conversion

Unicode:  mañana.com
Punycode: xn--maana-pta.com