IDN ⇄ ASCII · RFC 3492

Punycode Converter

Turn international domain names like münchen.de into their xn-- form and back. Paste one or a thousand. Instant, free, and nothing leaves your browser.

auto-detects direction · one item per line
Try:
Results appear here as you type.

🔒 100% client-side. Your domains are never uploaded or logged.

01

Both directions

Unicode → Punycode and xn-- → Unicode. Direction is detected per line automatically.

02

Bulk & smart input

Paste lists, full URLs or email addresses. Only the domain part is converted; paths and ports stay intact.

03

Lookalike warnings

Flags mixed alphabets and Cyrillic/Greek letters that imitate Latin ones, a classic phishing trick.

What is Punycode?

The domain name system was built for plain ASCII: the letters a–z, the digits 0–9 and the hyphen. Punycode (defined in RFC 3492) is the clever encoding that lets the rest of the world's characters, like ü, ñ, ø, 中 or я, live inside those limits.

Each part of a domain (a label) that contains non-ASCII characters is converted separately and given the prefix xn--. Browsers show you the pretty Unicode version, while servers, DNS, SSL certificates and many email systems use the ASCII version behind the scenes.

That's why you need a converter when you set up DNS records, configure a web server, order a certificate or check what a suspicious link really points to.

# 1. keep the ASCII letters
bücher → bcher
# 2. add a hyphen, encode where ü goes
bcher-kva
# 3. add the xn-- prefix
xn--bcher-kva

Punycode examples

LanguageUnicodePunycode

FAQ

Why does my domain start with xn--?

The xn-- prefix marks a label that has been encoded with Punycode. For example münchen.de is stored in the DNS as xn--mnchen-3ya.de. Both point to exactly the same website.

Which version should I use in DNS and server settings?

Use the Punycode (xn--) version in DNS records, web server configs (nginx, Apache), SSL certificate requests and most hosting control panels. Use the Unicode version in marketing, on business cards and anywhere people read it.

What is a homograph (lookalike) attack?

Attackers register domains that use characters from other alphabets which look identical to Latin letters. For example, a domain written fully in Cyrillic can look exactly like a famous brand. Converting a link to Punycode reveals the truth, and this tool also warns when a label mixes alphabets or consists only of lookalike characters.

Are uppercase letters allowed?

Domain names are case-insensitive. Before encoding, the converter lowercases and normalizes the text (Unicode NFC), the same way browsers do, so MÜNCHEN.de and münchen.de give the same result.

Is there a length limit?

Yes. Each encoded label can be at most 63 characters, including the xn-- prefix, and the whole domain at most 253. The converter warns you if a label is too long.

Is this converter private?

Completely. The conversion runs in JavaScript in your own browser. Nothing you paste is sent to any server.

Copied!