Remove extra spaces, trailing whitespace, tabs and blank lines from your text and code, and keep the paragraphs if you want them. Just want every space gone? Use the Space Remover.
Whitespace is the one kind of mess you cannot see. A paragraph with three spaces between two words looks much the same as one with a single space, right up until it lands in a spreadsheet, a database or a template and stops matching what it should match.
It arrives on its own, too. Copy a few lines out of a PDF and you get spaces where the layout used to be. Paste from Word and half of them are non-breaking spaces that look ordinary and behave as anything but. Pull a column out of a CSV and every value has a tab clinging to the end of it.
Runs of spaces become one. Tabs become a space each. Spaces hanging off the ends of lines go, along with the ones at the very start and end of the text. Blank lines stacked several deep come down to one. And the spaces that only look like spaces — non-breaking, thin, and the rest of the family — become the ordinary kind.
Line endings are squared up on every pass, whichever mode you are in, so a file that has been round a Windows machine and a Mac stops being a mix of the two. It is the one thing here nobody has ever wanted to opt out of.
Paste your text in. The default, Keep line breaks, tidies spaces and tabs and brings stacked blank lines down to one while your paragraphs and lists stay put. Remove all breaks puts everything on one line instead: every run of spaces, tabs and line breaks becomes a single space, which is the right answer for a stray paragraph and the wrong one for anything with paragraphs worth keeping.
For finer control, switch to Choose what to clean. The settings start where the mode you were in left off, so the boxes show you what it was already doing and your first click is an adjustment rather than a fresh start.
The result updates as you type, and the count under it says how many characters went. Nothing is uploaded — it all runs in your browser.
Repeated spaces, tabs, trailing spaces at the end of lines, excess blank lines, and the odd spaces left by PDFs and Word, including zero-width ones, each with its own setting.
Keep line breaks, the default, tidies spaces and blank lines and leaves your paragraphs and lists where they are. Remove all breaks turns every run of spaces, tabs and line breaks into a single space, so the text comes back as one line. Choose what to clean opens the same settings as checkboxes, starting from the mode you were in.
No. The default keeps every line break and brings several blank lines in a row down to one. Only Remove all breaks, or ticking Every line break under Choose what to clean, puts the text on one line.
Probably, yes. Most of what gets cleaned here is invisible by nature - a second space, a tab, a non-breaking space that looks like an ordinary one. The count under the result says how many characters went, which is the quickest way to tell.
PDFs store text as positioned fragments rather than flowing lines, so copying often introduces extra spaces and line breaks. This tool is the quickest way to undo that. Whitespace you cannot see at all is a separate problem: see the Invisible Character Remover for no-break spaces and zero-width characters.