Four modes explained
Trim Lines removes leading and trailing spaces and tabs from every line, but preserves the line breaks and content itself. Normalize Spaces collapses multiple consecutive spaces or tabs into a single space on each line and then trims. Remove Blank Lines deletes any line that contains only whitespace. Remove All Spaces strips every whitespace character from the entire text, collapsing everything into a single line.
When to trim vs normalise
Use "Trim Lines" when you want to clean up indentation or trailing spaces without changing internal spacing. Use "Normalize Spaces" when your text contains double-spaces or inconsistent spacing between words. Use "Remove Blank Lines" when formatting lists, code, or markdown that has unwanted empty lines between items.
Common use cases
Cleaning text copied from PDFs that adds trailing spaces to every line, normalising spacing in CSV or TSV data, preparing clean input for word-count tools, fixing pasted content from rich-text editors, or stripping invisible whitespace characters before a string comparison in code.
Whitespace vs line breaks
Whitespace includes spaces, tabs, and sometimes newlines. If you specifically want to remove newlines (line breaks), use the dedicated Remove Line Breaks tool instead, which handles all newline formats (LF, CRLF, CR) and lets you choose whether to remove or replace them.