Cleaning text pasted from a document
Copy from a formatted source often brings inconsistent spacing. This evens it out and strips the invisible padding.
Remove extra spaces from text in your browser, collapsing runs and trimming each line.
Maintained by Roshan.
Converts text to tidied text in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all text toolsText picks up messy whitespace constantly - double spaces left after editing, trailing spaces at the ends of lines, padding from a copy-paste out of a formatted document, stray tabs that a form rejects. Tidying it by hand is fiddly precisely because much of the mess is invisible: a trailing space looks like nothing at all until a comparison fails or a field complains. This tool cleans each line, collapsing any run of spaces or tabs down to a single space and trimming the whitespace from both ends, while keeping the lines themselves intact. So a paragraph with erratic spacing becomes evenly spaced, and lines padded with invisible trailing characters are trimmed, without the line structure being disturbed.
Copy from a formatted source often brings inconsistent spacing. This evens it out and strips the invisible padding.
A form that rejects leading or trailing spaces accepts the tidied text without complaint.
No. It keeps the lines and only tidies the spaces within and around each. Use remove line breaks to join lines.
Yes. Runs of spaces collapse to one, so deliberate multi-space alignment is lost. That is usually the intent.
Yes, and those are often the point - invisible trailing spaces that break comparisons are trimmed.
A tab within a line becomes a single space, so tab-aligned columns lose their alignment.
Remove line breaks from text in your browser, collapsing it into a single line without merging words.
Remove duplicate lines from text in your browser, keeping the first occurrence and the original order.
Reverse text in your browser, correctly handling emoji and accented characters.