Column to SQL IN List
Paste a column from Excel or a query result and get a ready-to-run SQL IN clause, Python list or JS array.
Runs entirely in your browser — nothing is uploadedInput
Output
About the Column to SQL IN List
The single most common ten-second task in data work: someone hands you a column of IDs in a spreadsheet, and you need it as IN ('a', 'b', 'c'). Paste the column straight from Excel, Google Sheets, or a query result grid — newline, tab, comma and space separated input are all detected automatically.
Options cover the things that actually bite: quote style, strict round-trip-safe detection of numeric values so they are left unquoted (zero-padded IDs like 007 stay quoted, because unquoting them would silently change which rows match), trimming stray whitespace, dropping blank lines, de-duplicating, sorting, and wrapping long output at a sensible line width so it stays readable in a code review.
Oracle chunking is built in. Oracle raises ORA-01795 when an IN list exceeds 1000 entries, so the tool can automatically split the output into chunks of 1000 joined with OR, which is the standard workaround and a genuinely tedious thing to do by hand.
Output formats include a SQL IN (…) clause, VALUES rows for a join or temp table, a Python list, a JavaScript array, and a plain comma-separated string. A live count badge shows how many values you have after de-duplication.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Why does Oracle fail with more than 1000 values?
Oracle enforces a hard limit of 1000 expressions in a single IN list and raises ORA-01795. Enable chunking and the tool emits groups of 1000 combined with OR, which is the conventional workaround. For very large sets, loading the values into a temporary table and joining is usually faster than a giant IN list.
Will it keep numbers unquoted?
Yes, if you enable numeric detection — and it is deliberately strict about it. A value is only treated as a number when it survives a round-trip unchanged, so zero-padded identifiers like 007, exponent-shaped strings like 12E5, and integers too long for exact representation stay quoted. That matters: emitting 007 unquoted would make SQL read it as 7 and quietly return the wrong rows.
Can I paste directly from Excel?
Yes. A column copied from a spreadsheet arrives as newline-separated text and is handled automatically, including the trailing blank line Excel usually adds.
How do I handle values containing apostrophes?
Single quotes inside values are escaped by doubling them, per the SQL standard, so a name like O'Brien becomes 'O''Brien' and runs correctly.
Is there a limit on how many values I can paste?
No hard limit. Tens of thousands of rows process instantly since it is plain string work in your browser.