Remove Extra Spaces

Clean up text copied from a PDF, email or website. Fix double spaces, broken lines and empty gaps in one go.

0 words · 0 characters
Empty lines
  • Runs in your browser. Nothing is uploaded.
  • Free, no signup, no limits
  • Works on any phone or computer

More free tools

All tools

Text copied from a PDF, an email or a website often arrives broken: double spaces, every line cut short, and large gaps between paragraphs. Paste it above and the cleaned text is ready to copy.

What each option fixes

OptionFixes
Turn double spaces into one"Dear   Sir" becomes "Dear Sir".
Turn tabs into spacesTabs from spreadsheets and Word tables.
Remove spaces at the start and end of linesLines that start with a few stray spaces.
Join broken lines into paragraphsPDF text where every line ends early. Paragraphs separated by an empty line stay separate, and words split with a hyphen at the end of a line are joined back.
Put everything on one lineText for a single form field, a spreadsheet cell or a URL.
Empty linesKeep one empty line between paragraphs, remove them all, or leave them alone.

Unusual spaces, such as the non-breaking spaces that websites and Word use, are also turned into normal spaces, because they often cause "double space" problems you cannot see.

Fixing text from a PDF

  1. Copy the text from the PDF and paste it above.
  2. Tick "Join broken lines into paragraphs".
  3. Check the result. If two paragraphs were joined, the PDF had no empty line between them; add one in the input and they separate again.
  4. Copy result and paste it into Word, Google Docs or an email.

Before you paste into a form

Online forms, such as job and college applications, sometimes count every extra space towards their limit, and some reject text with line breaks. Cleaning the text first, then checking it with the Word Counter, avoids surprises.

Frequently asked questions

How do I remove line breaks from copied text?

Tick "Join broken lines into paragraphs" to keep paragraphs, or "Put everything on one line" to remove every line break.

Will it change my words?

No. Only spaces, tabs and line breaks change. The status line shows how many characters were removed.

Does it work with Hindi text?

Yes. Spaces and line breaks are cleaned the same way in any language.

Is my text uploaded?

No. Everything happens in your browser.