Remove extra spaces
Tidy up messy spacing, indentation and blank lines, right in your browser. Nothing is uploaded.
Files are processed in your browser and never uploaded.
How to use Remove extra spaces
Add your text
Type or paste your text into the input box. Everything is handled by your own browser, so nothing is sent to a server.
Set the options
Choose Collapse multiple spaces into one, Trim spaces at line ends, Turn tabs into a space, Collapse blank lines, Remove all blank lines and Join into one line. The options are visible from the start, not hidden until you paste something.
Read it and keep a copy
The output updates as you type, so there is nothing to submit and nothing to wait for. Copy result, Don puts the result on your clipboard and Download .txt saves it as a file.
What this tool does
Collapse multiple spaces into one
Runs of spaces collapse to a single space, which is what fixes text that has been copied out of a PDF or a web page.
Trim line ends and indentation
Trailing spaces at line ends and leading indentation can each be removed, separately, because you do not always want both.
Tidy or remove blank lines
Blank lines can be collapsed to one or removed entirely, depending on whether you are tidying prose or flattening a list.
Turn tabs into spaces or join to one line
Tabs can be turned into spaces, and the whole text joined into one line, for the times a field will not accept line breaks.
No upload, no sign-up
Everything happens in your browser, so nothing is uploaded, and the result can be copied or downloaded as a .txt file.
Frequently asked questions
Is my text uploaded anywhere?
No. The text is cleaned entirely in your browser and is never sent to a server.
What does Collapse multiple spaces do?
It turns any run of two or more spaces into a single space, which fixes text that has uneven gaps between words.
How is Collapse blank lines different from Remove all blank lines?
Collapse blank lines reduces several empty lines in a row to a single empty line, keeping paragraph breaks. Remove all blank lines deletes every empty line so the text has no gaps.
Can it remove indentation?
Yes. Turn on Remove leading spaces to strip spaces and tabs from the start of every line.
What does Join into one line do?
It removes all line breaks so the whole text becomes a single line, which is handy for pasting into a single field.
Is there a size limit?
No fixed limit, though very large text is handled in your browser and may be slower on an older device.
Last updated: