Remove Extra Spaces

Paste text and collapse every run of double spaces and stray tabs down to a single space, trim the ends of each line, and optionally squash repeated blank lines. A free space remover for text pasted out of PDFs, emails and spreadsheets.

Text copied from a PDF, an email or a spreadsheet often arrives with double spaces, random tabs and trailing spaces you cannot see. This tool removes those extra spaces in one pass: every run of spaces or tabs becomes a single space, and the ends of each line are trimmed. Turn on the second option and repeated blank lines collapse to one as well. It fixes the spacing without touching your actual words.

  • No sign-up, ever
  • 100% free
  • Nothing uploaded
  • Works offline after first load
  • No limits, no email wall
Your text
Cleaned

How to use it

  1. 1

    Paste your text

    Drop in text that has double spaces, tabs or ragged indentation from wherever you copied it.

  2. 2

    Pick your options

    Keep "Trim line ends" on to strip trailing spaces, and switch on blank-line collapsing if you need it.

  3. 3

    Copy the clean version

    The tidied text appears on the right with a count of how many characters were removed. Copy it out.

When it comes in handy

Text from PDFs

PDF copy-paste scatters spaces mid-sentence. Collapse them so the paragraph reads normally again.

Before importing data

Trim stray spaces out of a pasted column so values match and lookups do not silently fail.

Tidying writing

Catch the accidental double spaces after full stops that a word processor left behind.

Instant & 100% private — nothing is uploaded

Every keystroke is handled right here in your browser. Your text is never sent to a server, so there is no sign-up, no email wall, and no length cap from us. Load the page once and it keeps working even if you go offline.

Frequently asked questions

Does it remove single spaces between words?
No. It only collapses runs of two or more spaces (and tabs) down to a single space, so normal word spacing is kept exactly as it should be. The point is to fix the extra spaces, not to jam your words together.
What is the difference between this and removing line breaks?
This tool works within each line, tidying spaces and tabs while keeping your lines separate. Removing line breaks instead joins wrapped lines into one block. If your text has both problems, run the line-break remover first, then clean the spaces.
Will it change tabs used for indentation?
Yes, tabs are treated as whitespace and collapsed to a single space, because the tool is built for prose rather than code. If you need to keep tab indentation, such as in source code, this is not the right tool for that text.