Generate Integer Pairs
Generate all ordered integer pairs (i, j) where both values run from 1 to N, one per line.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Processed locally in your browser. Your text never leaves this tab.
How to Use Generate Integer Pairs
- Set N. Both values in each pair will run from 1 to N.
- Generate. Every ordered pair (i, j) is listed, one per line.
- Use them. Handy for grid coordinates, loops, and combinations.
- Copy the result. Click Copy result. It all runs in your browser.
Frequently Asked Questions
What pairs does it generate?
Every ordered pair (i, j) where both i and j run from 1 to N, so for N of 2 you get (1, 1), (1, 2), (2, 1), and (2, 2).
How many pairs is that?
N times N pairs, since each value runs independently from 1 to N. The count is shown next to the result.
Why is N limited?
Because the number of pairs grows with the square of N, the tool caps N so the list stays manageable.
What are integer pairs used for?
Grid and matrix coordinates, nested loops, and listing combinations for testing.
Is anything uploaded?
No. The pairs are generated in your browser, so nothing leaves the tab.
Related Tools
Add Commas to Integer Online - Number Formatting →
Add thousands separators (commas) to integers instantly. Support for negative numbers, large integers, batch…
Change Integer Sign →
Change Integer Sign Flip, negate, or make positive/negative a list of integers. With position-based…
Convert Integer to Palindrome →
Generate palindromes from integers - 4 methods (reverse-append, mirror, add-reverse, nearest). BigInt-accurate. Free, offline,…
Create Integer Array →
Generate integer arrays - sequential, random, arithmetic, geometric, Fibonacci, primes (Sieve), or custom pattern.…
Create Integer Zigzag →
Rearrange integers into alternating peak/valley zigzag pattern (2 algorithms) or generate bouncing sequences. Free,…
Decrement Integer Digits →
Subtract a value from each digit independently with wraparound, borrow, or clamp modes. Batch…
Delete Integer Digits →
Remove specific digits from every integer in a batch with preserve-empty + leading-zero modes.…
Generate Integer Triples →
Generate all ordered integer triples (i, j, k) where each of the three values…
Increment Integer Digits →
Add a value to each digit of an integer independently, with wraparound or clamping…
Multiply Digits of a Number →
Multiply together all the digits of a whole number and get their exact product.
Replace Integer Digits Online →
Replace every occurrence of one digit in an integer with another digit you choose.
Reverse Digits of a Number →
Reverse the digits of a whole number, with the minus sign kept in front…