Text
Invisible character detector
Find and remove zero-width spaces, hidden Unicode, and control characters.
Free to use · Runs in your browser · No signup
This tool works in your browser. Enable JavaScript to select files and create your download.
How to use Invisible character detector
- Paste text that behaves strangely, such as code, URLs, or copied form entries.
- Review each hidden character with its line, column, and Unicode code point.
- Copy the cleaned text with the hidden characters removed.
What you need
Nothing to upload. Type or paste directly into the tool; results update as you go.
Your result
A list of hidden characters and a cleaned copy of your text.
Before you start
Some invisible characters are intentional, such as joiners inside emoji or right-to-left marks in Arabic and Hebrew text. Review the list before removing everything.
Why invisible characters cause problems
Text copied from websites, chat apps, PDFs, or AI tools can contain characters you can’t see. They make identical-looking words compare as different, break code and configuration files, stop search and spreadsheet formulas from matching, and can even reorder how code is displayed during review.
Example
admin vs admin
Both look the same, but the second contains U+200B (zero-width space)
between “ad” and “min”, so a password or username check fails.What it detects
- Zero-width characters: zero-width space, joiner, non-joiner, and the byte-order mark (U+FEFF).
- Bidirectional controls such as right-to-left override and isolates, used in “Trojan Source” attacks to disguise code.
- Special spaces: no-break, thin, hair, em/en spaces, and more.
- Soft hyphens, tag characters, and other control characters.
Cleaning text
The cleaned version removes the hidden characters. Special spaces are replaced with normal spaces by default so words don’t run together; turn that option off to remove them entirely.
Questions about Invisible character detector
Why does my CSV or JSON file have a strange first column name?
A byte-order mark (U+FEFF) at the start of the file is often the culprit. Paste the first line here to check, then remove it.
Are no-break spaces always a problem?
No. They’re used on purpose to keep things like “10 km” together. They cause trouble in code, data, and searches, which is why cleaning replaces them with normal spaces.
Is what I type sent anywhere?
No. The calculation runs in your browser, and the text or numbers you enter are not uploaded or stored.
Is it free? Do I need an account?
Yes, it’s free, and there’s no account or signup. FreeToolBench is supported by ads.