Free Online Utility • Unicode Studio • Grapheme-Aware Engine

Convert Unicode to Punycode

Encode Internationalized Domain Names (IDNs) and Unicode strings into RFC 3492 Punycode (`xn--...`) ASCII format.

Reference & Unicode Spec Unicode 16.0
Bootstring encoding (RFC 3492): ASCII basics + "-" + variable-length deltas
IDN Mode lowercases labels & prepends "xn--" when non-ASCII
münchen.dexn--mnchen-3ya.de
日本語.jpxn--wgv71a119e.jp
café.comxn--caf-dma.com
RFC 3492 PUNYCODE
Encoded Punycode Output

        
100% client-side Unicode Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert Unicode to Punycode Works

Convert Unicode to Punycode implements the complete RFC 3492 Bootstring algorithm to convert Internationalized Domain Names (IDNs) and arbitrary Unicode labels into DNS-safe ASCII (`xn--...`).

The Unicode Standard assigns unique scalar code points from U+0000 through U+10FFFF across 17 planes, encompassing over 150,000 characters spanning world scripts, mathematical operators, technical symbols, combining diacritics, and multi-codepoint emoji sequences. Every operation in this utility runs completely client-side inside your browser using native code-point and grapheme-cluster algorithms so surrogate pairs, ZWJ emoji, and combining marks stay intact with zero server latency.

RFC 3492 Bootstring Algorithm

1. Copy all basic ASCII chars in order; append "-" if any existed
2. Encode non-ASCII code points in sorted order via generalized variable-length integers with adaptive bias (damp=700, skew=38)
3. Prepend "xn--" (ACE prefix) for DNS labels

Because DNS hostnames historically only permit ASCII letters, digits, and hyphens, IDNA uses Punycode so domains like `münchen.de` resolve cleanly as `xn--mnchen-3ya.de`.

Worked Reference Examples

InputOutputTechnical Note
münchen.dexn--mnchen-3ya.deGerman IDN
日本語.jpxn--wgv71a119e.jpJapanese IDN
café.example.comxn--caf-dma.example.comPer-label ACE

Practical Developer & Internationalization Workflows

DNS & SSL Certificate Setup

Generate exact `xn--` hostnames for DNS records, NGINX configs, and TLS SAN entries.

Homograph Phishing Analysis

Inspect the true Punycode form of lookalike Unicode domain names.

Compatibility, Edge Cases & Best Practices

Multi-line input is supported so you can batch-encode lists of IDN domains in one pass.

Copy verified outputs directly to your clipboard or export them as UTF-8 text files ready for web apps, REST APIs, database migrations, typography tests, and localization pipelines.

Frequently Asked Questions

What does the xn-- prefix mean?
`xn--` is the official IDNA ASCII Compatible Encoding (ACE) prefix signaling to browsers and DNS resolvers that the label is Punycode-encoded Unicode.
Does this handle emoji domains like 🚀.ws?
Yes — RFC 3492 handles all Unicode code points up to U+10FFFF including emoji.
When should I use Raw Bootstring mode?
Use Raw mode when testing low-level RFC 3492 test vectors without domain-label splitting or `xn--` prefixes.