Punycode / IDN Converter
Convert internationalized domain names to and from their ASCII form.
- Recent results are kept in this browser's local storage until you clear them.
History kept on this device
Recent results are kept in this browser's local storage until you clear them. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
Input
Output
Per-label breakdown
| Label # | Unicode label | ASCII (xn--) label | ASCII length | Scripts & status |
|---|---|---|---|---|
| Enter a domain name above to inspect each dot-separated label. | ||||
What this tool does
Converts internationalized domain names (IDNs) and individual DNS labels between Unicode and their ASCII-Compatible Encoding (xn--, RFC 3492) form, breaks multi-label domain names into a per-label table, and flags labels that mix scripts from multiple writing systems.
What punycode.toASCII does and does not do
punycode.toASCIIsplits a domain name on IDNA dot separators (U+002E,U+3002,U+FF0E,U+FF61) and encodes any label containing non-ASCII code points with the RFC 3492 Bootstring algorithm prefixed byxn--.- Every encoded ASCII label must fit within the DNS wire limit of
63characters (RFC 1035), and everyxn--label must decode cleanly back to non-ASCII Unicode code points.
Mixed-script homograph detection
For each decoded label, the inspector probes Unicode script categories (such as Latin, Cyrillic, and Greek) via \p{Script=…} regular expressions. When a single label mixes characters from two or more distinct scripts (for example, Cyrillic U+0430 inside \u0430pple.com), the tool raises a warning banner and highlights the label row as a potential homograph spoofing vector.
Limits
Punycode conversion only. Full UTS-46 processing (case folding, character mapping, and the IDNA validity rules) is not performed, so a name this tool converts is not thereby a name a browser will accept. No confusables table.
- Maximum encoded label length:
63ASCII characters per label; maximum input size:16.0 MB.
Related tools
- Unicode Inspector (
/text/unicode) for inspecting individual code points, UTF-8 bytes, normalization forms, and invisible characters. - URL Encoder & Parser (
/text/url) for percent-encoding and parsing full URLs and hostnames. - String Escape / Unescape (
/text/escape) for escaping non-ASCII strings into JSON, JavaScript, or C escape sequences.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.