Text toolsRemove extra spaces

Remove extra spaces

Collapse repeated spaces and tabs while preserving line breaks and readable paragraph spacing.

Ready to clean
Your text never leaves this device
0 characters · 0 words
0 characters · 0 words
A focused cleanup

How to use remove extra spaces

This one fixes spacing and nothing else: runs of spaces and tabs collapse to a single space, line ends are trimmed, and towers of blank lines shrink to one — while every line break you meant keeps its place.

  1. 1
    Paste the unevenly spaced text

    The usual sources: justified PDFs whose stretched gaps became double spaces, tab-separated exports, and documents where someone aligned things with the space bar. Paste it as it is.

  2. 2
    Decide about blank lines

    Collapse blank lines, on by default, reduces any run of blank lines to a single one — paragraph separation survives, the vertical sprawl goes. Untick it to preserve intentional vertical spacing exactly.

  3. 3
    Clean and confirm the layout

    Select Clean text. The line structure on the right matches the left apart from collapsed blank runs; only the horizontal whitespace inside lines has changed.

When this tool is useful

Tidying copied tables
Fixing justified text
Cleaning form submissions

Deliberately narrower than the smart cleaner

The rules are exactly three: within each line, any run of spaces and tabs becomes one space — including the non-breaking and thin spaces web pages paste in, which look identical to ordinary ones; leading and trailing whitespace is trimmed from each line; and, optionally, consecutive blank lines collapse to one. Single line breaks are never touched, so the layout of a list or an address survives. Indentation does not — leading spaces are trimmed like any other run — which makes this a prose tool, not one for code, where indentation is meaning.

Tabs are treated as fat spaces rather than as structure. A tab-separated export pasted here comes out with single spaces between fields, which reads well as prose but flattens the columns — if the tabs are carrying table structure you intend to keep, keep that text away from this tool.

It is the narrow counterpart to the smart cleaner: no hidden-character handling, no punctuation rules, and blank lines are kept (singly) rather than removed. A single non-breaking space between two words is left in place, because it is usually there on purpose — "10 km" should not wrap across a line. Only when it is part of a wider gap does it collapse with the rest.

Fixing weird spacing after copy and pasteRead the guide · 5 min read
Good to know

Remove extra spaces questions

Single line breaks never move. The only vertical change is optional: runs of blank lines collapse to one while Collapse blank lines is on.