RelicRELIC

Text Cleaner

Tidy messy text: collapse spaces, trim lines, drop empty lines.

Runs entirely in your browser. Nothing you type is uploaded.
Input
Result
Result appears here…

What it does

Tidy messy pasted text by collapsing extra spaces, trimming lines, and removing empty lines. It all runs in your browser, so the text you paste is never uploaded anywhere.

For the text you keep reworking

If you are cleaning up text you copied from somewhere, you will probably want the original again later. Relic keeps an encrypted, searchable history of everything you copy, on every device, so the version you started from is always one search away.

Frequently asked questions

How do I clean up messy text?

Paste it in and the tool collapses runs of extra spaces down to one, trims the whitespace off the start and end of every line, and removes empty lines completely. What you get back is tidy, evenly spaced text ready to reuse.

What exactly does the text cleaner remove?

Three things at once: doubled-up spaces and tabs (collapsed to a single space), leading and trailing whitespace on each line, and blank lines. Your actual words and single line breaks between content stay put.

Does it keep my paragraph breaks?

Empty lines are removed, so gaps you were using to separate paragraphs will close up. If you need those blank lines preserved and only want spacing fixed, use our whitespace remover, which leaves empty lines alone.

Why is text I copied from a PDF or website so messy?

PDFs, emails, and web pages carry hidden formatting: stray tabs, double spaces, and blank lines that come along for the ride when you copy. Running the text through here strips that clutter so it behaves when you paste it elsewhere.

Is my text uploaded when I clean it?

No. The cleaning runs live in your browser, so whatever you paste never leaves your device.

More free tools
Number Lines
number lines
Alphabetize List
alphabetize list
Reverse Text
reverse text
Line Counter
line counter
Remove Line Breaks
remove line breaks
Mirror Text
mirror text
All tools