Have a column of IDs from a spreadsheet, log, or query result and need them inside a WHERE id IN (...)? Paste the list and this tool assembles a clean, correctly quoted SQL IN clause ready to drop into your query.
How it works
The builder runs a small pipeline:
- Split the input on newlines, commas, semicolons, or tabs, trim each piece, and drop empties.
- De-duplicate (optional) by keeping the first occurrence of each value.
- Quote each value. In auto mode, anything matching a clean number pattern stays bare and everything else is wrapped in single quotes with
'escaped as''. You can also force always-quote or never-quote. - Assemble
column IN (...)— orNOT INif toggled — joining values inline, or one per indented line in multiline mode.
Example
Pasting 1001, 1002, 1002, 1007 with column id, auto quoting, de-dupe on:
id IN (1001, 1002, 1007)
A list of strings like GB, US, FR becomes:
country IN ('GB', 'US', 'FR')
| Option | Effect |
|---|---|
| Auto quoting | Numbers bare, strings single-quoted |
| De-duplicate | Removes repeated values |
| NOT IN | Swaps IN for NOT IN |
| Multiline | One value per indented line |
Everything runs in your browser — nothing is uploaded.