What is a whitespace visualizer?
A whitespace visualizer makes invisible characters visible. Spaces, tabs, line endings and Unicode characters with no width look identical or like nothing at all, yet they cause failed comparisons, broken indentation, parser errors and odd diffs.
Paste text and every space becomes a middle dot, every tab an arrow, and each line ending a symbol showing its type. Non-breaking, zero-width, soft-hyphen and other hidden characters are labelled. Counts summarise spaces, tabs, non-breaking spaces, invisible characters, lines with trailing spaces, the line-ending style and whether indentation mixes tabs and spaces.
How to use the Whitespace visualizer
1.Paste text or code
Anything that behaves strangely.
2.Read the markers
· for spaces, → for tabs, ¶ or ␍␊ for line ends.
3.Fix the cause
The counts point to trailing spaces, mixed indentation or hidden characters.
Example: a snippet that won't lint
A four-line function copied from a chat message:
- Indentation
- mixed tabs and spaces
- Trailing spaces
- 1 line
- Hidden
- 1 non-breaking space, 1 zero-width space
- Line endings
- mixed: LF, CRLF
Four separate problems that a normal editor view wouldn't show.
The usual suspects
Non-breaking spaces, shown as ⍽, look identical to normal spaces but break string matching and YAML. Zero-width characters such as ⟦ZWSP⟧ and the byte order mark ⟦BOM⟧ arrive with text copied from web pages, chat apps and Word, and make identical-looking words compare as different.
Line endings show as ¶ for Unix (LF) and ␍␊ for Windows (CRLF); mixing them confuses diffs and shell scripts. Tabs mixed with spaces break Python and Makefiles, and trailing spaces clutter version control.
Frequently asked questions
How do I remove the hidden characters?
The text cleaner strips invisible characters and extra spaces in one step.
Why does my YAML fail with a tab error?
YAML forbids tabs for indentation. Look for → at the start of lines.
Which line ending should I use?
LF for code and Unix tools; CRLF only when a Windows program needs it.
Is my text stored?
No. Nothing leaves this page.
Related tools
Text Cleaner
Remove extra spaces, blank lines, invisible characters and curly quotes.
Unicode Character Inspector
See the code points, bytes and hidden characters in any text.
Text Diff Checker
Compare two texts by line, word or character and see what changed.
Regex Tester
Test JavaScript regular expressions with live highlighting, groups and replace.
Cron Expression Explainer
Translate a cron schedule into plain English and see its next run times.
Lorem Ipsum Generator
Placeholder text by paragraph, sentence or word, plain or in <p> tags.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator