String Inspector

Invisible Character Detector – Find Zero-Width & Hidden Unicode

String Inspector reveals characters you cannot see: zero-width spaces, byte order marks (BOM), bidirectional override characters used in Trojan Source attacks, non-breaking and other unusual spaces, smart quotes, control characters, and homoglyphs that look like Latin letters but are not. It also shows exact lengths in graphemes, code points, UTF-16 units, and UTF-8 bytes, so you can see why a string is longer than it looks or why two strings that look the same do not compare equal.

How to use

  1. Paste the suspicious text into the input area.
  2. Look at the highlighted characters and the per-character table with code points and UTF-8 / UTF-16 bytes.
  3. Compare the length counters (graphemes, code points, JS length, bytes) to spot hidden content.
  4. Use the clean-up options to remove invisible characters, convert unusual spaces, replace smart quotes, map homoglyphs to Latin, or normalize line endings, then copy the result.

FAQ

How do I find a zero-width space in text?

Paste the text into String Inspector. Zero-width spaces (U+200B), zero-width joiners, and other invisible characters are highlighted and listed with their code points, and you can remove them with one click.

What is a Trojan Source attack?

Trojan Source uses Unicode bidirectional control characters (such as U+202E RIGHT-TO-LEFT OVERRIDE) to make source code display differently from how a compiler reads it. String Inspector flags these bidi characters so you can review or remove them.

Why does my string length differ from what I see?

Emoji, combining accents, and hidden characters make the visible character count (graphemes) differ from code points, JavaScript length (UTF-16 units), and byte length. The inspector shows all of these side by side.

Is my text uploaded anywhere?

No. The tool runs entirely in your browser. Your input is processed locally and is never uploaded to a server.

Reveal hidden and confusing characters in text: zero-width spaces, BOM, bidirectional overrides (Trojan Source), homoglyphs, non-breaking spaces, smart quotes, and control characters. Shows code points, UTF-8/UTF-16 bytes, length metrics, and cleans or escapes the text.

Revealed · 6 hidden/suspicious Click a character for details


Characters (graphemes)
53
Code points
58
JS length (UTF-16)
61
UTF-8 bytes
86
UTF-16 bytes
122
Words
6
Lines
3
Non-ASCII
14
Contains Unicode NFC: no NFKC: no Line endings: LF ×1, CRLF ×1 Scripts: Latin, Cyrillic

Findings

⚠ Bidirectional override / isolate ×2

Can visually reorder text (Trojan Source, CVE-2021-42574). Dangerous in source code and filenames.

⚠ Homoglyphs (Latin lookalikes) ×1

Cyrillic/Greek/fullwidth letters that look like Latin. Common in phishing domains and spoofed identifiers.

Zero-width characters ×1

Invisible characters that break string equality, search, and copy-paste of code or passwords.

Byte Order Mark (BOM) ×1

U+FEFF often breaks shebangs, JSON/CSV parsers, and shell scripts when it appears at the start of a file.

Non-standard spaces ×1

No-break, thin, em, ideographic and other spaces that look like a normal space but are not.

Smart punctuation ×3

Curly quotes, en/em dashes, ellipsis — usually from word processors. Breaks code and shell commands.

Mixed line endings ×2

1 LF, 1 CRLF, 0 CR.

Trailing whitespace ×1

Spaces or tabs at the end of lines.

Not NFC normalized ×1

Visually identical text may compare unequal (e.g. é as e + combining accent).

Mixed scripts ×2

Text mixes Latin, Cyrillic — a common sign of homoglyph spoofing.

Clean · 5 chars removed
password = “s3crеt” — café evil.exe 👩🏽‍💻
next line 
Escape as
\uFEFFpassword\u200B = \u201Cs3cr\u0435t\u201D\u00A0\u2014 cafe\u0301 \u202Eevil.exe\u202C \u{1F469}\u{1F3FD}\u200D\u{1F4BB}\r\nnext line \n

Code Points

#CharCode PointName / CategoryUTF-8UTF-16
0[FEFF]U+FEFFZERO WIDTH NO-BREAK SPACE (BOM)EF BB BFFEFF
1pU+0070LATIN SMALL LETTER P700070
2aU+0061LATIN SMALL LETTER A610061
3sU+0073LATIN SMALL LETTER S730073
4sU+0073LATIN SMALL LETTER S730073
5wU+0077LATIN SMALL LETTER W770077
6oU+006FLATIN SMALL LETTER O6F006F
7rU+0072LATIN SMALL LETTER R720072
8dU+0064LATIN SMALL LETTER D640064
9[200B]U+200BZERO WIDTH SPACEE2 80 8B200B
10·U+0020SPACE200020
11=U+003Dsymbol3D003D
12·U+0020SPACE200020
13“U+201CLEFT DOUBLE QUOTATION MARKE2 80 9C201C
14sU+0073LATIN SMALL LETTER S730073
153U+0033DIGIT 3330033
16cU+0063LATIN SMALL LETTER C630063
17rU+0072LATIN SMALL LETTER R720072
18еU+0435CYRILLIC LETTER (looks like Latin "e")D0 B50435
19tU+0074LATIN SMALL LETTER T740074
20”U+201DRIGHT DOUBLE QUOTATION MARKE2 80 9D201D
21[00A0]U+00A0NO-BREAK SPACEC2 A000A0
22—U+2014EM DASHE2 80 942014
23·U+0020SPACE200020
24cU+0063LATIN SMALL LETTER C630063
25aU+0061LATIN SMALL LETTER A610061
26fU+0066LATIN SMALL LETTER F660066
27eU+0065LATIN SMALL LETTER E650065
28◌́U+0301combiningCC 810301
29·U+0020SPACE200020
30[202E]U+202ERIGHT-TO-LEFT OVERRIDEE2 80 AE202E
31eU+0065LATIN SMALL LETTER E650065
32vU+0076LATIN SMALL LETTER V760076
33iU+0069LATIN SMALL LETTER I690069
34lU+006CLATIN SMALL LETTER L6C006C
35.U+002Epunctuation2E002E
36eU+0065LATIN SMALL LETTER E650065
37xU+0078LATIN SMALL LETTER X780078
38eU+0065LATIN SMALL LETTER E650065
39[202C]U+202CPOP DIRECTIONAL FORMATTINGE2 80 AC202C
40·U+0020SPACE200020
41👩U+1F469emojiF0 9F 91 A9D83D DC69
42🏽U+1F3FDsymbolF0 9F 8F BDD83C DFFD
43[200D]U+200DZERO WIDTH JOINERE2 80 8D200D
44💻U+1F4BBemojiF0 9F 92 BBD83D DCBB
45␍U+000DCARRIAGE RETURN (CR)0D000D
46↵U+000ALINE FEED (LF)0A000A
47nU+006ELATIN SMALL LETTER N6E006E
48eU+0065LATIN SMALL LETTER E650065
49xU+0078LATIN SMALL LETTER X780078
50tU+0074LATIN SMALL LETTER T740074
51·U+0020SPACE200020
52lU+006CLATIN SMALL LETTER L6C006C
53iU+0069LATIN SMALL LETTER I690069
54nU+006ELATIN SMALL LETTER N6E006E
55eU+0065LATIN SMALL LETTER E650065
56·U+0020SPACE200020
57↵U+000ALINE FEED (LF)0A000A