Text cleaner

Trim extra spaces and remove repeated blank lines.

How to use this tool

Paste text into the input. Toggle Trim extra spaces or Collapse repeated blank lines to choose what to clean. Copy the cleaned text when it looks right.

Example

Try this input

Too   many   spaces.


Trim blank lines.

Result

Too many spaces.

Trim blank lines.
Ready to use

Your text stays in this browser. It is not sent to DoableLab.

Extra spaces and tabs are reduced to one space, and consecutive blank lines are reduced to one. Toggle either option off to preserve that formatting.

Browse more tools in this category