Whitespace Visualizer

Reveal every space, tab, line break and invisible character in your text, with trailing-whitespace and indentation checks.

What to reveal

Visualized text

  • ⍽ non-breaking / unicode space
  • ∅ zero-width / invisible character
  • · trailing whitespace
 
Spaces
0
Tabs
0
Line breaks
0
Lines
0
Trailing WS lines
0
Invisible chars
0
Indentation
—

No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

Paste your text and every whitespace character is drawn as a visible marker: a middle dot for each space, an arrow for each tab, a pilcrow at the end of every line, ⍽ for non-breaking and other unicode spaces, and ∅ for zero-width characters — the truly invisible ones that sneak in when you copy from a website, PDF or word processor and later break a search, a CSV import or a code comparison. Whitespace sitting at the end of a line is highlighted in red, so trailing spaces are impossible to miss.

The stats panel counts spaces, tabs, line breaks and invisible characters, and reports whether the text is indented with spaces, tabs or a mix of both. Everything is analysed with plain JavaScript inside your own browser — nothing is uploaded, so it is safe for code, contracts and anything confidential. Copy cleaned text gives you the fixed text: invisible characters removed, look-alike spaces turned into normal ones and the spaces at the end of every line trimmed. Copy marked text takes the marked-up version instead, and Download .txt saves it as a file. When the text is indented with tabs, one tap converts the leading tabs to spaces, and one more taps it back.

Frequently asked questions

How do I see hidden spaces and invisible characters in text?

Paste the text into the box above. Every space becomes a middle dot (·), every tab an arrow (→) and every line break a pilcrow (¶). Non-breaking and other unicode spaces are marked ⍽, and zero-width characters, the ones you cannot see even when you select them, are marked ∅ and highlighted, so you can find the character that is breaking your search, CSV import or code.

How can I find trailing whitespace in my text?

Trailing whitespace is highlighted in red at the end of each line, and the stats panel counts how many lines end in spaces or tabs. Turn the "Highlight trailing whitespace" option off if you only want the plain markers. Trailing spaces are the usual cause of failed string comparisons, noisy diffs and lint warnings.

Can this tool tell whether a file uses tabs or spaces for indentation?

Yes. The tool inspects the leading whitespace of every line and reports Spaces, Tabs or Mixed in the Indentation stat, so you can spot a file that mixes both before it breaks your formatter. The tab width selector (2, 4 or 8 characters) lets you preview how the indentation will line up in your editor.

Report a bug