Combination Generator
Put one group of numbers per line. A combination takes one number from every line and all combinations are listed — a Cartesian product across groups, not the permutations of a single set.
Joiner:
Separator:
Max Combinations:
Generated Number
Download CSV
| Group | Generated Number |
|---|
Introduction to the tool and how to use it
The multiline combination generator lists every pairing of several groups of numbers at once, for example colors 1,2,3 paired with sizes 4,5 gives 6 combinations, or codes 01,02 paired with regions 11,12,13 gives 6 sample rows.
Note: this tool builds the Cartesian product by picking one value from each group, not the positional permutations of a single group; if you only need full permutations of one set of numbers, use a permutation tool. Generation proceeds with the last group changing fastest, so results are stable and reproducible.
Note: this tool builds the Cartesian product by picking one value from each group, not the positional permutations of a single group; if you only need full permutations of one set of numbers, use a permutation tool. Generation proceeds with the last group changing fastest, so results are stable and reproducible.
How to use
- Type one group of numbers per line in the input box; values inside a line may be separated by commas, spaces, or any symbol.
- Set the connector that joins the numbers inside a combination; it defaults to a half-width hyphen and can be changed to empty, an underscore, and so on.
- Set the separator between combinations — \\n by default puts one combination per line; switch to a half-width comma to join them into one line.
- Set the combination cap — the total count is the product of the per-line counts and grows very fast; once the cap is hit only the first several are output (default 5000, max 20000).
- Optionally tick Ignore blank lines: when unticked, a blank line is treated as a group (with no numbers, producing an empty result).
- Optionally tick Keep unique: when ticked, repeated numbers within a line count once, and the results are deduplicated once too.
- Click start; results go to the text box and the table below (index / combination, copy in place), and the table can be downloaded as CSV.
Message board
All messages →-
No one has spoken up yet — want to go first?