Create Integer n-Tuples

The Create Integer n-Tuples tool generates every possible combination of n integers from a list you provide. Whether you’re creating test cases, dataset features, permutations for logic puzzles, or structured numeric outputs, this tool gives you complete control.

You can choose whether tuples allow duplicates or not, set a separator between items, and format output live in your browser.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total tuples: 0
Options


Ignore non-integers
Allow duplicate items
Maximize output

How to Use:

  • Paste integers into the Input Integers box (separated by line, comma, or space)
  • Or use Choose File to import a plain-text file (e.g. .txt, .csv)
  • Set the Tuple size to control how many numbers each tuple contains (e.g., 2 for pairs, 3 for triples)
  • Set the Separator (like comma, space, or dash) to format output
  • Toggle Ignore non-integers to skip or preserve invalid entries
  • Toggle Allow duplicate items to control whether tuples can reuse the same integer multiple times
  • Toggle Maximize output to expand the result display
  • Click Generate Tuples or simply edit input to see the output update live
  • Use Copy Output or Export to File to save results
  • Click Clear All to reset everything

What Create Integer n-Tuples can do:

This tool builds every combination of n integers from your list. With duplicates allowed, it generates the full cartesian product; without duplicates, it generates permutations. You can create thousands of structured outputs in a few clicks, ideal for algorithm testing or dataset synthesis.

Example:

Input:

1
2
3

Tuple size: 2 Allow duplicates: On Output:

1, 1
1, 2
1, 3
2, 1
2, 2
2, 3
3, 1
3, 2
3, 3

Common Use Cases:

Use it for feature generation, statistical input prep, AI training samples, combinatorics, testing logic gates, or generating options in simulations. It’s fast, customizable, and perfect for math, dev, and data tasks.

Useful Tools & Suggestions:

After generating with Create Integer n-Tuples, use Generate Integer Triples if you specifically need groups of three it saves you the setup. Or try Join Integers if you want to flatten those tuples into a cleaner single-line format for export or display.