List Converter
Sort, dedupe, trim, re-case and wrap a list of lines, then join them, locally.
Clean up and reshape a list of lines
This tool takes a block of text, one item per line, and runs it through a chain of list operations: trimming, removing empty lines, deduping, sorting, reversing, changing case, wrapping each line with a prefix or suffix, and joining the result with a separator you choose. It's built for the everyday chore of cleaning up a pasted list, a customer email list, a set of IDs, a column copied from a spreadsheet, before it goes somewhere else.
How to use the List Converter
- Paste your list into the input panel, one item per line.
- Toggle Trim, Remove empty, Dedupe and Reverse as needed.
- Choose a Sort mode (A to Z, Z to A, numeric, or by length) and a Case transform.
- Add a Prefix or Suffix to wrap each line, such as quotes or a comma.
- Pick how items should be joined (new line, comma, space, or pipe) and copy the output.
Numeric sort parses each line with `parseFloat`, so non-numeric lines sort as `NaN` and can end up in unpredictable positions; use it only on lists that are actually numbers. Dedupe compares exact string matches after trim and case options are applied, not fuzzy matches.
Frequently asked questions
- How do I remove duplicate lines from a list?
- Turn on the Dedupe toggle. It keeps the first occurrence of each exact line and drops the rest, applied after trim and case transforms so differently spaced duplicates are still caught.
- Can I sort a list of numbers correctly, not alphabetically?
- Yes, choose the Numeric sort option, which parses each line as a number before comparing, so 2 sorts before 10 instead of being sorted as text.
- How do I wrap every line in quotes or add a trailing comma?
- Use the Prefix and Suffix fields, for example a double quote as prefix and `",` as suffix, and every line gets wrapped the same way before the list is joined.
- Can I turn my list into a comma-separated line?
- Yes, set the "Join with" option to Comma (or Space or Pipe) instead of New line, and all remaining lines are joined into a single line with that separator.
- Does the list I paste get uploaded anywhere?
- No, every transform, trimming, sorting, deduping and joining, runs as plain JavaScript in your browser, so a pasted customer list or internal ID set never leaves your machine.