⚙ Text Mechanic

Combination Generator

Generate all unique subsets and combinations (n choose k) from a list of items or words. Fast, private, mathematical combination generator.

How to Use Combination Generator

  1. Provide Input Items: Enter the items or lines of text to combine.
  2. Specify Subset Size (K): Enter how many items should be in each combination (e.g. 2, 3, or all).
  3. Generate Subsets: View every unique combination with live combinatorial counts.

Key Features & Capabilities

  • N Choose K Formula: Accurate combinatorics calculation: C(n, k) = n! / (k! * (n-k)!).
  • Custom Separators: Customize the delimiter between items inside each combination.
  • Subset Exploration: Option to generate combinations of a fixed size K or all possible subset sizes.
  • 100% In-Browser Privacy: Your text never leaves your device or touches an external server.

Common Use Cases

  • Tournament & Matchup Pairing: Generate all unique head-to-head pairs among teams or tournament players.
  • Feature Flag Testing: Generate combinations of options to test software feature interactions.

Frequently Asked Questions

What is the difference between permutations and combinations?
In permutations, the order matters (e.g. A-B is different from B-A). In combinations, order does not matter (A-B and B-A are the same subset).
Can I generate all pairs (size 2)?
Yes! Set K = 2 to generate every possible 2-item pair from your list.

Related Text Utilities

Permutation Generator
Calculate and generate all possible permutations of words or items
Shuffle / Randomize Lines
Randomize the order of lines using the Fisher-Yates shuffle algorithm
Lists Comparison Tool
Compare two lists to inspect Common items, Unique to A, Unique to B, or Union
Join / Merge Text Line by Line
Combine two distinct lists line-by-line using a custom separator