Whitespace normalizer

Collapse whitespace or trim each line.

Text Stateless

Collapse mode replaces every whitespace run with one space and trims the ends.

How it works and examples

Collapse mode replaces every whitespace run with one space and trims the ends. Line mode trims each line, preserves blank lines and uses LF separators. Example: a, several spaces, b becomes a b. It does not change letter case.