Skip to main content
AllDevToolsHub
🌐

Punycode Encoder/Decoder

100% Local

Convert 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

ENCODERS & DECODERS

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.dexn--mnchen-3ya.deGerman (Umlaut)ACE (xn--)
例え.jpxn--r8jz45g.jpJapanese (Kanji)ACE (xn--)
αβγ.comxn--mxacd.comGreekACE (xn--)
🍕.wsxn--vi8h.wsEmojiACE (xn--)
google.comgoogle.comLatin (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