Skip to main content

Punycode Converter

Convert internationalized domain names to Punycode (xn--) and back to Unicode.

Input
0 chars | 0 bytes
Encode
Output
0 chars | 0 bytes

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

    Convert Automatically

    The tool detects the input type and converts in the appropriate direction — Unicode to Punycode or Punycode to Unicode.

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

Max File Size
Up to 100 MB
Privacy
Files deleted after about an hour
Price
Free, no signup
Processing
100% client-side
Your data never leaves your browser — all processing is local.No account or signup required.Free with no usage limits.

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.

FileCrank Punycode Converter encodes and decodes internationalized domain names (IDNs) between Unicode and ASCII-compatible Punycode format, entirely in your browser.

Advertisement

Ad