AI Tools Free

Punycode Converter

Convert internationalized domain names (IDN) between Unicode text and ASCII Compatible Encoding (xn-- Punycode) label by label in your browser.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Your result
Enter your details

Result will appear here

How Punycode (RFC 3492 Bootstring) Domain Conversion Works

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.

Unicode and ASCII hostname representations connected label by label.
Illustration of the Punycode Converter workflow.

Unicode to xn-- Punycode Domain Conversion Examples

Reference examples showing how internationalized scripts and accented characters map to RFC 3492 Punycode labels.

Unicode HostnameASCII Punycode (ACE) FormScript / LanguageEncoding Breakdown
münich.examplexn--mnich-kva.exampleGerman (Latin umlaut ü)ASCII base 'mnich-' + insertion code 'kva'
café.examplexn--caf-dma.exampleFrench (Latin acute é)ASCII base 'caf-' + insertion code 'dma'
例え.テストxn--r8jz45g.xn--zckzahJapanese (Kanji + Katakana)Each dot-separated label gets its own xn-- prefix
xn--cup-j63b7j.jpcup... (decoded Japanese IDN)Japanese (.jp IDN)Mixes ASCII 'cup-' with encoded Japanese characters
中文.examplexn--fiq228c.exampleSimplified Chinese (Han)Pure non-ASCII label encoded without extra delimiter
bücher.chxn--bcher-kva.chGerman (.ch ccTLD)First label encoded; ASCII TLD '.ch' stays unchanged

How to Encode or Decode a Punycode Hostname

Enter a standalone hostname without URL schemes or paths and select your conversion direction.

Enter the bare hostname (without https:// or path)

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.

Hostname
Punycode Converter native input panel with the actual Hostname, Direction settings used for this example.
Configure Hostname, Direction; select Calculate.

Select Unicode to ASCII or ASCII to Unicode

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.

xn--fiqs8s.example
Punycode Converter actual result panel showing xn--fiqs8s.example.
Submitted result: xn--fiqs8s.example. ASCII form: xn--fiqs8s.example.

Run the conversion and compare both forms

Select Calculate and review the converted output alongside the normalized ASCII and Unicode round-trip check before copying.

Output and export
Punycode Converter actual output and export region and result note after submitting the pictured settings.
Review the actual Punycode Converter output and visible Copy result controls. Read the result note.

When to Use a Punycode Domain Decoder & Encoder

Inspect internationalized hostnames across DNS zone files, SSL/TLS certificates, and security logs.

Decode xn-- hostnames from DNS logs or email headers

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.

Developer input and configuration represented by document cards.
Prepare the input. Concept illustration.

Prepare IDN domains for DNS zone files and CNAME/A records

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

A developer example flowing from input to reviewed output.
Inspect an example. Concept illustration.

Audit multi-label subdomains label by label

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).

Developer output handed to the next stage of a workflow.
Use the result in your workflow. Concept illustration.

Reading Punycode Output and IDN Security Notes

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.

A developer result reviewed alongside its source.
Review the returned output. Concept illustration.

Why a Hostname Input Might Be Rejected

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.

Input format and assumptions reviewed for a developer task.
Check format and assumptions. Concept illustration.

Punycode Converter: Frequently Asked Questions

Answers about using Punycode Converter and understanding its results.

What does the xn-- prefix mean in a domain name?

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.

How do I decode an xn-- Punycode domain back to readable text?

Paste the xn-- hostname (for example, xn--mnich-kva.example) into the Hostname input, set Direction to ASCII to Unicode, and select Calculate.

Why can I not paste a full URL with https:// or a slash?

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.

Does a valid Punycode conversion mean a domain is registered or safe?

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.

Convert a hostname to ASCII or Unicode

Choose another tool for your next calculation, conversion, or text task.

Convert a hostname