CountKit

Text cleanup / Remove extra spaces

Remove extra spaces

Double spaces, stray tabs and trailing whitespace creep in when text is pasted from different sources. This tool collapses every run of spaces or tabs to a single space and trims the start and end of each line. You can also squeeze multiple blank lines down to one.

clean.txt

How it works

  • Paste your text; the cleaned version appears below.
  • Non-breaking spaces are converted to normal spaces as well.
  • Line breaks are kept, so lists and paragraphs keep their shape.

At a glance

Remove extra spaces
Collapse double spaces and tabs into single spaces, trim each line and optionally squeeze repeated blank lines. Free text cleaner.
Price
Free, no sign-up
Works on
Phones, tablets and computers, in a web browser
Your data
Text is processed in your browser and is not uploaded. Your draft is saved only on your device.

Frequently asked questions

Does it remove line breaks?

No. Lines are kept; only extra spaces and tabs within lines are removed. Use "Remove line breaks" to join lines.

Should there be one or two spaces after a period?

One. Modern style guides, including APA and Chicago, recommend a single space.

Are tabs removed?

Tabs inside a line become a single space. Leading tabs used for indentation are trimmed.