1. Home
  2. Writing & text tools
  3. Whitespace & Hidden Character Visualizer

Whitespace & Hidden Character Visualizer

Two lines that look identical can differ by a tab, a non-breaking space or an invisible zero-width character. See every one of them, with line endings, then clean them in one step.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Whitespace & Hidden Character Visualizer

  1. Paste text or open a file.
  2. Read the marked-up view and counts.
  3. Choose clean-up options and copy the result.

Features

  • Spaces, tabs, unusual spaces and zero-width characters drawn as symbols
  • CRLF, LF and CR line endings shown and counted for opened files
  • Trailing whitespace and mixed tab/space indentation found
  • Clean-up: trailing spaces, unusual spaces, zero-width characters, tabs to spaces, line endings

Supported formats

You can open

  • Typed or pasted text
  • TXT

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Whitespace & Hidden Character Visualizer is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Pasted text always has LF line endings; open a file to see its real line endings.

Guide

Making whitespace and hidden characters visible

Some of the most frustrating bugs live in characters you cannot see. A spreadsheet lookup fails because one value has a non-breaking space. A Python file refuses to run because of mixed tabs and spaces. A login fails because a username copied from a chat contains a zero-width space. A script breaks on Linux because of Windows line endings. This tool makes every kind of whitespace and hidden character visible, counts them and cleans them up.

The visible view

Your text is redrawn with a marker for every whitespace character. Ordinary spaces become faint dots and tabs become arrows, so indentation is easy to read. Unusual spaces — no-break, narrow no-break, thin, figure, em and ideographic spaces — are highlighted with ⍽, and invisible format characters such as zero-width spaces, joiners, byte order marks, soft hyphens and direction marks with ¦. Hover a highlight to see its name. Spaces and tabs at the end of a line are shaded red.

Line endings

Every line ending is shown as ␊ for LF (Linux and macOS), ␍␊ for CRLF (Windows) or ␍ for CR (classic Mac OS), and counted in the summary. If a file mixes them, a warning appears. Browsers convert line breaks to LF when you paste into a text box, so pasted text always shows LF; open the file with the Open button to see its true line endings.

The report

The summary counts lines, each type of line ending, lines with trailing whitespace and lines whose indentation mixes tabs and spaces. A table lists every unusual character found, by name, with its count — the quickest way to discover that a document is full of non-breaking spaces from Word or narrow no-break spaces from French typography.

Cleaning up

Choose what to fix: remove trailing spaces and tabs, turn unusual spaces into ordinary ones, delete zero-width characters and the byte order mark, convert tabs into a chosen number of spaces, and make all line endings LF or CRLF. The cleaned text appears below, ready to copy or download as a file.

When to keep them

Not every special character is a mistake. Non-breaking spaces keep “10 kg” together and are required before some punctuation in French; zero-width joiners hold together emoji and some scripts. Clean deliberately, and keep a copy of the original.

A worked example

The sample contains a non-breaking space in “Name: Ann”, a double space between “Ann” and “Lee” followed by a trailing tab, a zero-width space inside the email address followed by three trailing spaces and a CRLF line ending, and lines indented with a tab and with spaces. In the view, each appears as its marker; the report counts them; and the default clean-up removes the trailing spaces and the zero-width space and turns the no-break space into a normal one, leaving “[email protected]” clean enough to match.

Preventing hidden characters

Paste into plain-text fields with your editor’s “paste as plain text” option, set code editors to show whitespace and to trim trailing spaces on save, and agree on tabs or spaces in a team style guide. Checking imported data here before loading it into a system saves hours of debugging later.

Convert line endings of whole files with the Line Ending Converter, copy blank characters or check names with Invisible Character, clean pasted text with the Text Cleaner, or compare two versions with the Diff Checker.

Checked against the current version of the Whitespace & Hidden Character Visualizer on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why do two identical-looking lines not match in Excel?

Usually one of them contains a non-breaking space, a trailing space or a zero-width character. Paste both lines here: the extra character appears as a marker, and the clean-up options remove it.

What is mixed indentation?

A line indented with both tabs and spaces. Editors set to different tab widths then show it at different depths, and languages such as Python or YAML can reject it. The report counts such lines.

Can it remove the BOM from the start of a file?

Yes. The byte order mark is a zero-width character, so “Remove zero-width characters and BOM” deletes it. Download the cleaned text as a new file.

Why does pasted text always show LF line endings?

Browsers convert line breaks to LF when text is pasted into a text box. To see a file’s real line endings, open the file with the Open button instead of pasting it.

What is a non-breaking space?

A space that keeps two words on the same line, as in “10 kg”. It looks like a normal space but is a different character, which can stop searches and data matches from working.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.