Text Cleaner

Lines

Spaces & markup

Sort

Find & replace

Add to each line

0Lines in
0Lines out
0Duplicates
0Replaced

Free Online Text Cleaner

Clean up lists, spreadsheet columns, email addresses, keywords, or copied web text in one place. Remove duplicate lines, empty lines, and extra spaces, sort lines, join lines into one paragraph, strip HTML tags, and find and replace text, with the result updating as you tick each option.

Features:

  • Remove duplicate lines: keep the first copy of each line, with an option to ignore case.
  • Remove line breaks: turn a list or PDF copy-paste into a single paragraph.
  • Natural sorting: A to Z, Z to A, by length, or reversed, with item2 before item10.
  • Find and replace: plain text or regular expressions, with $1-style capture groups.
  • Prefix, suffix, and numbering: add bullets, quotes, or commas to every line.

1. Common Clean-up Recipes

• Unique email list: Remove duplicates + Ignore case + Remove empty lines.
• Fix text copied from a PDF: Remove line breaks + Collapse repeated spaces.
• Bulleted list: Trim + Remove empty lines + Prefix • .
• Alphabetical keyword list: Trim + Remove duplicates + Sort A → Z.

2. The Order of Operations

Options always run in a fixed order: strip HTML, find and replace, spaces, join lines, empty lines, duplicates, sort, then prefix, suffix, and numbering. That way the result is predictable whatever order you tick the boxes in. More tips in our guide: How to Remove Duplicate Lines.

Is there a size limit? No fixed limit. Everything runs in your browser, so tens of thousands of lines are processed instantly on most devices.
Can I apply more clean-ups after the first pass? Yes. Click "Use as input" to move the cleaned text back into the input box and apply different options.

100% client-side: your text never leaves your browser.

Related Tools