Workflow Tools Control Yard

Home / Email and M365

Punycode converter and lookalike checker

Paste a domain name, an email address or a web address. The page writes the name in Unicode and in its xn-- form, and marks any label that mixes scripts or whose letters look like ASCII ones: the tricks of lookalike domains. Everything is worked out in your browser.

Examples

NameASCII formWhat the page finds
bücher.examplexn--bcher-kva.exampleOne script: Latin.
аррӏе.examplexn--80ak6aa92e.exampleEvery letter of the first label is Cyrillic, and every one looks like an ASCII letter: it can pass for apple.example.
pаypal.examplexn--pypal-4ve.exampleThe second letter is a Cyrillic a in a Latin word: mixed scripts.
例え.テストxn--r8jz45g.xn--zckzahHan, Hiragana and Katakana: one writing system, Japanese.
xn--example-.comxn--example-.comDecodes to plain ASCII: a fake A-label, not a valid name.

How a name becomes xn--

Host names keep to ASCII letters, digits and hyphens (RFC 5890 calls such labels LDH labels), so a name with other characters travels in an ASCII form, one label at a time: the parts between the dots. A label that is already ASCII stays as it is. Any other label is put in lower case and in Unicode's NFC form, then encoded with Punycode (RFC 3492) and given the prefix xn--. Punycode writes the ASCII characters of the label first, then a hyphen if there were any, then the other characters as a run of letters and digits that says which characters go where. So bücher becomes xn--bcher-kva.

RFC 5890 calls the two forms the U-label (Unicode) and the A-label (ASCII). An A-label has to decode to a valid U-label with at least one non-ASCII character: a label that starts with xn-- but does not, such as one that decodes to plain ASCII, is a fake A-label. A label is at most 63 characters in its ASCII form, and a whole name at most 255 octets (RFC 1035), which is 253 characters written out.

A browser does more than that before it converts a name in a web address: it maps some characters to others and drops some. The page converts the name the way your browser does, and says so when it cannot.

How the page spots lookalikes

RFC 5890 suggests showing when a name mixes scripts, such as a Greek omicron among Latin letters, and warns that some names written wholly in Greek or Cyrillic can be confused with Latin ones. The page makes two checks on each label:

A character inalso counts for
Han (Hani)Han with Bopomofo, Traditional Han with Latin, Japanese, Korean
Hiragana or KatakanaJapanese
HangulKorean
BopomofoHan with Bopomofo
LatinTraditional Han with Latin

A label that passes both checks is no proof that a name is safe. RFC 5890 says there are no complete technical solutions to confusable characters: compare the name with the one you expect, letter by letter.

What the page does not check

Sources

The Unicode data: copyright and permission notice

The data file of this page is made from the Unicode data files named above, which come under this licence:

UNICODE LICENSE V3

COPYRIGHT AND PERMISSION NOTICE

Copyright (c) 2001-2024 Unicode, Inc.

NOTICE TO USER: Carefully read the following legal agreement. BY
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.

Permission is hereby granted, free of charge, to any person obtaining a
copy of data files and any associated documentation (the "Data Files") or
software and any associated documentation (the "Software") to deal in the
Data Files or Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, and/or sell
copies of the Data Files or Software, and to permit persons to whom the
Data Files or Software are furnished to do so, provided that either (a)
this copyright and permission notice appear with all copies of the Data
Files or Software, or (b) this copyright and permission notice appear in
associated Documentation.

THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
THIRD PARTY RIGHTS.

IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
FILES OR SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in these Data Files or Software without prior written
authorization of the copyright holder.

SPDX-License-Identifier: Unicode-3.0

More Email and M365 tools