TextArray
100% local

Combination generator

Generate every combination of k items from a list, with or without repetition.

Input
Output

Combination generator

Paste a list with one item per line, pick a combination size, and the tool prints every combination of that size. Combinations ignore order: from a, b, c at size 2 you get "a, b", "a, c" and "b, c" — never "b, a", because that is the same pair. Use it to draw up round-robin fixtures, list every pairing of test variants, build tasting flights, enumerate lottery tickets, or work out which subsets an experiment has to cover.

The size field is the k in "n choose k". Turn on "Allow repetition" to switch from plain combinations to multisets, where an item may appear more than once inside one line — that is what you want for dice rolls, topping choices or anything where the same option can be picked twice. "Remove duplicate items" cleans your list before combining, so a value pasted twice does not quietly double every row. The separator controls how items are joined on each line: comma, space, tab, nothing at all, or your own string, where \t stands for a tab.

Combination counts grow fast — 40 items at size 5 is already 658,008 rows, and 60 items at size 5 runs to millions. The tool therefore counts the combinations before generating a single line. If the result would pass the 10 MB output limit it names the exact count and stops instead of freezing the tab, so you can lower the size or shorten the list and try again.

Everything runs inside your browser and your list is never uploaded, which keeps product codenames, customer names and unreleased SKUs on your own device. The tally under the output shows how many items you gave it and how many combinations came back, and it recomputes live as you type.

FAQ

What is the difference between combinations and permutations?
Combinations ignore order, so "a, b" and "b, a" are the same result and only one of them is printed. Permutations count order as meaningful and would list both. This tool generates combinations.
What does "Allow repetition" change?
Without it, each item is used at most once per line, giving C(n, k) results. With it, an item may repeat inside a line — "a, a" becomes valid — which gives C(n + k − 1, k) results and also lets the size exceed the number of items.
Why does the tool refuse to generate and show a number instead?
Because the requested combinations would exceed the 10 MB output limit. The count is calculated before anything is generated, so you get the exact figure and a responsive page rather than a frozen tab. Lower the combination size or shorten your list.
What happens if the size is larger than my list?
Without repetition there are no valid combinations, so the output stays empty. With repetition turned on the size can safely exceed the list length, because items are allowed to repeat.
Is my list uploaded anywhere?
No. The combinations are generated entirely in your browser and your list never leaves your device.