Cartesian Product Calculator
One set per line, elements separated by commas or spaces - the full Cartesian product is listed on every run
Joiner:
Separator:
Max results:
Group display:
Calculation Result
Download CSV
| No. | Combination |
|---|
Introduction to the tool and how to use it
Cartesian product calculator: treat the numbers on each line as a set, list every combination produced by crossing all sets at once (A × B × C …), and report the size of the Cartesian product.
How it differs from the multi-line permutation generator: this tool targets multi-set cross products, with emphasis on a custom connector (may be left empty), grouped display, and an explicit statement of the product size; elements are recognized as numbers, so you can define each set value range first and join them into codes.
Safety limits: up to 12 sets, at most 200 elements per set, up to 20,000 output rows, and no more than 200,000 output characters. On exceeding a limit, output shrinks automatically with a notice, and the stats still report the actual rows output and the theoretical total combinations.
How it differs from the multi-line permutation generator: this tool targets multi-set cross products, with emphasis on a custom connector (may be left empty), grouped display, and an explicit statement of the product size; elements are recognized as numbers, so you can define each set value range first and join them into codes.
Safety limits: up to 12 sets, at most 200 elements per set, up to 20,000 output rows, and no more than 200,000 output characters. On exceeding a limit, output shrinks automatically with a notice, and the stats still report the actual rows output and the theoretical total combinations.
How to use
- Enter one set per line, elements separated by commas or spaces, for example:
1,2,3
4,5. - Adjust parameters as needed:
· Connector: how elements within a combination are joined; left empty means direct concatenation (1 and 4 become14), often used to build long IDs from the numbers in each set;
· Output separator: how results are separated; default puts each combination on its own line, or enter,to join onto one line;
· Group display: mark which set each element comes from with parentheses(1)-(4)or brackets[1]-[4];
· Max output: upper limit on result rows (1 to 20,000). - Click Start calculation; the stats report N output out of M total combinations, and the table lists index and combination row by row.
Message board
All messages →-
No one has spoken up yet — want to go first?