Whitespace Cleaner
Trim ends, collapse spaces, remove all whitespace, remove tabs, convert CRLF/LF
How to use
- Paste text with extra whitespace into the input box.
- Click "Trim ends" to drop leading/trailing spaces per line, or "Collapse spaces" to compress runs.
- Also "Remove all whitespace", "Remove tabs", or convert CRLF / LF.
- Tip: before cross-platform work, use CRLF/LF conversion to avoid newline mismatch.
FAQ
Does "Trim ends" work on the whole block or per line?
Per line: leading and trailing whitespace of each line is removed, while spaces inside the line are kept.
What are CRLF and LF?
Windows uses carriage return + line feed (CRLF, \r\n) as line breaks, while Unix / macOS and most code files use line feed (LF, \n). Conversion is used for cross-platform alignment.