Whitespace Cleaner

Trim lines, collapse spaces and remove blank lines.

Runs in your browser: data never leaves your device. Free, no sign-up. Also known as: remove spaces, trim, tidy text.

How to use Whitespace Cleaner

  1. Paste your input, open a file, or press Sample to see an example.
  2. Pick a mode or adjust the options; results update instantly.
  3. Use Copy or Download to take the result with you.

Frequently asked questions

What does the Whitespace Cleaner do?
Trim lines, collapse spaces and remove blank lines.
Is the Whitespace Cleaner free?
Yes. It is completely free, with no sign-up, no watermark and no usage limits.
Is my data safe?
Yes. This tool runs entirely in your web browser. Your text and files are never uploaded to a server, stored or logged.
Does it work on mobile?
Yes. It works in any modern browser on Windows, macOS, Linux, Android and iOS, with nothing to install.
What other text & writing tools are there?
Runeforge has 11 text & writing tools in Scribe's Desk, plus 94 more tools across other categories.

More from Scribe's Desk