How to use the Unicode Character Inspector
- Paste your text.
- Check the table for each character's code point, bytes and type.
- Copy an escaped version for JavaScript, HTML, CSS or Python.
What does this tool do?
Invisible characters like zero-width spaces, non-breaking spaces and byte-order marks break code, searches and form validation without any visible sign. The inspector lists every code point and warns when hidden ones are present.
It also shows UTF-8 and UTF-16 encodings and can escape non-ASCII characters for source code.
Why use it?
- Finds invisible characters.
- Bytes and code points.
- Escape for four languages.
Use cases
- Find zero-width spaces breaking code or searches.
- Debug text that fails form validation.
- Get escape codes for emoji and symbols in source code.
Why two “café”s don't match
One is written with é (U+00E9, UTF-8 bytes C3 A9). The other is e followed by a combining accent (U+0301). They look identical but have different code points, so searches and comparisons fail.
Common mistakes
- Assuming every character is one byte.
- Copying code from documents that add non-breaking spaces or curly quotes.
- Leaving a byte-order mark at the start of CSV or JSON files.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
What is a zero-width space?
U+200B, an invisible character that can allow line breaks but often sneaks in when copying text.
What is a byte-order mark?
U+FEFF at the start of a file, which can confuse some programs.
How long is an emoji?
Often one code point and four UTF-8 bytes; some, like family emoji, combine several code points.
Content last updated . See how M2Toolkit works.