SQL IN Generator

Paste IDs or values from a spreadsheet and get a ready-to-use IN (...) clause.

● Your files are processed locally in your browser and are not uploaded to our servers.

How it works

Values are split on new lines, commas, semicolons or tabs (so you can paste a spreadsheet column). Single quotes inside values are escaped by doubling them. Oracle allows at most 1,000 items per IN list, so you can split into several IN clauses joined with OR.

FAQ

Is there a limit on the number of values?

Most databases accept thousands, but very long lists are slow. Consider a temporary table for huge lists.