Toolvist

Punycode Converter

Convert internationalized (IDN) domains to and from ASCII Punycode.

ASCII length: —

Free IDN / Punycode Converter

Convert internationalized domain names (IDNs) that use non-ASCII characters — like münchen.de or 日本語.jp — to their ASCII Punycode form (xn--mnchen-3ya.de) and back. Punycode is how the DNS system represents unicode domains.

The generated host often needs a URL path as well, which the Slug Generator produces, and the Domain IP Lookup confirms it resolves. For transliterating non-Latin text generally, the Pinyin / Romaji Converter is the sibling tool.

How to use the Punycode

  1. 1 Paste a domain name in either its internationalised or its ASCII form.
  2. 2 The tool converts in the direction it detects; use the swap control to force one.
  3. 3 Check the preview, which shows both representations.
  4. 4 Copy the form you need.

Where the conversion is needed

The practical need arises whenever a Unicode domain touches a system built for ASCII. A configuration file that will not accept a non-Latin hostname, a certificate request that requires the encoded form, a command-line tool that mangles the characters — all are common and all are resolved by converting rather than by arguing with the tool.

It also matters for comparison. Two domains that look identical may differ in an invisible way, and converting both to the encoded form makes the difference visible. That is the reliable way to verify that a domain is what it appears to be rather than a near-identical imitation.

Things to watch

  • Keep the same form everywhere in a configuration, since mixing them produces failures that read as typos.
  • Use the encoded form in DNS records and certificates.
  • Display the Unicode form to users, which is what their browser shows anyway.
  • Check hyphen placement on labels — the encoding produces strings that begin with a specific prefix.

What is Punycode?

The Domain Name System only allows ASCII characters, so browsers translate unicode labels into an ASCII-compatible encoding called Punycode, prefixed with xn--. This tool lets you see exactly what a domain looks like at the DNS level.

Frequently asked questions

Why does an internationalised domain need converting at all?

Because the domain system was built on a character set that cannot represent most of the world's scripts. The solution is to encode a Unicode domain into that restricted set while keeping it resolvable, and to define a rule that the two forms are equivalent. The conversion is what lets a domain written in a local script work in infrastructure that predates it.

Which form should I publish?

The Unicode form in anything a person reads, and the ASCII form wherever there are technical constraints. Browsers display the Unicode form for registered domains, which is what visitors expect. Databases, configuration files, and certificate tooling often require the encoded form, and mixing the two in one place is a common source of errors that look like a typo.

Can it be used to spoof a domain?

The encoding has been used to build lookalike domains, since some characters in other scripts resemble Latin letters closely. Browsers counter this by displaying the encoded form for domains that mix scripts in suspicious ways, which is why a domain may appear as gibberish in the address bar. The countermeasure is deliberate and worth leaving in place.

Related SEO & Webmaster Tools

Browse all SEO & Webmaster Tools →

You might also need

Tools from other categories that people pair with the Punycode:

Browse the full tool directory →