Punycode Converter

Encode and decode Internationalized Domain Names (IDN) to and from ASCII Punycode.

0 chars

About Punycode Converter — Detailed Guide

The Punycode Converter implements RFC 3492 to translate Internationalized Domain Names (IDNs) containing Unicode characters into DNS-compatible ASCII strings prefixed with xn-- and vice versa.

It helps developers configure DNS zones and TLS certificates for non-ASCII domains and assists security analysts in inspecting suspicious xn-- links for IDN homograph attacks—all locally in the browser.

#punycode #idn #domain #encode #decode

Key Features & Capabilities

  • RFC 3492 compliant encoding and decoding for multi-label domain names
  • Handles mixed ASCII and Unicode labels cleanly per DNS segment
  • Useful for verifying IDN homograph spoofing attempts
  • 100% client-side execution with instant output

How to Use

  1. 1

    Select Encode (Unicode to Punycode) or Decode (Punycode to Unicode).

  2. 2

    Paste a Unicode domain name or an xn-- ASCII domain.

  3. 3

    Copy the converted domain string for DNS, TLS, or security inspection.

Common Use Cases

  • → Preparing xn-- ASCII domain entries for DNS records, Nginx virtual hosts, and SSL certs
  • → Decoding xn-- domains in phishing emails to spot lookalike Cyrillic or Greek homoglyphs
  • → Testing URL parsers and validation logic against IDN edge cases

Related Tools

Frequently Asked Questions & Privacy

Why do Unicode domains convert to strings starting with xn--?

Core DNS infrastructure only supports ASCII hostnames, so RFC 3492 encodes Unicode labels into ASCII using the xn-- prefix.

Can multi-level subdomains be converted?

Yes, each dot-separated domain label is processed independently according to the IDNA specification.