Support

Paste a column

Runs in your browser· your values are formatted in this tab and never uploaded

Options

Set “Values per group” to 1000 for an Oracle IN list; with a SQL column name the groups become col IN (...) OR col IN (...). Auto quoting leaves plain numbers bare and quotes the rest, so 007 stays text.

0 values, 1 empty lines dropped

Turn a column of values into a list

Paste values from a spreadsheet column or a query result and get them as a SQL IN list, a Python or JSON array, or a plain comma separated line. Choose the quotes and how they are escaped, remove duplicates and blank lines, sort, put each value on its own line, and split long lists into groups for databases with a limit. It runs in your browser.

Frequently Asked Questions

How do I convert a column to a comma separated list?
Copy the column from your spreadsheet or query result, paste it into the box (one value per line) and choose a format: SQL IN, Python list, JSON array or plain comma separated. The result updates as you type and has a Copy button.
How do I make a SQL IN list from a column?
Pick the "SQL IN" format. Numbers are left bare and text is single-quoted with any single quote doubled, so O'Brien becomes 'O''Brien'. Values with a leading zero, like 007, stay quoted so the zero is kept. Enter a column name to get the whole condition, for example user_id IN (1, 2, 3).
What if my list is longer than 1,000 values (Oracle)?
Oracle rejects an IN list with more than 1,000 values. Set "Values per group" to 1000 and enter the column name: the page writes col IN (...) OR col IN (...) with each group within the limit.
Is my data uploaded anywhere?
No. The list is built in your browser tab and nothing is sent to a server or stored. Even so, quoting is not a substitute for query parameters: for application code, pass values as bound parameters instead of pasting them into SQL.

Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.

Buy me a coffee →