SQL IN Clause Generator

Add a prefix and suffix to every number, then join them with a separator — ready for SQL IN lists, JSON arrays or a single CSV row.
Prefix:   Suffix:   Separator:
Line Mode:   Items Per Line:
Calculation Result Download CSV
Group Quantity Result

Introduction to the tool and how to use it

The number-string generator turns a row of numbers into strings ready to paste into code or SQL — for example, 1 to 20 becomes a quoted 1, 2, …, 20 that can go straight into an IN clause, or becomes a JSON array.
Note: numbers keep their original form (including leading zeros) by default; turn off keep leading zeros and 007 becomes 7.

How to use

  1. Paste numbers into the input box; commas, spaces, line breaks, or any symbol can separate them.
  2. Set the prefix and suffix — single quotes by default, most handy for SQL conditions; you can switch to double quotes or leave them empty.
  3. Set the separator between numbers (a half-width comma by default).
  4. Choose line wrapping: join everything on one line, or break every N numbers (easier to read and copy).
  5. Click start; the text box on the right outputs the joined result, the table below lists group number / count / content row by row (copyable in place), and CSV can be downloaded.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?