Whitespace Visualizer
Make invisible whitespace and formatting characters visible with Unicode labels, or clean text by converting non-breaking spaces to ordinary spaces and removing selected zero-width formatting characters. Zero-width joiners are preserved so emoji and joined scripts keep their shaping. All processing happens on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the Whitespace Visualizer shows
Paste text and every invisible formatting character is replaced with a labelled marker, such as [SPACE U+0020], [TAB U+0009], [LF U+000A] or [NBSP U+00A0]. Common Unicode spaces, C0 and C1 control characters, byte-order marks and several zero-width formatting controls are all identified by name and code point.
Finding the space that is not a space
This is the tool for the line that will not wrap or the string that refuses to equal itself: a non-breaking space, an en space or a zero-width space is invisible until you look. Pasting it here names the exact code point so you can find and replace it in the source.
Clean mode for tricky characters
Switch to clean and the tool converts non-breaking spaces to ordinary spaces and removes the zero-width formatting characters that hide inside text. The zero-width joiner is deliberately kept, because stripping it breaks emoji sequences and joined scripts in some languages.
How visualise and clean compare
Visualise labels each special character with its code point and keeps every byte; clean rewrites the text. So visualise is for diagnosis, while clean produces copy-paste-ready output you can paste back into your editor. Choose the mode for what you plan to do next.
Nothing is sent anywhere
The text is processed entirely in your browser, with no upload and no network use. Whether you are inspecting invisible characters in confidential config or cleaning a file with hidden formatting, it stays on your device and works offline.
Questions
Which characters are shown in visualization mode?
Spaces, tabs, common Unicode spaces, line endings, C0/C1 control characters, byte-order marks, and selected zero-width formatting characters are replaced with labels containing their Unicode code point.
What does clean mode change?
It converts non-breaking spaces to ordinary spaces and removes zero-width space, non-joiner, word joiner, byte-order mark, and several invisible formatting controls. Zero-width joiner is retained because it is needed for emoji sequences and shaping in some scripts.
Are my text or files uploaded?
No. The text is processed entirely in your browser and is not sent over the network.
Related tools
See categoryUnicode Code Point Explorer
Inspect every character code point, plane, and UTF-8/UTF-16 encodings in a table.
Remove Empty Lines
Strip blank and whitespace-only lines, collapse blank runs to one, or trim trailing blanks.
Find and Replace
Replace text by plain string, whole word, or regular expression, with optional case folding.
Add Line Numbers
Prefix every line with a running number, with configurable start, separator, zero-padding.