Collapse Whitespace

Squeeze spaces/tabs; optional end trim.

Collapses runs of spaces/tabs per line. Trim ends on by default.

What Collapse Whitespace does

Collapses runs of spaces/tabs per line. Trim ends on by default.

This URL is only for Collapse Whitespace (collapse whitespace). Squeeze spaces/tabs; optional end trim. Other Text tools on Tool-You look similar in the chrome, so the job definition below is the part that belongs to Collapse Whitespace alone: Collapses runs of spaces/tabs per line. Trim ends on by default.

How to use Collapse Whitespace

  1. Keep this tab on Collapse Whitespace (/collapse-whitespace). Pasting into the wrong Text tool (for example Remove Empty Lines) changes the job.
  2. Paste or type the input Collapse Whitespace expects. Path hint: collapse whitespace. Squeeze spaces/tabs; optional end trim.
  3. Apply the Collapse Whitespace action only. Wrap Text is a different transform (Hard-wrap lines at a column width.). Collapses runs of spaces/tabs per line. Trim ends on by default.
  4. Copy the output of Collapse Whitespace if you need it elsewhere. Size/complexity still follows: Per-line only. Newlines preserved.
  5. If the text job is actually Drop blank lines or collapse runs to one., leave Collapse Whitespace and open Remove Empty Lines.

When not to use Collapse Whitespace

Skip Collapse Whitespace when a neighbor tool matches better — start with Remove Empty Lines or Wrap Text — or when the description already warns the job will fail. In the tool’s own words: Collapses runs of spaces/tabs per line. Trim ends on by default.

Questions about Collapse Whitespace

What does Collapse Whitespace do that other Text pages on this site do not?
Collapses runs of spaces/tabs per line. Trim ends on by default. Short version: Squeeze spaces/tabs; optional end trim.
Does Collapse Whitespace upload my file or text to Tool-You servers?
No. Collapse Whitespace runs in this browser tab. Files stay on the device. Limit note: Per-line only. Newlines preserved.
Should I use Remove Empty Lines instead of Collapse Whitespace?
Use Collapse Whitespace when you need Squeeze spaces/tabs; optional end trim. Use Remove Empty Lines when you need Drop blank lines or collapse runs to one. They share a category (Text) but not the same job.
What are the limits of Collapse Whitespace?
Per-line only. Newlines preserved. Also: Collapses runs of spaces/tabs per line. Trim ends on by default.