Skip to content
Briefed
Tools

Text

Text list cleaner

Clean a list on this page: trim spaces, drop blank and repeated lines, sort, and join with a new line, comma, or semicolon.

It runs in your browser. What you enter stays on this device.

The list stays in this browser.

Examples

Load a sample into the form, then run it.

How to use it

  1. 1Paste the list.
  2. 2Choose the separator for the result.
  3. 3Leave the cleanup switches on, or turn off the ones you want to keep.
  4. 4Choose Clean list and copy the result.

When it helps

  • Turn a messy paste into a unique list.
  • Sort names before you drop them into a spreadsheet.
  • Change one item per line into a comma-separated line.

Good to know

  • The list stays in this browser. It is not uploaded.
  • Duplicates match the whole line after trimming. Capital and lowercase letters stay different.
  • Sorting uses this browser's dictionary order.

Questions

Does a comma inside an item break the list?

When the separator is a comma, every comma starts a new item. Keep the new-line separator if your items contain commas.

Related tools

  • Text case converter

    Text case converter

    Change text to upper, lower, title, sentence, camel, pascal, snake, or kebab case.

    Text

  • Text diff

    Text diff

    Compare two texts and see added and removed lines.

    Text