Back

Whitespace cleaner

Text tools

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Remove all whitespace, trim lines, collapse spacing or delete blank lines.

Common uses

  • Remove all whitespace, trim lines, collapse spacing or delete blank lines.
  • Select the cleanup mode for the pasted text.

How to use it

  1. 1.Select the cleanup mode for the pasted text.
  2. 2.Review the live output before copying; collapse mode keeps line breaks but trims each line.

Limits and notes

  • Remove-all also deletes line breaks. Whitespace is defined by JavaScript \s; zero-width format characters are not all included.

Frequently asked questions

What does this tool do?

Remove all whitespace, trim lines, collapse spacing or delete blank lines.

What should I check before using the result?

Remove-all also deletes line breaks. Whitespace is defined by JavaScript \s; zero-width format characters are not all included.

Related tools