Remove extra spaces
Paste text to collapse repeated spaces into one, trim spaces at the start and end of each line, and reduce runs of blank lines. It also fixes invisible spaces such as non-breaking and zero-width spaces.
- ๐ Runs on your device
- โค 0 bytes uploaded
- โ Free, no sign-up, no watermark
How to use Remove Extra Spaces
- Paste your text.
- Choose what to clean: repeated spaces, line edges, tabs, blank lines, invisible spaces.
- Copy or download the cleaned text.
Is it private?
Yes. Remove Extra Spaces runs entirely in your web browser: what you type into it is never sent to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Nothing is stored either: close the page and it is gone. How Nolo works.
Questions and answers
Is my text uploaded?
No. The cleanup runs in your browser and nothing is sent anywhere.
What are invisible spaces?
Characters that look like a space or nothing at all: non-breaking spaces (often pasted from web pages and Word), thin and wide spaces, and zero-width spaces. With "Fix invisible spaces" on, they become normal spaces or are removed, so search and spell checking work again.
Will it join my paragraphs?
No. Line breaks are kept. Blank lines between paragraphs are reduced to one (or removed, or kept, as you choose). To join lines into one paragraph, use Remove Line Breaks.
Does it change spaces inside code?
It changes all runs of spaces, including indentation when "Trim each line" is on, so turn that off for code or use a code formatter instead.