Punycode Converter
Convert internationalized domain names to Punycode (xn--) and back to Unicode.
The internet's domain name system was designed around ASCII characters, but users around the world want to register domains in Arabic, Chinese, Cyrillic, Japanese, and hundreds of other scripts. Punycode is the algorithm that bridges these two worlds, encoding Unicode domain labels into the ASCII-compatible `xn--` prefix format that DNS can handle without modification.
This tool converts human-readable internationalized domain names — like `münchen.de` or `日本語.jp` — to their Punycode equivalents and back. It is useful for web developers implementing IDN support, security researchers investigating homograph attacks, DNS administrators checking zone files, and anyone debugging why an internationalized domain is not resolving as expected.
How to Convert Punycode Online
- 1
Enter a Domain Name
Enter a Unicode domain (e.g. münchen.de) or a Punycode domain (e.g. xn--mnchen-3ya.de).
- 2
Convert Automatically
The tool detects the input type and converts in the appropriate direction — Unicode to Punycode or Punycode to Unicode.
- 3
Verify the Result
Use the output to verify DNS records, certificates, or email routing. Correctly handles multi-label domains and mixed ASCII/non-ASCII labels.
How Punycode Encoding Works
Punycode (RFC 3492) is a form of bootstring encoding — it encodes a sequence of Unicode code points into a restricted set of ASCII characters. The algorithm first copies all ASCII characters from the input to the output unchanged, then appends a hyphen delimiter, and finally encodes the positions and code points of the non-ASCII characters as a sequence of base-36 digits using a variable-length delta encoding. The result is prefixed with `xn--` to mark it as an ACE (ASCII Compatible Encoding) label.
For a full internationalized domain name, each label (the dot-separated components) is encoded independently. `münchen.de` becomes `mnchen-3ya.de` because only the label `münchen` is internationalized. Security researchers have demonstrated that Punycode makes homograph attacks possible — `аррle.com` using Cyrillic characters looks identical to `apple.com` — which browsers now mitigate by displaying the Punycode form when the label mixes scripts.
Why Use FileCrank Punycode Converter?
- ✓ Converts Unicode domains to xn-- Punycode and back.
- ✓ Handles multi-label domains and mixed ASCII/non-ASCII labels.
- ✓ Useful for detecting homograph phishing attacks.
- ✓ Runs entirely in your browser — no data sent to any server.
Features & Specs
Frequently Asked Questions
What is Punycode and why does it exist?
The DNS system originally only supported ASCII. Punycode (RFC 3492) allows domain names with non-ASCII characters — Arabic, Chinese, Hebrew, accented Latin — by encoding them as ASCII strings starting with xn--.
How do I know if a domain name uses Punycode?
Punycode labels start with xn--. If you see a domain like xn--bcher-kva.example in a certificate or DNS record, it is a Punycode-encoded IDN. Decode it with this tool to see the Unicode equivalent.
Can Punycode be used for phishing?
Yes — this is a known homograph attack. Characters from different scripts that look identical produce different Punycode. This tool helps you verify that a Punycode string decodes to the domain you expect.
Does this tool support all Unicode scripts?
Yes. It handles any Unicode code point that can appear in an internationalized domain name, including Arabic, Chinese, Devanagari, Hebrew, Japanese, Thai, and all Latin extended characters.
Punycode Converter vs. Browser Address Bar vs. dig
Modern browsers convert IDNs automatically and can display either the Unicode or Punycode form, but they do not expose the intermediate encoding steps. The `dig` command resolves domain names but does not perform Punycode encoding itself. A dedicated Punycode converter is the right tool when you need to inspect the encoding explicitly — for DNS zone file authoring, IDN debugging, security research into homograph attacks, or verifying that a non-ASCII domain name will resolve correctly.
Related Tools
URL Encode / Decode
Percent-encode URLs for safe use in query strings, or decode encoded URLs back to plain text.
HTML Entities Encode / Decode
Encode special characters to HTML entities and decode HTML entities back to plain text.
Base64 Encode / Decode
Encode text or binary data to Base64 and decode Base64 strings back to plain text, instantly in your browser.
FileCrank Punycode Converter encodes and decodes internationalized domain names (IDNs) between Unicode and ASCII-compatible Punycode format, entirely in your browser.
Advertisement