Text tools

Remove extra spaces

Give copied text a quick tidy-up. Reduce repeated spaces, trim line edges and keep your original beside the result.

Your text stays in your browser
Options
Up to 200,000 characters

Ready when you are.

Private by designYour text is processed on your device.
A clear view, instantlyLive counts, without an extra click.
Free. No sign-up.Just open the tool and get started.

Before and after

Before

  Alice   Smith  
	Bob		Jones  

After

Alice Smith
Bob Jones

Three simple steps

1
Add your text

Paste your text or try the example. Your original stays editable.

2
Choose the options

Adjust the settings to match your task. The result updates automatically.

3
Take the result

Copy the result or download a UTF-8 text file.

When this helps

Useful for names copied from a spreadsheet, pasted product descriptions and lists with uneven spacing. Turn trimming off if leading indentation matters.

How it works and what to expect

Repeated horizontal whitespace, including tabs and non-breaking spaces, becomes one ordinary space. Line breaks are kept. Both options start enabled and can be used independently.

Trimming removes whitespace from both edges of every line. With both options off, only line-ending normalization is applied. This tool does not remove blank lines or join paragraphs.

Line endings are normalized to LF. Avoid cleaning indentation-sensitive source code or fixed-width tables unless you intend to change their alignment.

Useful details

Does it remove all spaces?

No. Words stay separated by one space when repeated spaces are collapsed.

Can I keep indentation?

Turn off line trimming. Also turn off collapsing if repeated spaces or tabs form the indentation.

Will a blank line disappear?

No. A whitespace-only line can become empty, but its line break remains.

Continue with another tool