Unicode Character Inspector
Paste any text to list its code points, find zero-width spaces, look-alike letters and bidi tricks, compare normalisation forms and clean it up.
Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić
…
Jak to zrobić
- 1Paste the text
Type or paste the text, or add a single character by code point such as U+1F600.
- 2Read the counts
Compare graphemes, code points, UTF-16 units and UTF-8 bytes.
- 3Check the findings
Look at invisible, bidi and mixed-script warnings.
- 4Inspect characters
Tap any tile to see its name, category, encodings and escapes.
- 5Compare forms
Open Normalisation to see NFC, NFD, NFKC and NFKD.
- 6Clean and export
Choose clean-up rules, apply them, and download the cleaned text or the CSV of code points.
O tym narzędziu
Text that looks identical on screen can be very different underneath. The word café can be four code points or five, depending on whether the accent is part of the e or a separate combining mark. A zero-width space copied from a web page breaks a password, a search or a CSV import without showing up anywhere. A Cyrillic а inside paypal.com makes a convincing fake link, and a right-to-left override character can make a file called gnp.exe display as exe.png. Programmers meet the same problems in another form: a string whose length is 2 in JavaScript but 1 on screen, or a database column that rejects a value because UTF-8 needs four bytes for it. This inspector takes any text apart into code points and grapheme clusters, names every character, shows its general category, script and Unicode block, lists its UTF-8 and UTF-16 encodings, and highlights anything invisible, directional, combining or unusual.
Reading the character view
Each code point appears as a small tile with its hexadecimal number. Red tiles are hidden or risky characters: zero-width spaces and joiners, soft hyphens, byte order marks, bidi controls, unusual spaces such as the no-break space, control characters, variation selectors and tag characters. Blue tiles are combining marks that attach to the previous letter. Tap a tile to see its full details, including escapes for JavaScript, JSON, Python, CSS, HTML and URLs, each one copyable, and a button to delete just that code point from the text.
Counts that explain length bugs
Four numbers sit at the top: graphemes, which is what a reader sees as characters, code points, UTF-16 units, which is what JavaScript length and many databases count, and UTF-8 bytes, which is what storage and network limits use. An emoji with a skin tone is one grapheme, two code points, four UTF-16 units and eight bytes.
Findings
The findings panel counts each kind of flagged character and lists words that mix Latin, Greek and Cyrillic letters, the most common look-alike spoofing pattern. It also lists the scripts used by letters in the text.
Normalisation and clean up
The normalisation tab shows NFC, NFD, NFKC and NFKD side by side with code point and byte counts and whether each equals the input. The clean-up tab removes invisible characters while keeping the joiners inside emoji sequences, strips bidi controls and control characters, turns unusual spaces into normal ones, can remove accents, and then normalises to the form you pick. Apply the result to the text or download it.
Limits
Names for common, invisible and look-alike characters, Hangul syllables and CJK ideographs are built in; other names appear after you load the full Unicode 16 name list, 2.2 MB from the jsDelivr CDN. General category and script come from your browser's own Unicode tables, which can lag a version behind for brand-new characters. The look-alike check covers Latin, Greek and Cyrillic mixing only and is not a complete confusables analysis.
Przykład z rozwiązaniem
The sample text has 49 graphemes but 54 code points, 57 UTF-16 units and 86 UTF-8 bytes. The findings panel lists 2 invisible characters, a zero-width space after Café and the zero-width joiner inside the coder emoji, 2 bidi controls around gnp.exe, 1 unusual space (the no-break space between x and y) and 1 combining mark, the virama in the Bengali conjunct ক্ষ. It also flags pаypal because its second letter is U+0430 CYRILLIC SMALL LETTER A. The NFKC row shows file becoming file and Ⅻ becoming XII. With the default clean-up rules, 3 characters are removed (the zero-width space and both bidi controls), the emoji joiner is kept, and the no-break space becomes a normal space.
W skrócie
- Kategoria: Programowanie i dane
- Działa w przeglądarce, bez rejestracji i wysyłania.
- Wpisane informacje zostają na Twoim urządzeniu.
- Dostępne po angielsku.
- Treść ostatnio sprawdzona:
- Oficjalne źródło: Unicode 16.0 Character Database and UAX #15 normalization forms
Najczęstsze pytania
Why does JavaScript say my one-character string has length 2?
JavaScript counts UTF-16 units. Characters above U+FFFF, including most emoji, need two units called a surrogate pair. The inspector shows both counts side by side.
What is the difference between NFC and NFD?
NFC stores letters with accents as one composed code point where possible; NFD splits them into a base letter and combining marks. Both look the same, but they compare as different strings unless you normalise.
How do I find a zero-width space?
Paste the text and look for red tiles or the invisible count in the findings panel. The clean-up tab removes them in one step.
What is a bidi control and why is it risky?
Characters such as U+202E RIGHT-TO-LEFT OVERRIDE change the display order of text. They are used to disguise file extensions and, in source code, in Trojan Source attacks.
Will cleaning break emoji?
No. With Keep emoji joiners on, the zero-width joiner and variation selector inside sequences such as a family or a coder emoji are kept.
Is my text sent anywhere?
No. The analysis runs in your browser. Only the optional name list is downloaded, and your text is not part of that request.
