🌐
Punycode Encoder/Decoder
100% LocalConvert internationalized domain names to/from Punycode.
Punycode Encoder/Decoder
Try:
This tool runs entirely in your browser. Your input is never uploaded, logged, or sent to AllDevToolsHub or anyone else, and it keeps working offline once the page has loaded.
Paste a Unicode domain to convert to Punycode, or paste a Punycode domain (starting with xn--) to decode.
Overview
What is Punycode Encoder/Decoder?
Encode Unicode domain names to their Punycode (xn--) equivalents and decode them back, essential for internationalized domain names with multi-script examples.
FAQ
Frequently Asked Questions
Reference
Technical Deep Dive
Punycode Encoder/Decoder
Encode Unicode domain names to their Punycode (xn--) equivalents and decode them back. Essential for working with internationalized domain names (IDN). Includes examples for various language domains.
Spec-Compliant
Follows the RFC or de-facto encoding rules, no custom dialects, no surprises.
Lossless Round-Trip
Encode then decode and you get back exactly what you put in, byte for byte.
Handles Edge Cases
Unicode, padding, invalid input, surfaced clearly instead of silently mangling output.
01 IDN Transformation Matrix
| Unicode Form (U-label) | ASCII Form (A-label) | Language / Category | Prefix Status |
|---|---|---|---|
münchen.de | xn--mnchen-3ya.de | German (Umlaut) | ACE (xn--) |
例え.jp | xn--r8jz45g.jp | Japanese (Kanji) | ACE (xn--) |
αβγ.com | xn--mxacd.com | Greek | ACE (xn--) |
🍕.ws | xn--vi8h.ws | Emoji | ACE (xn--) |
google.com | google.com | Latin (Basic) | None |
02 Domain Resolution Workflow
1
Normalization
The Unicode input is normalized and case-folded to prevent spoofing via similar-looking codepoints within a script.
2
Bootstring Encoding
The algorithm separates basic ASCII characters and encodes non-basic codepoints into a variable-base offset string.
3
ACE Labeling
The ASCII-Compatible Encoding (ACE) prefix
xn-- is prepended to the encoded label to identify it as a Punycode string for DNS.
You Might Also Need
RJRahul JalavadiyaFounder & Lead Engineer
Last reviewed 2026-07-29