Punycode converter
Convert an internationalized domain name to Punycode (xn--) and back, and check each label for mixed scripts and look-alike letters used in homograph attacks.
Either form. A URL or an email address works too: only the host is used.
The result appears here.The result appears here.Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the punycode converter
- Paste a domain in either form, or a URL or an email address.
- Read the ASCII (Punycode) form and the Unicode form.
- Read the homograph check for any label that mixes scripts or copies Latin letters.
About this tool
DNS only carries ASCII letters, digits and hyphens. A domain with other characters, such as münchen.de, is stored in an ASCII form: each label that needs it is encoded with Punycode and prefixed with xn--, giving xn--mnchen-3ya.de. Browsers convert in both directions, so people see the readable form and the network sees the encoded one. This tool does the same conversion, following RFC 3492.
The readable form is where the danger is. Many alphabets have letters that look like Latin ones: the Cyrillic а, е, о, р and с are drawn the same as a, e, o, p and c in most fonts. A domain that swaps one of them in is a different domain that looks identical. This is the IDN homograph attack, used for phishing, and the encoded form is what gives it away.
So the tool checks every label. It flags a label that mixes scripts, such as Latin with Cyrillic, which real names almost never do, and a label made only of look-alike letters, and it names the characters. Browsers apply similar rules and show xn-- for suspicious names. The check is a set of rules that covers the common cases, not every confusable pair, so read the ASCII form when it matters.
Sources
Questions
An encoding that writes any Unicode string with only ASCII letters, digits and hyphens. In domain names each encoded label starts with xn--. It lets names in any language work with a DNS that was built for ASCII.
That label contains characters outside ASCII and is shown in its encoded form. Decode it to see what it says. Browsers show the xn-- form on purpose when a name looks suspicious, for example when it mixes alphabets.
Registering a domain that looks the same as a known one by using letters from another script, such as a Cyrillic а in place of a Latin a. The link looks right, and the site behind it belongs to the attacker.
Convert the domain to its ASCII form. A real Latin-only name stays the same, and a spoofed one turns into xn-- followed by unfamiliar text. Password managers also help: they match the real domain and will not fill a look-alike.