Skip to content
toolwise

Remove Extra Spaces

Clean up double spaces, tabs and blank lines in your text.

When to use it

Remove Extra Spaces tidies messy text. Use it on text copied from PDFs that comes out with a line break after every line, emails and documents with double spaces after full stops, data pasted from spreadsheets with stray tabs, or anything with uneven gaps and too many blank lines. Clean text is easier to read, edit, count and paste into websites and forms.

How to clean up text

  1. Paste your text into Your text, or press Example.
  2. Choose what to fix:
    • Turn double spaces into single spaces
    • Remove spaces at the start and end of lines
    • Turn tabs into spaces
    • Remove empty lines, or Keep at most one empty line between paragraphs
    • Join broken lines into paragraphs (for text copied from PDFs)
  3. Read the Clean text, with a note of how many characters were removed.
  4. Press Copy result or Download .txt.

A worked example

You copy two paragraphs from a PDF report into an email, and every line ends with a hard break, so it looks like a poem on a phone. Paste it here and tick Join broken lines into paragraphs; Keep at most one empty line between paragraphs is already on. The lines rejoin into two proper paragraphs separated by one blank line, and the note shows how many characters were removed. Paste the clean version into your email.

Tips

  • Start with the defaults (everything except “Remove empty lines” and “Join broken lines” is on), then change one option at a time and watch the result.
  • Use Join broken lines only for PDF text; on poems, addresses or lists it would join lines you want to keep separate.
  • Remove spaces before counting words or characters for strict limits.
  • Check bullet lists after joining lines, since they may need their line breaks.

Common mistakes

  • Removing all empty lines from long documents, which merges paragraphs into a wall of text. Keep one empty line instead.
  • Joining lines in code or data, where line breaks matter.
  • Expecting formatting to survive; the result is plain text.

Why double spaces happen

Many people learned to type two spaces after a full stop, and some apps add spaces when converting documents. Single spaces are the modern standard for web pages, emails and most published text.

Private by design

Your text is cleaned in your browser and never uploaded.

Pull text from documents with PDF to Text, change words with Find and Replace, or count the result with the Word Counter.

Frequently asked questions

Why does text copied from a PDF have broken lines?

PDFs store each line of a page separately, so copying keeps a line break at the end of every line, even in the middle of sentences. "Join broken lines into paragraphs" puts those lines back together while keeping real paragraph breaks.

Will it remove the spaces between words?

No. It only turns runs of several spaces into one, trims spaces at the start and end of lines, and tidies empty lines, depending on the options you choose.

What's the difference between the two empty-line options?

"Remove empty lines" deletes every blank line, joining all paragraphs together. "Keep at most one empty line between paragraphs" keeps paragraphs separated by one blank line and removes the extras.

Can it convert tabs?

Yes. "Turn tabs into spaces" replaces each tab with a space, which helps when pasting from spreadsheets or code into a document.

Is my text uploaded?

No. Cleaning happens in your browser.