Whitespace Viewer

Reveal the invisible spaces, tabs and line breaks in a text so you can see exactly what's there.

Making the invisible visible

Whitespace is, by definition, hard to see — but it causes real problems: a trailing space that breaks a comparison, tabs mixed with spaces in code, a double space you cannot spot, an odd line break. This marks every space, tab and line break with a visible symbol so you can see precisely where they are and why two lines that look identical are not.

Paste the text and the hidden characters are shown.

Why it matters more than it seems

Invisible characters are behind a surprising number of frustrating bugs and mismatches: a password that fails because of a trailing space, code that misbehaves because of mixed tabs and spaces, two strings that will not match for no visible reason. Seeing the whitespace turns a baffling problem into an obvious one — there is the stray tab — which is the first step to fixing it.

Frequently asked questions

What does it reveal?

Every space, tab and line break, marked with a visible symbol so you can see exactly what is in the text.

Why would I need this?

To track down invisible-character problems — trailing spaces, mixed tabs and spaces, or two lines that will not match.

Is my text uploaded?

No. It is processed in your browser.

More Text tools