Integer Range Generator
Generate a sequence of integers between two numbers.
Integer Range Generator
Create a list of consecutive whole numbers in seconds. Enter a start and an end value, choose a step, and the tool generates the sequence immediately – 1 to 100, 0 to 1000 in steps of 50, or a countdown from 10 to 1. Copy the result or download it as a text file.
Options
- Start and End – both values are included. If the end is smaller than the start, the list counts down.
- Step – the gap between numbers. A step of 2 from 1 gives odd numbers, from 0 gives even numbers. The last number is included only if the step lands on it exactly.
- Separator – new lines, commas, comma + space, spaces, tabs, semicolons, or pipes.
- Prefix and suffix – wrap every number with text, for example
ID-and.jpgforID-001.jpg,ID-002.jpg, … - Zero-pad – pad all numbers to the same width (
001…100), which keeps file names in the correct order when sorted alphabetically. - Shuffle order – output the same numbers in random order, e.g. to assign seats, draw tickets, or randomise a test sequence. Click Shuffle Again for a new order.
What people use number ranges for
- Filling a spreadsheet column or database table with sequential IDs.
- Generating file names, URLs, or SKU lists:
page-1.html…page-50.html. - Test data for unit tests and load tests.
- Raffle and lottery tickets, bingo numbers, or seat numbers – shuffled or in order.
- Creating
IN (...)lists for SQL queries or arrays for JavaScript and Python code.
Limits
Numbers can be negative and as large as JavaScript's safe integer range (±9,007,199,254,740,991). One run produces up to 100,000 numbers so your browser stays responsive; use a larger step or split big ranges into several runs.
For random numbers instead of a sequence, see the random generators in the Random category; to sort an existing list, use the Number Sorter.
Frequently Asked Questions
Is the end number included in the range?
Yes, when the step reaches it exactly. 1 to 10 with step 3 gives 1, 4, 7, 10; with step 4 it gives 1, 5, 9.
How do I generate numbers with leading zeros?
Turn on 'Zero-pad'. Every number is padded to the width of the longest one, so 1 to 100 becomes 001, 002, … 100.
Can I count backwards?
Yes. Enter a start value that is larger than the end value, for example 10 to 1, and the list counts down using the step you set.
How many numbers can I generate?
Up to 100,000 numbers per run. For bigger ranges, increase the step or generate the range in several parts.