SQL IN Clause Generator
Paste a list of values, one per line or separated by commas, and get a quoted, deduplicated SQL IN (...) clause.
Runs in your browser. Nothing leaves this device.
Open SQL IN Clause Generator
Free, no account, no watermark and no daily limit.
How to use SQL IN Clause Generator
- 1Paste the values, one per line or separated by commas.
- 2Type the column name and pick how values are quoted.
- 3Copy the clause into your query.
Questions
When are values quoted?
On Auto, a list of only numbers stays unquoted and anything else is quoted as text. Single quotes inside a value are doubled, so O'Brien becomes 'O''Brien'.
Why split every 1,000 values?
Oracle allows at most 1,000 items in one IN list. The split joins several IN lists with OR, which every database accepts.
Can I paste a column from a spreadsheet?
Yes. Line breaks, commas, semicolons and tabs all separate values, and blank lines are skipped.
Is my list sent anywhere?
No. It stays in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.