T TextTools

Combination Generator

Generate every unordered combination of K items chosen from your list — every way to pick a subset of the size you specify.

Advertisement

How to use Combination Generator

  1. Enter your items one per line.
  2. Set k — the size of each combination.
  3. Pick the separator that joins items inside one combination.
  4. Click Generate.

What is Combination Generator?

Combinations are unordered subsets: choosing apple and banana is the same as banana and apple. This tool builds every C(n, k) subset from your input items and prints them line by line. Output is capped at 10,000 entries so large inputs do not freeze the browser; the status line tells you when the cap was hit.

Advertisement

FAQ

What is the difference from permutations?
Combinations ignore order — 'a, b' and 'b, a' count as the same subset. Permutations treat the two orderings as different.
Can I get k = 0?
k must be at least 1. To list every subset of every size, run the tool repeatedly for k = 1 through the size of your list.

Related tools