Find invisible characters
Find and strip zero-width spaces, bidi controls, soft hyphens and odd whitespace hiding in text, with every one located by position and code point.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in Text you did not write yourself
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back What is hiding in it, and a clean copy
What it does
Paste text that looks right and behaves wrong. Every character that renders as nothing — or as a space that is not a space — is listed with its code point and position, and the cleaned text is ready to copy.
This page does the work itself. Your text is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Where do these characters come from?
Copying out of a PDF, a word processor or a web page, mostly. A non-breaking space instead of a space, a soft hyphen left over from justified text, a zero-width joiner from an emoji sequence, or a byte order mark at the very start of a file that was saved as UTF-8 with a signature. Each one is invisible and each one breaks an exact string comparison.
Why does my code fail on text that looks identical?
Because it is not identical. U+00A0 and U+0020 both render as a blank and are different characters, so a lookup, a JSON key or an equality check fails while the two strings look the same on screen. This is also how a CSV column silently stops matching after a round trip through a spreadsheet.
Are bidi control characters dangerous?
They can be. U+202E and its relatives reorder the way text is displayed without changing what it contains, which is the basis of the Trojan Source technique — source code that reads one way to a reviewer and compiles another way. Any of them turning up in a file you did not expect them in is worth a second look.
Worth knowing
If this page found a bidirectional control in something you did not write, the two links below are the background you want before deciding it is harmless.
-
Trojan Source: Invisible Vulnerabilities
The paper that named the technique: source code that reads one way to a reviewer and compiles another way, using nothing but Unicode's own reordering rules.
-
Unicode UAX #9 — Bidirectional Algorithm
What those characters are actually specified to do. Dense, but it is the authority rather than a summary of one.
Nothing on this list is paid for, and none of it is an affiliate link. These are plain URLs — no referral code, no tracking parameter, nothing that tells anyone you came from here.
More text tools
-
Text
Markdown → HTML
Convert Markdown to clean HTML in your browser, with a live preview.
-
Text
Word counter
Live word, character, sentence and paragraph counts with reading time, plus the platform limits your text fits or busts.
-
Text
Case converter
Convert text to camelCase, PascalCase, snake_case, kebab-case, Title Case and more, all at once.
-
Text
Text diff
Compare two blocks of text and see exactly which lines were added, removed or changed.
-
Text
Fix text encoding
Turn José back into José, and read a file under every encoding at once.