Text cleaner

Extra spaces · Blank lines · Invisible characters · Tabs · Line endings

Paste messy text and get it back tidy — and see exactly what was wrong with it. Every pass is optional and reports how many times it fired.

0 characters · 0 words · 0 lines

Drop a text file here, or . It is read in your browser and never uploaded.

0 characters

What makes pasted text messy

Text copied out of a PDF carries the line breaks of the page it was set on, not of the sentences. Text from a web page or a word processor carries non-breaking spaces, which look exactly like ordinary spaces but are a different character — so a search for "John Smith" will not find "John Smith", and a spreadsheet will sort the two apart.

Copying out of a chat app or a CMS can also bring zero-width characters along. Those have no width at all, so a name or a code that looks correct fails validation for no visible reason. All three are invisible problems, which is why this tool counts what it found rather than just handing back tidier text.

A worked example

Paste an email that came out of a PDF: double spaces after full stops, a space before every comma, four blank lines where a page broke, and trailing spaces on every line. With the default passes that becomes single-spaced prose, one blank line between paragraphs, and no trailing whitespace — and the report tells you there were 12 trailing spaces and 3 blank-line runs, which is what tells you the source was a PDF.

Frequently asked questions

Is this text cleaner free?

Yes, with no account and no length limit.

What does it actually change?

Only what you tick. Each pass reports how many times it fired, so you can see that a paste carried 47 non-breaking spaces rather than taking "cleaned" on trust.

Why is my pasted text full of strange spaces?

Word processors, web pages and PDFs use non-breaking spaces to stop lines splitting awkwardly. They look identical to a normal space but are a different character, so search, sorting and code all treat them as foreign. Replacing them is usually the single biggest fix for pasted text.

Will it break my indentation or code?

It can — collapsing runs of spaces and trimming lines will flatten indentation. For code, untick "Collapse runs of spaces" and "Trim each line" and keep the invisible-character and line-ending passes, which are the ones that matter there.

Does it change curly quotes?

Only if you ask. Straightening punctuation is off by default because curly quotes are correct in prose; turn it on when the text is going somewhere that mangles them, like a CSV, a terminal or a code comment.

Will it damage text in Arabic, Persian or Hindi?

No, not with the defaults. The zero-width non-joiner and joiner are required in those scripts — they decide how letters connect — so they are left alone unless you tick the option that names them. Everything else removed here is invisible in every language.

Can I undo?

Your text is never changed in place: the result appears beside the original. "Apply to input" moves the result across so you can run another pass on it, and Undo puts the previous version back.

Is my text uploaded?

No. Every pass runs in your browser, so contracts, drafts and customer lists never leave your device.