Skip to content
hateitall

Whitespace Visualizer

Find the invisible character that breaks your YAML, CSV or code, see which line endings a file really has, and clean it in one go.

Processed locallyIn: Text, Text fileOut: Text

Loading tool…

How to use whitespace visualizer

  1. Paste text, or open the file itself to keep its exact line endings.

  2. Read the summary: line endings, tabs, unusual spaces, invisible characters and indentation.

  3. Look through the marked text: dots for spaces, arrows for tabs, labels for everything else.

  4. Pick clean-up options, check the cleaned preview, then copy or download it.

What this tool does

  • Marks LF, CRLF and lone CR separately and says when a file mixes them.
  • Labels no-break, thin, em, narrow and ideographic spaces, zero width spaces and joiners, soft hyphens, the BOM and direction marks.
  • Finds trailing whitespace and lines that mix tabs and spaces in their indentation.
  • Cleans up: convert line endings, tabs to spaces or back, remove invisible characters, normalise spaces, trim and collapse blank lines.
  • Opens UTF-8 and UTF-16 files with the BOM kept so it can be shown.

How the result is verified

The cleaned text is scanned again with the same detector, and the tool confirms that none of the characters you chose to remove are left in it before you copy or download.

Frequently asked questions

Why does my YAML or Python fail when it looks fine?

YAML does not allow tabs in indentation, and Python 3 stops with a TabError when a block mixes tabs and spaces inconsistently. A no-break space pasted from a web page or a word processor also looks like a space but is a different character. This tool shows all three.

What is a BOM and should I remove it?

A byte order mark is an invisible character at the start of some files. Excel uses it to recognise UTF-8 CSV files, so keep it there. In shell scripts it breaks the #! line, and in PHP it is sent before your headers, so remove it in those.

LF or CRLF?

LF is the standard on macOS and Linux and in most Git repositories; Windows tools traditionally write CRLF. Mixed endings in one file cause noisy diffs. Pick one per project, and set it in .gitattributes so Git keeps it.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Text to lowercase with Greek final sigma and Turkish rules handled

Text→ TextLight on device

Titles to clean URL slugs with transliteration and a length limit

Text→ TextLight on device

Every case at once: upper, lower, title, sentence, camel, snake, kebab and more

Text→ TextLight on device