Free tools • Fresh ideas

Text Whitespace Cleaner

Trim lines and collapse runs of spaces and tabs.

Processing takes place in your browser.

How to use the Text Whitespace Cleaner

Line breaks are retained, including empty lines. Avoid using this on source code that relies on indentation or tables aligned with tab stops.

Example input

  apples    and bananas  
   pears

Related tools

Browse learning guides