Skip to main content

Whitespace Cleaner

v1.0.1

Trim, normalize, and remove excess whitespace — tabs to spaces, collapse runs, strip blank lines.

Normalises whitespace in text — trims leading/trailing spaces, collapses multiple spaces into one, removes blank lines, converts tabs to spaces (or vice versa), and strips non-breaking spaces ( ) and other Unicode whitespace.

How to use
  • Paste text with irregular whitespace into the input area and choose a cleaning mode.
  • Enable "Collapse multiple spaces" to reduce any run of whitespace to a single space.
  • Use "Tab → spaces" or "Spaces → tab" to normalise indentation for your editor's settings.
  • Enable "Strip non-breaking spaces" to remove   characters often copied from web pages or Word documents.
Before: 40 charsAfter: 24 charsremoved: 16