Permutation and Combination Generator
Generate and list every combination or permutation from the items you enter.
Choose whether to allow or ignore duplicates, and download the results as CSV.
Want every combination across multiple attributes? Try the All Combination Pattern Generator →
Combination: only results that include the chosen item are generated.
- Enter items: Type one item per line (e.g. A, B, C, D, E).
- Choose a mode: Combination (order does not matter) or Permutation (order matters).
- Set the length: Enter how many items to pick (r).
- Duplicate handling: Choose what happens when the same item is entered more than once.
- Generate: Click “List results” to display combinations or permutations.
- Combination: Order is ignored (e.g. ABC and BAC are the same).
- Permutation: Order matters (e.g. ABC and BAC are different).
- Ignore duplicates: Identical results are shown only once.
- Allow duplicates: Repeated items are treated as distinct elements, so every result is shown.
- Permutation mode: Generates only the permutations that have the chosen item locked at the chosen position, e.g. fix “5” at position 2.
- Combination mode: Since order does not matter, the condition means “must include the chosen item” instead of a position.
- Use “+ Add a condition” to combine several conditions. The total count is recalculated automatically with the conditions applied.
Input: 1-9 (9 items), r = 4, Permutation, ignore duplicates
Fixed condition: fix “5” at position 2
Result: only permutations whose 2nd item is 5 (9P4 = 3,024 results → 336 results)
Input: A, A, B, B, C
r = 3, Combination, ignore duplicates:
Result: AAB, AAC, ABB, ABC, BBC (5 results)
Input: A, A, B, B, C
r = 3, Combination, allow duplicates (= 5C3):
Result: 10 results.
* Identical items are still counted as distinct elements.
Input: A, A, B, B, C
r = 3, Permutation, ignore duplicates:
Result: AAB, ABA, BAA, AAC, ACA, CAA, ABB, BAB, BBA, ABC, ACB, BAC, BCA, CAB, CBA, BBC, BCB, CBB (18 results)
Input: A, A, B, B, C
r = 3, Permutation, allow duplicates (= 5P3):
Result: 60 results.
* Identical items are still counted as distinct elements.
- List preview: up to 500 rows
- List button: enabled for up to 200,000 results
- CSV export: up to 2,000,000 results
- Processing time limit: 10 seconds
- For large result sets, please use the CSV download.
- You can interrupt processing with the “Stop” button.
- Empty lines and surrounding spaces are removed automatically.
- Can I calculate how many combinations there are?
- Yes. Enter your items and the number to pick (r), and the total count appears automatically, along with the nCr / nPr formula.
- What is the difference between a combination (nCr) and a permutation (nPr)?
- A combination ignores order (ABC and BAC are the same = nCr). A permutation cares about order (ABC and BAC differ = nPr). Switch between them with the generation mode.
- Can I list every pattern or export to CSV?
- You can preview up to 500 rows with “List results”, and export every result (up to 2,000,000) with “CSV download”.
- How are duplicate items handled?
- “Ignore duplicates” merges identical results into one; “Allow duplicates” treats repeated items as distinct and counts them all.
- Can I lock an item at a specific position?
- Yes. Use “Fixed conditions” to choose an item and a position, and only permutations with that item locked at that position are generated (e.g. fix “5” at position 2). In combination mode, the condition works as “must include the chosen item”.
