Clean a line
- Input or situation
- red apple
- Result
- red apple
With Trim each line and Collapse repeated spaces enabled, the ends are trimmed and the three internal spaces become one.
Clean up messy spacing: collapse repeated spaces, trim the ends of every line, remove blank lines and normalise the invisible non-breaking spaces that break search and layout.
Runs in your browser — your input is not uploaded to ToolsNow.
It is an invisible character (U+00A0) that looks identical to a normal space but is not treated as one. It gets pasted in from web pages and Word, and it silently breaks search, sorting and code. This tool converts them to ordinary spaces.
Collapsing reduces any run of blank lines to a single one, preserving paragraph breaks. Removing deletes them all, producing a solid block of lines.
Yes, if you collapse repeated spaces or trim lines — both destroy leading indentation. For code, use only the "Tabs → 2 spaces" option and leave the rest off.
Strips every space, tab and line break, joining everything into one unbroken string. It is useful for cleaning a copied hash, key or serial number.
Use this for prose or lists copied from a PDF, spreadsheet or web page. Start with the least destructive options and compare the result before replacing your original.
With Trim each line and Collapse repeated spaces enabled, the ends are trimmed and the three internal spaces become one.
Collapse blank lines keeps one empty line between paragraphs. Remove blank lines removes that separator completely.
Published by ToolsNow. How tools and sources are checked · Report a problem