Paste your text
From a web page, a PDF, a document or an email.
Paste your text and fix its spacing: repeated spaces become one, spaces at the start and end of lines disappear, and odd space characters turn into normal ones.
100% private — your text is processed in your browser and never sent to any server.
Keep going with your result in another tool. Nothing is uploaded.
From a web page, a PDF, a document or an email.
Tidy the spacing, remove every space or join all lines into one.
Paste the tidy text wherever you need it.
Extra spaces are easy to overlook and surprisingly costly. A double space between words looks sloppy in a published text. A space at the end of a name stops a lookup from matching in a spreadsheet. Spaces before a comma break the look of a paragraph, and a "space" that is actually a non-breaking space refuses to be found by a search. This tool normalises all of them in one step.
The second action deletes all spaces, tabs and non-breaking spaces while keeping the line breaks. It is what you need for a phone number written as 612 34 56 78, a bank account number copied with groups, a code that should not contain spaces or a string you want to compare without spaces.
The third action replaces every line break, together with the spaces around it, with a single space. It is a quick way to turn a text that was wrapped at a fixed width into one continuous paragraph.
The tool works on characters, not on meaning. The punctuation option follows simple rules and is designed for ordinary prose; check the result if your text contains code, decimal numbers, URLs or languages with their own spacing conventions. Spaces inside quoted strings and code are treated like any other spaces. To remove blank lines as well, use the remove empty lines tool.
More utilities that also run without leaving your browser.