When to use it
Day-to-day SEO work involves a lot of "half-dirty" text: keyword lists exported from GSC or Ahrefs with duplicate lines, URLs grepped out of logs mixed with blank lines, content pasted from spreadsheets full of extra spaces. This tool does all three jobs in one pass.
How to use it
- Paste the text into the input box on the left
- Tick what you need: clear empty lines / remove duplicate lines / collapse extra spaces (all on by default)
- Click "Clean up"; the result appears on the right and can be copied in one click
Processing rules
- Collapse spaces: consecutive spaces and tabs within a line become one space, and leading and trailing whitespace is removed (runs before the other rules)
- Clear empty lines: removes every empty line
- Remove duplicate lines: keeps the first occurrence of each line and deletes later identical lines (case-sensitive)
Limits
- Duplicates are judged by "the whole line is identical", so
https://a.com/andhttps://a.com(one slash apart) count as two lines — normalizing URLs before deduplication is a different problem - Processing happens in browser memory: tens of thousands of lines are fine; for logs of hundreds of MB, use command-line tools