How to use the Remove Extra Spaces
Last verified 2026-08-09 · about 6 minutes to read
The short version
- 1.Paste the text. Especially if it came from Word, Google Docs, a PDF or a web page — those are where invisible characters come from.
- 2.Check what was found. The table lists every invisible character in the text, how many there were, and which lines they are on.
- 3.Clean it, or reveal it first. Reveal mode marks each invisible character inline without changing anything, so you can see the problem before you fix it.
Why this is worth getting right
Most whitespace tools collapse runs of U+0020 and stop. The characters that actually break things are the ones you cannot see — a non-breaking space from Word that stops a CSV splitting, a zero-width space that makes two identical strings compare unequal. This tool detects fourteen of them, names each one, and reports which lines they are on.
Method 1 — use the Remove Extra Spaces on this site
The fastest route. It runs entirely in your browser, so nothing is uploaded and there is no queue to wait in. No account is needed and there is no daily limit.
- Paste the text. Especially if it came from Word, Google Docs, a PDF or a web page — those are where invisible characters come from.
- Check what was found. The table lists every invisible character in the text, how many there were, and which lines they are on.
- Clean it, or reveal it first. Reveal mode marks each invisible character inline without changing anything, so you can see the problem before you fix it.
Open the Remove Extra Spaces →
Method 2 — do it without this site
Worth knowing, because a tool you cannot replace is a dependency rather than a convenience. Most tasks in the text division have a command-line or built-in equivalent; it is usually more setup and less convenient, but it works offline and it is scriptable, which matters once you are doing something a hundred times instead of once.
What this tool will not do
Every tool has an edge. These are ours for remove extra spaces, stated up front so you find out here rather than halfway through a deadline:
- Zero-width non-joiner (U+200C) is legitimate in Persian, Hindi and Bangla. Removing it in those languages changes the text — the tool reports it, and the choice is yours.
- It never joins wrapped lines back into paragraphs. That needs to know where a paragraph ends, which is a guess this tool will not make for you.
- Emoji built from zero-width joiners will be broken apart if you delete zero-width characters. Turn that option off when the text contains emoji.
Questions people ask
Why does my text have invisible characters in it?
Word, Google Docs and PDF readers insert non-breaking spaces to control line wrapping, and content management systems insert zero-width spaces around formatting. None of them render as anything, so they survive copy and paste unnoticed and then break whatever you paste them into.
What is a non-breaking space and why does it matter?
U+00A0 renders exactly like a normal space but stops the line wrapping there. It matters because it is not the space character: a CSV parser splitting on " " will not split on it, a URL slug generator will not treat it as a word boundary, and a string comparison will fail.
What is a zero-width space?
U+200B occupies no width at all — it is completely invisible. Two strings that look identical will compare as different if one contains it. It is the single most common cause of "these two values are the same but my code says they are not".
Does this remove line breaks?
Only if you ask it to. "Remove all blank lines" strips empty lines entirely; "collapse multiple blank lines" reduces runs of them to one. Neither joins your paragraphs into a single line — that is a separate operation and this tool does not do it silently.
What does reveal mode show?
It replaces every invisible character with a visible marker: ¶ for a line break, · for a space when enabled, and the code point in brackets for anything invisible — so a non-breaking space appears as ⟦U+00A0⟧. The text itself is unchanged.
Is my text uploaded?
No. Everything runs in this browser tab. You can disconnect from the internet after the page loads and the tool keeps working.