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.
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
Select Encode (Unicode to Punycode) or Decode (Punycode to Unicode).
- 2
Paste a Unicode domain name or an xn-- ASCII domain.
- 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
Base64 Encoder/Decoder
Encode and decode text or files with Base64 and Base64URL securely in your browser.
URL Encoder/Decoder
Encode and decode URLs or components with support for parameter parsing and percent-encoding.
JWT Decoder
Decode JWT header and payload, convert timestamps to human-readable time, and highlight expiration.
HTML Entity Encoder
Encode and decode HTML entities and special characters to prevent XSS and formatting issues.
Hex Encoder/Decoder
Convert text to hexadecimal bytes and decode hex strings back into readable text.
Unicode Converter
Convert characters to Unicode code points, escape sequences, and HTML entities.
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.