How to use the Number List Generator
Generate a number list by configuring the range:
1
Set start, end, and step
Enter the start and end values and the step size. The list updates instantly as you type — no button click needed.
2
Choose format and options
Select an output format (one per line, comma, comma+space, space, or semicolon). Optionally add a prefix and suffix to each number, and enable zero-padding for aligned output.
3
Copy the list
Copy the generated number list or download it as a .txt file.
When to use this tool
Use to generate number sequences for data, code, and content:
- →Generating a list of sequential IDs or record numbers for test data, database seeding, or mock data creation
- →Creating page number ranges for document table-of-contents references or chapter numbering
- →Generating year ranges for dropdown menus, select fields, or configuration options in a web application
- →Creating ordered sequences for mathematical, statistical, or engineering work where a specific range and step are needed
- →Generating CSS size values (8px, 16px, 24px, 32px) using a prefix of 'px' and a step of 8
- →Producing a list of percentage values (0%, 10%, 20%…100%) for testing responsive layout breakpoints
Frequently asked questions
Q:Can I generate a descending list (counting down)?
Yes — set the start value higher than the end value. The tool detects that the range requires a descent and automatically counts down. For example, start 10, end 1, step 1 generates 10, 9, 8, 7, 6, 5, 4, 3, 2, 1. Alternatively, set a negative step value with start lower than end to achieve the same result.
Q:Are decimal ranges and fractional steps supported?
Yes — both start/end values and the step size accept decimal numbers. For example, start 0, end 1, step 0.1 generates 0, 0.1, 0.2, 0.3 … 1.0. The tool automatically detects the number of decimal places in your step and uses the same precision for all output values to avoid floating-point representation artefacts.
Q:How do prefix and suffix work?
A prefix is prepended to every number in the list and a suffix is appended. For example, prefix 'ID-', suffix '', start 1, end 5 produces ID-1, ID-2, ID-3, ID-4, ID-5. Combining prefix 'rgba(0,0,0,0.', suffix ')', start 1, end 9, step 1 produces rgba(0,0,0,0.1) through rgba(0,0,0,0.9). Prefix and suffix accept any text including spaces, symbols, and letters.
Q:What does zero-padding do?
Zero-padding left-pads numbers with zeros so all numbers in the list have the same digit width. For a range of 1 to 100, zero-padding produces 001, 002, 003 … 100 instead of 1, 2, 3 … 100. This ensures numbers sort correctly when used as identifiers in file names or databases that sort values lexicographically rather than numerically.
Q:How many numbers can the generator produce?
The generator has a safety limit of 100,000 numbers per generation to prevent browser freezing from accidental very large ranges. The output panel shows a warning when you are approaching large output sizes. For ranges requiring more than 100,000 values, a server-side script or spreadsheet formula (e.g. Excel SEQUENCE function) would be more appropriate.
Q:What output formats are available?
Five output formats are available: One per line (each number on its own line), Comma (1,2,3), Comma+space (1, 2, 3), Space (1 2 3), and Semicolon (1;2;3). One per line is the most versatile as the output can be directly used with other list tools on this site. Comma and Comma+space are ready for use in code, SQL IN clauses, and spreadsheet formulas.