Skip to content
TabKiwiTabKiwi

SQL IN Clause Generator

Paste a list of IDs or names and get a correctly quoted WHERE … IN (…) clause, deduplicated.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Paste values, one per line or separated by commas.
  2. Enter the column name and choose a quoting style.
  3. Set a maximum list size if your database needs one.
  4. 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.

More Developer tools

View all 91 →