Remove Extra Spaces

Clean up double spaces, tabs and empty lines in one click

Result

Everything happens in your browser: your text is never sent anywhere.

How to remove extra spaces

Step 1

Paste the text you want to clean up

Step 2

Choose which spaces and empty lines to remove

Step 3

Copy the clean text or download it

What the tool cleans up

Text copied from PDFs, websites, emails and word processors is often full of whitespace you can't see: double spaces between words, spaces at the start or end of lines, tabs, non-breaking spaces and even invisible zero-width characters. Paste the text here and it is cleaned up while you type: repeated spaces become one, lines are trimmed and tabs are replaced with spaces, while the words and line breaks stay exactly as they were.

Every step can be turned on or off. Empty lines can be kept, reduced to no more than one in a row or removed completely, and spaces before commas and periods can be removed too. Zero-width joiners, which emoji and some scripts need, are left alone, and so is the wide ideographic space of Chinese and Japanese text. The counter shows how many characters were removed, and the result can be copied or downloaded as a text file.

Was AnyTextEditor useful to you?

Hello. We tried very hard to create a convenient website that we use ourselves. If you liked any of our tools and editors, add it to your bookmarks, because it will be useful to you more than once. And don't forget to share on social media. We will be better for you.