Whitespace Remover for Text, Tabs and Empty Lines

Trim, collapse, or strip extra spaces, tabs, and blank lines from any text.

Frequently asked questions

What's the difference between the options?

Trim removes leading/trailing spaces per line, collapse reduces repeated spaces to one, and remove blank lines deletes empty lines entirely.

Can I combine multiple options?

Yes, you can tick several options before cleaning and they work together, with one exception: Remove all whitespace overrides the others.

Does Remove all whitespace also delete line breaks?

Yes. Every space, tab and line break goes, so multi-line text comes out as one unbroken string.

Why are some double spaces still there after cleaning?

They are probably non-breaking or other special spaces, which Collapse repeated spaces ignores. In Find & Replace, tick Regex, put \u00a0 in Find and a normal space in Replace with, then run Clean again.

Does it remove the empty line at the end of my text?

Not unless Remove blank lines is ticked. A final line break leaves an empty last line, which Trim each line does not delete.

What happens if no box is ticked?

The text is copied to the output unchanged.