Whitespace Cleaner

Trim ends, collapse spaces, remove all whitespace, remove tabs, convert CRLF/LF

How to use

  1. Paste text with extra whitespace into the input box.
  2. Click "Trim ends" to drop leading/trailing spaces per line, or "Collapse spaces" to compress runs.
  3. Also "Remove all whitespace", "Remove tabs", or convert CRLF / LF.
  4. 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.