List Converter
NEWConvert a list between separators: clean, dedupe, sort, change case, add quotes or prefixes and output a comma list, JSON array or SQL IN (...) clause.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Quick Examples
Typical inputs and the results this tool produces.
Overview
Lists travel in different shapes: one item per line in a spreadsheet, comma separated in a query, or a JSON array in code. This list converter reads a list with any common separator and writes it back in the shape you need.
On the way you can trim spaces, drop empty items and duplicates, sort A to Z, Z to A, by length or naturally so file2 comes before file10, reverse or shuffle the order, change the letter case, add a prefix, suffix or quotes, and number the lines.
Output as plain text, a JSON array or a SQL IN (...) clause with quotes escaped. It runs in your browser.
Why use this tool?
- Turn a column of values into a comma list in seconds
- Clean, dedupe and sort in one pass
- Natural sort handles numbers inside names
- Ready-made JSON array and SQL IN output
- Your list never leaves the browser
Features
Any separator in and out
New line, comma, semicolon, tab, space, pipe or your own text.
Clean up
Trim items, remove empty ones and drop duplicates, with optional case-insensitive matching.
Sort, reverse, shuffle
A–Z, Z–A, natural, by length, reversed or shuffled again on demand.
Case and wrapping
UPPER, lower or Title Case, plus quotes, backticks, brackets and a prefix or suffix.
JSON and SQL output
A JSON array or a SQL IN (...) list with single quotes escaped.
Live counts
See how many items went in, came out and were removed.
How to Use
Paste your list
Put the items in the box and choose how they are separated.
Clean and order
Tick trim, remove empty or duplicates and pick a sort order.
Choose the output
Pick a plain list, JSON array or SQL IN list and how to join the items.
Copy the result
Press Copy to take the converted list.