Text Cleaner

Remove extra whitespace from text copied from a document or webpage. Choose whether to trim each line, collapse repeated spaces and tabs, or keep just one blank line between paragraphs.

Workspace

Cleaned text

Your result will appear here.

How to use it

  1. Paste the text and enable each cleanup option you need.
  2. Leave line trimming off if indentation matters. Leave space collapsing off to preserve alignment inside a line.
  3. Clean the text and compare the paragraph breaks before copying it.

Worked example

Input
  Field notes  


  Pack water.  
Output
Field notes

Pack water.

Frequently asked questions

How can I remove extra blank lines but keep paragraphs?

Turn on “Keep one blank line between paragraphs”. Runs of empty or whitespace-only lines become a single blank line inside the text. Empty lines at the beginning and end are removed.

Can I clean text without losing indentation?

Yes. Leave both line trimming and space collapsing off to keep spaces and tabs on nonblank lines.