Permutation and Combination Generator

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 →

This tool has been used times.

Items
Empty lines are ignored. Leading and trailing spaces are trimmed automatically.
Mode:
Duplicates:
Fixed conditions (optional):
Permutation: locks an item at a specific position (e.g. fix “5” at position 2).
Combination: only results that include the chosen item are generated.
Result
Total combinations:
* Up to 500 rows are shown in the list.
Processing…
Processing…
How to use
Basic steps
  1. Enter items: Type one item per line (e.g. A, B, C, D, E).
  2. Choose a mode: Combination (order does not matter) or Permutation (order matters).
  3. Set the length: Enter how many items to pick (r).
  4. Duplicate handling: Choose what happens when the same item is entered more than once.
  5. Generate: Click “List results” to display combinations or permutations.
Combination vs. Permutation
  • Combination: Order is ignored (e.g. ABC and BAC are the same).
  • Permutation: Order matters (e.g. ABC and BAC are different).
Duplicate handling
  • Ignore duplicates: Identical results are shown only once.
  • Allow duplicates: Repeated items are treated as distinct elements, so every result is shown.
Fixed conditions (lock a position / require an item)
  • 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)

Examples

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.

Limits
  • 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
Notes
  • 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.
FAQ
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”.

Please also review the Terms of Use for this web app before using it.

Found a bug or have feedback? Let us know here.

Report bugs, display issues, usability problems, or suggestions for improvement.
Consent
・This form is for bug reports only. In principle, we do not respond to individual submissions.
・If a submission contains defamatory, threatening, or otherwise inappropriate content, we may take appropriate action based on logs such as IP addresses.

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
目次