Writing · 6 November 2026

How to Clean Up Messy Text in Minutes

Extra spaces, duplicate lines, curly quotes and invisible characters: fix the usual problems in copied text.

Text copied from a PDF, a website or a chat app is rarely clean. It brings along extra spaces, odd line breaks and characters you cannot even see. Here is a quick routine.

1. Strip the spacing

Paste it into Remove Extra Spaces to collapse double spaces and tidy line ends. PDFs are the worst for this because every line becomes a separate paragraph.

2. Remove repeats

For lists of names, emails or SKUs, run them through Remove Duplicate Lines. Tick ignore case, so "Delhi" and "delhi" count as the same.

3. Replace in bulk

Find and Replace handles repeated edits, like changing a company name or fixing a wrong date format. Regular expressions are supported when you need patterns.

4. Hunt invisible characters

If a coupon code or username "looks right" but fails, there may be a zero-width space hiding in it. Remove Zero-Width Characters shows how many were found and strips them.

5. Fix quotes before pasting into code

Word processors turn quotes into curly ones, which break JSON, SQL and spreadsheets. Convert them with Smart Quotes to Straight Quotes.

It takes under a minute and saves an afternoon of debugging.

Tools mentioned in this article