ToolVaults

Whitespace & Line Ending Cleaner

Trim lines, collapse extra spaces, remove blank lines, normalize line endings (LF/CRLF), and convert tabs to spaces. All in your browser.

Runs 100% in your browser — nothing is uploaded.

Result
6958 chars (84%)

Frequently asked

LF vs CRLF — which do I want?

LF for Unix, macOS, and modern editors. CRLF for legacy Windows tools. Modern codebases target LF and let Git handle line ending conversion.

Does "collapse spaces" affect indentation?

Yes — if you turn it on it collapses ANY run of spaces to one, which will flatten indentation. Leave it off for code.

What is "trim each line" for?

Removes leading and trailing spaces/tabs from every line. The most common cleanup for pasted text.

Related tools