Remove Extra Spaces — Clean Up Spacing in Text

Collapse double spaces, trim lines and remove extra blank lines and odd Unicode spaces in one go. Free, no sign-up, and your files never leave your device.

Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.

Collapse double and triple spaces into one, trim spaces from the start and end of lines, reduce runs of blank lines and replace unusual Unicode spaces (like non-breaking spaces copied from web pages) with normal ones.

Step by step

  1. Paste the text: Add it to Input text.
  2. Choose clean-ups: Tick Trim each line, Collapse multiple blank lines and Turn tabs into spaces as needed.
  3. Copy the result: The note above the result says how many characters were removed. Click Copy or Download.

Handy for

Web copy

Remove odd spacing from text copied out of websites.

Data entry

Tidy names and addresses before adding them to a system.

Documents

Fix double spaces after full stops.

Code comments

Normalise spacing in text blocks.

Good to know

  • With Turn tabs into spaces off, tab characters are kept, so tab-separated columns stay intact.

  • Leading and trailing blank space around the whole text is always removed.

Questions

What are “unusual” spaces?

Characters such as the non-breaking space, thin space and ideographic space. They look like spaces but can break searches and formulas; this tool turns them into ordinary spaces.

Does it change words?

No — only whitespace is changed.

Is my text sent anywhere?

No. Everything is processed by your browser on your own device — nothing you type or upload is sent to a server, so it is safe to use with private notes, drafts and work documents.

More Text Tools tools

  • Find and Replace Text — Find words or patterns in text and replace them everywhere, with match highlighting, whole-word and regex options.
  • URL Slug Generator — Turn titles into clean, SEO-friendly URL slugs — accents removed, spaces replaced, length limited.
  • Lorem Ipsum Generator — Generate lorem ipsum placeholder paragraphs, sentences, words or list items, as plain text or HTML.
  • Reverse Text — Reverse text by characters, words, lines or the letters inside each word — emoji stay intact.
  • Text Repeater — Repeat a word, line or message up to 10,000 times with your choice of separator.
  • Word Frequency Counter — See which words and phrases appear most often in a text, with counts, percentages and CSV export.

All Text Tools tools