Sort, Deduplicate & Transform Lines

Sort lines alphabetically or numerically, remove duplicate and empty lines, trim, reverse, shuffle, number, join, split, filter and wrap lines of text.

Runs 100% in your browser. Nothing you paste is uploaded.

Text

About the Sort & Dedupe Lines

Clean up lists of IDs, emails, log lines or package names. Apply operations one after another — remove empty lines, trim, dedupe, sort — and undo any step. Join lines into a comma-separated list for an SQL IN (…) clause, or split a CSV row back into lines.

Features

  • Alphabetical, numeric and length sort
  • Remove duplicates (optionally case-insensitive)
  • Remove empty lines, trim whitespace
  • Reverse, shuffle, number lines
  • Add prefix/suffix (e.g. quotes)
  • Join and split
  • Filter lines by substring
  • Undo history

How to use it

  1. Paste your lines.
  2. Click operations in any order.
  3. Copy the result.

Frequently asked questions

How do I build an SQL IN list?

Use prefix ' and suffix ', click Add prefix/suffix, then join with , .

Esc