About this tool
Copy a column from a spreadsheet or a ticket, paste it here and get an IN list ready to drop into a WHERE clause. Numbers stay unquoted, text is wrapped in single quotes with embedded quotes escaped, and duplicates and blank lines are removed. If your database limits list length, such as Oracle's 1,000-item cap, the list is split into several IN groups joined with OR. Nothing is uploaded.
How to use SQL IN Clause Generator
- Paste values, one per line or separated by commas.
- Enter the column name and choose a quoting style.
- Set a maximum list size if your database needs one.
- Copy the clause into your query.
Frequently asked questions
When are values left unquoted?
In Auto mode, values are only left bare when every item is a number. Otherwise all items are quoted so the list stays type-consistent.
How does NOT IN chunking work?
When NOT IN is split into several groups, the groups are joined with AND so a row is excluded if it matches any of them.