Skip to main content

enumerate-integers

Enumerating integers produces every integer in a range — 1 to 100, or 1 to 1000 by 5s, or even -10 to 10. Useful for generating test cases, building dropdown options, populating arrays, and quick data fixtures. The ZTools Enumerate Integers tool generates ranges of arbitrary size with configurable step, format (comma list, line list, JSON), and separator.

Use cases

Build a dropdown of years

Range 1900-2030 by 1 — 130 entries. Output as <option> elements ready to paste.

Test case ranges

For loop tests over [-100, 100]; generator outputs the list.

Pagination URLs

page=1, 2, 3, ..., 100. Generator builds the list.

Quick array seeding

1000 sequential IDs for test data. Easy to generate.

How it works

  1. Set range — Start, end, step. Step can be negative (descending) or non-1 (e.g. multiples of 5).
  2. Pick format — Comma list (1, 2, 3), line list, JSON array, range syntax.
  3. Generate — Output as text. Copy or download.

Examples

Input: 1 to 10

Output: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.


Input: 0 to 100 by 5

Output: 0, 5, 10, ..., 100.


Input: 10 to 1 (descending)

Output: 10, 9, 8, ..., 1.

Frequently asked questions

Maximum range?

Browser memory caps at ~10M entries before clipboard / display gets sluggish. For multi-million ranges, prefer scripted generation.

How is this different from number-sequence?

Number-sequence supports arithmetic / geometric / Fibonacci / primes. Enumerate-integers is the simplest case (constant step).

Privacy?

All in browser.

Tips

  • For dropdowns, output as <option value="N">N</option> format — paste-ready.
  • For descending ranges, use negative step.
  • For performance, prefer compact list format (no separator) over JSON for large ranges.

Try it now

The full enumerate-integers runs in your browser at https://ztools.zaions.com/enumerate-integers — no signup, no upload, no data leaves your device.

Open the tool ↗


Last updated: 2026-05-06 · Author: Ahsan Mahmood · Edit this page on GitHub