
ASCII to Text Converter
Validate whitespace- or comma-separated integer codes from 0 to 127 and map them to ASCII characters.
Open toolConvert internationalized domain names (IDN) between Unicode text and ASCII Compatible Encoding (xn-- Punycode) label by label in your browser.
Enter the inputs, then select Calculate.
Result will appear here
Because the Domain Name System (DNS) wire protocol historically uses ASCII characters (A-Z, 0-9, and hyphen), non-ASCII domain labels are translated into ASCII Compatible Encoding (ACE) using the xn-- prefix.
The converter splits a hostname on dots (.), normalizes each label, retains basic ASCII characters followed by a delimiter hyphen, and encodes non-ASCII code points into base-36 generalized variable-length integers prefixed with xn--.
Each ASCII label must be 1 to 63 characters long (up to 253 characters for the full hostname without a trailing root dot) and cannot start or end with a hyphen.

Reference examples showing how internationalized scripts and accented characters map to RFC 3492 Punycode labels.
| Unicode Hostname | ASCII Punycode (ACE) Form | Script / Language | Encoding Breakdown |
|---|---|---|---|
| münich.example | xn--mnich-kva.example | German (Latin umlaut ü) | ASCII base 'mnich-' + insertion code 'kva' |
| café.example | xn--caf-dma.example | French (Latin acute é) | ASCII base 'caf-' + insertion code 'dma' |
| 例え.テスト | xn--r8jz45g.xn--zckzah | Japanese (Kanji + Katakana) | Each dot-separated label gets its own xn-- prefix |
| xn--cup-j63b7j.jp | cup... (decoded Japanese IDN) | Japanese (.jp IDN) | Mixes ASCII 'cup-' with encoded Japanese characters |
| 中文.example | xn--fiq228c.example | Simplified Chinese (Han) | Pure non-ASCII label encoded without extra delimiter |
| bücher.ch | xn--bcher-kva.ch | German (.ch ccTLD) | First label encoded; ASCII TLD '.ch' stays unchanged |
Enter a standalone hostname without URL schemes or paths and select your conversion direction.
Paste the domain or subdomain by itself (such as münich.example or xn--mnich-kva.example). Strip any http://, https://, port number, slash path, query string, or @ email prefix first.
Choose Unicode to ASCII to generate xn-- labels for DNS records and TLS configs, or choose ASCII to Unicode to decode an xn-- string into readable script.
Select Calculate and review the converted output alongside the normalized ASCII and Unicode round-trip check before copying.
Inspect internationalized hostnames across DNS zone files, SSL/TLS certificates, and security logs.
When server logs, WHOIS records, or DMARC reports show an unfamiliar label like xn--mnich-kva.example or xn--cup-j63b7j.jp, switch Direction to ASCII to Unicode to reveal the underlying characters.

Many DNS providers, reverse proxies, and certificate CSR generators require the ASCII Compatible Encoding (xn--) form rather than raw UTF-8 characters.

In a multi-label hostname such as shop.bücher.example, only labels containing non-ASCII characters receive the xn-- prefix (shop.xn--bcher-kva.example).

Understand RFC 3492 label length checks and why decoding alone does not prove domain trust.
The converter verifies that every resulting ASCII label fits within the 63-octet DNS limit and that the complete hostname stays within 253 characters. It also performs a round-trip check so you can compare both forms side by side.
Keep in mind that Punycode conversion is purely algorithmic. Visually similar characters from different scripts (such as Cyrillic 'а' U+0430 vs Latin 'a' U+0061) produce valid xn-- strings, so always inspect the script context when reviewing unfamiliar links.

Check common formatting mistakes when pasting URLs into a hostname converter.
Do not paste a full URL such as https://münich.example/path. Remove the protocol scheme, slashes, port, and query parameters so only the dot-separated hostname remains.
Labels cannot start or end with a hyphen (-), cannot contain spaces, and cannot have corrupted xn-- bootstring sequences that fail Unicode decoding.


Validate whitespace- or comma-separated integer codes from 0 to 127 and map them to ASCII characters.
Open tool
Convert UTF-8 strings to and from RFC 4648 Base64URL format (- and _ alphabet) with optional '=' padding control in your browser.
Open toolEncode Unicode text to Base64 or decode UTF-8 Base64 text.
Open toolChoose another tool for your next calculation, conversion, or text task.
Convert CSS pixels to rem units using your root font size.
Open tool
Escape regular-expression metacharacters for a JavaScript regex literal pattern.
Open tool
Convert hex, decimal, or binary byte arrays to UTF-8 strings with strict validation, or encode text into hex, decimal, and JSON byte arrays.
Open tool
Convert an HTML fragment to JSX with React attribute names, style objects and self-closing elements.
Open toolAnswers about using Punycode Converter and understanding its results.
The four-character prefix xn-- is the official ASCII Compatible Encoding (ACE) marker defined in RFC 3490 (IDNA). It tells browsers and DNS tools that the label uses RFC 3492 Punycode to represent non-ASCII Unicode characters.
Paste the xn-- hostname (for example, xn--mnich-kva.example) into the Hostname input, set Direction to ASCII to Unicode, and select Calculate.
Punycode only applies to individual DNS hostname labels separated by dots. URL schemes (https://), ports (:443), and URL paths (/page) use percent-encoding (URL encoding) rather than Punycode.
No. Punycode is a character-encoding algorithm, not a WHOIS lookup or phishing filter. It shows what characters are encoded in the hostname, but does not verify domain ownership or registry policy compliance.
Choose another tool for your next calculation, conversion, or text task.