Punycode / IDN Converter
Convert an internationalized domain name (IDN) into the Punycode (xn--) form that DNS uses. Useful for accented domains and for comparing lookalike addresses.
Punycode
—
Why a domain with an accent turns into xn--
DNS was designed back when nobody pictured a domain written in Japanese or Russian. It only understands ASCII letters, digits and hyphens. For "café.com.br" to work anyway, there is IDNA: before the name goes out on the wire, it gets translated into an equivalent ASCII form, always starting with xn--. That is why café.com.br becomes xn--caf-dma.com.br and ПРИМЕР.РФ becomes xn--e1afmkfd.xn--p1ai.
Here you type the domain the way a person sees it and get back the form the name servers actually use. The conversion is done by the browser itself, with the same IDNA implementation it applies when you type an address in the bar — normalization included, which lowercases and folds equivalent characters before encoding. Each label between dots is encoded on its own, and labels that are already ASCII pass through untouched.
The road here runs one way: paste an xn-- and you get the same xn-- back, because that already is the ASCII form. Where it earns its keep is in filling fields that reject accented characters — certificate SANs, zone records, firewall allowlists, SPF configuration — and in comparing lookalike domains, since two names that look identical on screen can have completely different punycode forms.
Frequently asked questions
Can I convert an xn-- name back to the accented version?
Why did the result come out in lowercase?
Does this help spot a fake domain?
Related Tools
Punycode Encoder/Decoder
Convert IDN domains (with accents or non-ASCII characters) to Punycode (xn--...) and back. Useful for registering international domains and validating emails. Everything in your browser.
Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Instant bidirectional conversion.
5-Band Resistor Color Code
Find the value of a 5-band resistor from its color code: three digits, a multiplier and tolerance. Result in ohms, with the tolerance as a percentage.
CSV to Markdown Table
Convert CSV to a Markdown table ready for READMEs, docs and Wikis. Auto-detects separator (comma, semicolon or tab) and supports per-column alignment. Everything in your browser.
LESS to CSS Converter
Strips LESS @variables and // comments producing approximate CSS suitable for visual checking.
Measurements Converter
Convert between units of length, mass, temperature, area, volume and speed. Instant result in the browser.