✳tools.stBrowse tools
◈ Processed on your device
Tt

Whitespace cleaner

Trim lines and collapse repeated spaces.

Free

The cleaner trims whitespace at the beginning and end of each line. It collapses consecutive whitespace within a line, including tabs, to a single ordinary space and removes whitespace at the edges of the whole text. Interior line breaks and blank lines remain.

◈ Local processingFree

How to use

  1. Enter your text, values, or image.
  2. Adjust the options and run the tool.
  3. Copy or download your result.

Limitations and details

This changes indentation and tab alignment, so it is unsuitable when source-code indentation or fixed-width text layout must be preserved.

Frequently asked questions

Is this tool free and private?

Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.

Related tools