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.
| Label | ASCII form | Scripts | What the page finds |
|---|
The non-ASCII characters
| Character | Code point | Script | Looks like |
|---|
Examples
| Name | ASCII form | What the page finds |
|---|---|---|
bücher.example | xn--bcher-kva.example | One script: Latin. |
аррӏе.example | xn--80ak6aa92e.example | Every letter of the first label is Cyrillic, and every one looks like an ASCII letter: it can pass for apple.example. |
pаypal.example | xn--pypal-4ve.example | The second letter is a Cyrillic a in a Latin word: mixed scripts. |
例え.テスト | xn--r8jz45g.xn--zckzah | Han, Hiragana and Katakana: one writing system, Japanese. |
xn--example-.com | xn--example-.com | Decodes 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:
- Mixed scripts. Unicode's test (UTS #39, version 18.0, section 5.1) takes the scripts each character may belong to, and keeps only the scripts that all the characters share. If none is left, the label is mixed-script. Digits, hyphens and other characters common to all scripts count for every script. Some writing systems use several scripts together, so the test adds them:
| A character in | also counts for |
|---|---|
| Han (Hani) | Han with Bopomofo, Traditional Han with Latin, Japanese, Korean |
| Hiragana or Katakana | Japanese |
| Hangul | Korean |
| Bopomofo | Han with Bopomofo |
| Latin | Traditional Han with Latin |
- ASCII lookalikes. Unicode's list of confusable characters (confusables.txt, version 18.0) maps characters to the ones they can be taken for, such as Cyrillic
аto Latina. When every character of a label is ASCII or looks like ASCII, the label can pass for an ASCII name, and the page says which:аррӏе, all Cyrillic, reads as apple. In a label with ASCII letters, it lists the characters that look like ASCII ones.
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
- Which characters a name may hold at all, by the tables of RFC 5892; your browser applies its own rules, and the page reports when it refuses a name.
- The rules for labels in right-to-left scripts such as Arabic and Hebrew (RFC 5893). The page notes when a label has right-to-left characters.
- The rules of each registry, which may allow fewer characters than IDNA does.
- The part of an email address before the @.
Sources
- Punycode: RFC 3492. A-labels, U-labels, fake A-labels and visually similar characters: RFC 5890 (sections 2.3.1, 2.3.2 and 4.4). Right-to-left labels: RFC 5893. Label and name lengths: RFC 1035.
- The test for mixed scripts: Unicode Technical Standard #39, Unicode Security Mechanisms, version 18.0.0 (revision 34, 2026-08-27), section 5.1.
- Scripts, right-to-left characters, invisible characters and confusables: the Unicode 18.0 data files Scripts.txt, ScriptExtensions.txt, PropertyValueAliases.txt, DerivedBidiClass.txt, DerivedCoreProperties.txt and confusables.txt, from the Unicode Consortium's unicodetools repository at commit 725fb60, under the Unicode License v3. The page's data file is made from them.
- The examples were checked with another program's Punycode encoder.
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
-
SMTP status code lookup
Read a bounce such as 550 5.7.1 or 421 4.4.2: the reply code and the enhanced code by class, subject and detail.
-
Email header analyzer
Paste message headers: each hop and its delay, SPF, DKIM and DMARC results, and Microsoft 365's SCL, BCL and SFV in words.
-
AADSTS error code lookup
Look up AADSTS50126, AADSTS700016 or any other Microsoft Entra sign-in error, alone or in a pasted message.
-
JWT and access token decoder
Read the claims of a Microsoft Entra access or ID token, with exp, iat and nbf as dates, in your browser.
-
dsregcmd /status reader
Paste the output of dsregcmd /status: the join state, each field in words, and the values that point at a problem.
-
Intune and Autopilot error codes
App install codes such as 0x87D1041C, MDM enrollment errors such as 0x8018000A, and Autopilot import errors 806 and 808.
-
Safe Links and URL Defense decoder
See the address inside a Microsoft Safe Links or Proofpoint URL Defense link as plain text, without opening it.
-
SPF and DMARC record builder
Build SPF and DMARC records, or paste one to see what each part does.
-
DKIM record checker
Check a DKIM key record: key type and length, flags and mistakes, with a long key split into 255-character strings.
-
DMARC report viewer
Open DMARC aggregate reports (.xml, .gz or .zip) in your browser: senders, counts, and SPF and DKIM alignment.
-
MTA-STS and TLS-RPT builder
Build the MTA-STS and TLS-RPT records and the policy file, or paste one to read it.