Line sorter and deduplicator
Sort lines, remove duplicates and empty lines, and add text to the start or end of each line.
Runs in your browser. Nothing you enter is uploaded.
About this tool
This tool sorts lines, removes duplicate and empty lines, trims spaces and adds a prefix or suffix to every line. Sorting is natural, so item2 comes before item10, and it ignores case and accents when comparing. It also shows how many lines went in and how many came out.
- Is duplicate removal case-sensitive?
- Yes. Two lines count as duplicates only when they match exactly, after trimming if that option is on, and the first one is kept.
- How can I turn a list into a quoted, comma-separated one?
- Put a quote mark in Add to start and a quote mark plus a comma in Add to end. Each line is wrapped the same way, which is handy for SQL IN lists or arrays.