ZapKit

Whitespace visualizer

Find the invisible character breaking your code, CSV or config: every space, tab, line ending and hidden Unicode character is shown and counted.

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. 1.Paste text or code

    Anything that behaves strangely.

  2. 2.Read the markers

    · for spaces, → for tabs, ¶ or ␍␊ for line ends.

  3. 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.

More Developer tools