Text Cleanup Tools

Strip out the formatting, markup, and mess that gets in the way of clean text — line breaks, extra spaces, duplicate lines, HTML tags, punctuation, numbers, and unsorted lists, all handled in your browser.

Most of this text-cleanup baggage comes from the same handful of sources: a PDF that came with page numbers and footnote markers baked into the copy, a CMS export that dragged its HTML tags along with it, a spreadsheet column pasted with an item number stuck to the front of every row, or a list that's accumulated duplicate entries after being merged from two sources. Each tool below targets one specific kind of mess rather than trying to guess and fix everything at once.

When text needs more than one fix, order matters. Strip structural markup (HTML tags) before you normalize whitespace, since removing tags can leave extra spaces or blank lines behind that a later pass should clean up. Save deduping and sorting for the end — a list is only genuinely free of duplicates once the whitespace and formatting around each line is already consistent, otherwise two lines that are "the same" except for a trailing space won't match.

A spreadsheet or CSV column usually needs Remove Numbers or Remove Punctuation followed by Sort Lines Alphabetically. A document pasted from a webpage usually needs Remove HTML Tags followed by Remove Blank Lines. A list merged from two sources usually needs Remove Duplicate Lines last, once everything else is normalized.

All Text Cleanup Tools

Frequently Asked Questions

What order should I run multiple cleanup tools in?+

Strip structure before you strip content: run Remove HTML Tags first if your text has markup, then Remove Spaces from Text and Remove Blank Lines to normalize whitespace, and run Remove Duplicate Lines or Sort Lines Alphabetically last, once the list is already clean — deduping or sorting a messy list just locks the mess into a different order.

Will these tools work on code and data, not just prose?+

Yes — several of them are used on code and structured data as often as on writing. Remove Duplicate Lines and Sort Lines Alphabetically are common for cleaning up lists, CSV columns, and config values, and Remove Blank Lines is frequently used on code files exported from one editor before pasting into another.

Can I undo a cleanup if I paste the wrong text or pick the wrong option?+

Each tool's Reset button restores the input box to whatever you originally pasted into it, as long as you haven't typed over it since. There's no multi-step undo history beyond that, so if you need to keep the untouched original around, copy it somewhere else before running it through a tool.

Do any of these tools require me to upload a file?+

No. Every tool here works by pasting text directly into a box — there's no file upload, and the text never leaves your browser. That also means there's no file-size limit tied to an upload; the only practical limit is how much your browser can comfortably hold in memory.