Unicode Inspector
Find hidden characters, escape code points and normalise Unicode.
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool inspects and transforms Unicode text. It finds hidden and zero-width characters, escapes text to code points and back, and normalises text into a chosen Unicode form.
Find hidden characters
Zero-width spaces, non-breaking spaces, byte-order marks and bidirectional marks are invisible but still count in a string comparison. They are a common cause of a test that fails on a value that looks identical to the expected one. This mode lists every such character with its position and code point, so you can see what is really in the string.
Normalisation
The same visible character can be stored in more than one way, for example an accented letter as a single code point or as a base letter plus a combining accent. Normalising to NFC or NFD gives a consistent representation, so two strings that look the same also compare the same.
Common use cases
- Diagnosing a locator or assertion that fails on a seemingly identical string.
- Escaping non-ASCII text for a code literal, or reading escaped text back.
- Normalising input before comparing it in a test.
Frequently asked questions
- Why does my assertion fail on identical-looking strings?
- Often a zero-width or non-breaking character is hiding in one of them. The Find hidden characters mode lists every such character and its position.
- What does normalisation do?
- It rewrites text into a consistent Unicode form, so two strings that look the same also compare the same.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.