List Converter
Paste a column or list, then turn it into a comma-separated line, a quoted SQL IN-list, a JSON array, or any shape you need. Split, clean, sort, wrap each item, and join - all in your browser.
Paste a column or list, then turn it into a comma-separated line, a quoted SQL IN-list, a JSON array, or any shape you need. Split, clean, sort, wrap each item, and join - all in your browser.
It takes a list of values and reshapes it. First it splits your input into items - by line, comma, space, tab, or a delimiter you type. Then it cleans them up: trim surrounding whitespace, drop blank entries, and remove duplicates. You can sort the items, wrap each one with a prefix and suffix (handy for quotes or brackets), and finally join them with any separator. The classic use is pasting a spreadsheet column and getting back 'a', 'b', 'c' for a SQL query.
Paste your values into the input box. Pick how to split them with 'Split input by' - new line is the default for a pasted column. Toggle 'Trim items', 'Remove empty', and 'Remove duplicates' to clean the list, and 'Case sensitive' to control whether 'Apple' and 'apple' count as the same. Set a prefix and suffix (the quote and bracket buttons fill these in fast), choose what to 'Join with', and copy the result. The item count updates as you go.