Clean up pasted text

Whitespace, trim and blank-line options are on and a messy sample is loaded. Paste your own text and the cleaned version appears beside it.

Numbers this page is built onDouble spacesto oneBlank linesto oneTrimeach lineFull tool ↗
100% in-browser Free & unlimited No sign-up No upload

Input

Clean-up options

Result

0 → 0
Runs in this tab

Every option runs on the text in this box, in this tab. Nothing is sent to a server. The result updates as you type or change an option.

Measured reference table

What each option changes.

OptionChangesWatch out
Collapse spacesdouble to singleindentation is lost
Trim linesremove edgesnone
Blank linesruns to oneparagraph breaks kept
Remove newlinesone linestructure lost

Destructive options (newline removal, HTML stripping) should only be used when intended.

Common mistakes and the fix

Copy from PDF then clean

PDFs insert odd spaces that look normal. Clean, then copy back.

Tables are not text

Tabs becoming spaces breaks columns. Use CSV for tables.

Nothing is stored

The pasted text disappears when the tab closes.

Recommended tools

Useful services for this job

Frequently asked questions

Can it remove line breaks too?

Yes, as an option, but paragraphs disappear.

Does it strip HTML?

With the HTML option on, yes — useful for newsletter copy.

Can I paste into Excel?

Column separators are not preserved.