Cartesian Product Calculator
Generate ordered combinations from up to eight lists of text values. Processing takes place locally in your browser.
Start using
What this tool actually does
Enter one group per line, separating values with ordinary or Chinese commas. Whitespace around each value is trimmed; blank lines are ignored and common newline styles are normalized. Values are text labels, not parsed numbers.
Checkable behavior
The result contains every ordered tuple choosing one item from each group, with multiplication signs between values and one tuple per output line. The last group's values change fastest.
Controls, output and limitations
For red,blue on line one and S,L on line two, the four lines are red × S, red × L, blue × S and blue × L. Tuple count is the product of the group sizes.
Limits are 8 groups, 100 entries per group, 10000 output tuples and 500000 input characters. Oversized combinations are rejected before enumeration. Empty input returns empty output.
Repeated labels are retained and can produce identical-looking tuples. A trailing comma creates an empty-string entry. The parser does not support quoted CSV fields containing commas or decimal-comma numbers as single values. Processing stays in the browser with copyable text.
One group is also accepted. Length limits count UTF-16 code units, so some emoji count as two: input at most 500000 units and estimated output at most 1000000 units. There is no configurable delimiter or file download; commas inside a value must be replaced before input.
Processing takes place locally in your browser.