Send feedback

Coming from the page: Remove Extra Spaces

One moment…

Spaces and empty linesHidden charactersText copied from PDFs

Remove Extra Spaces

Paste your text and we remove double spaces, empty lines and the hidden spaces that break formatting.

Your text never leaves your device: everything runs in your browser.

How to remove extra spaces

1

Paste the text

From Word, a PDF, a website or a message, or open a TXT file.

2

Choose what to remove

The options that are on suit most texts; change them as you like.

3

Copy the clean text

We show how much of each kind was removed. Copy or download the result.

What gets removed

KindExampleWhere it comes from
Repeated spacesword␣␣␣wordFast typing and copying from tables.
Spaces at line start or end␣␣line␣␣Copying from websites and documents.
Many empty linesA paragraph, then 4 empty linesCopying from emails and PDFs.
Non-breaking spaceLooks like a normal spaceWord and web pages ( ).
Hidden charactersZero-width space, BOMApps and old files; they break search and comparison.
Broken linesA sentence split over two linesPDF copies. Tick “Join broken lines”.
Note: The zero-width non-joiner (ZWNJ) is kept because Persian and Kurdish writing need it. Removing direction marks can change how mixed Arabic and English text displays, so it is off by default.

FAQ

How do I remove double spaces between words?

Paste the text: “Several spaces in a row become one” is on. Then copy the result.

How do I remove empty lines?

Under “Empty lines”, choose “Remove them all”, or “Keep one between paragraphs” to keep paragraphs apart.

Text copied from a PDF has broken lines. How do I fix it?

Tick “Join broken lines into paragraphs”: the lines of each paragraph become one line, and empty lines still separate paragraphs.

How do I remove extra spaces in Word?

In Word, use Replace (Ctrl+H): find two spaces, replace with one, and repeat. Or paste the text here and copy it back clean.

Does anything else change?

No. Letters, words and punctuation stay as they are, except tatweel if you choose to remove it.