Number Sequence Generator
Expand range patterns like 1..100 or 0,2,4..20 into complete numeric lists. Supports step size, comma-separated output, and custom separators — great for test data and scripting.
20 items
How to use the number sequence generator
Patterns: 1..20 (range, step 1), 1..2..20 (start..step..end), 0,2,4..20 (literals + range that infers step).
Formula & explanation
Sequences expand to at most 100,000 items.
Examples
1..10 → 1,2,…,10. 0,2,4..20 → all even numbers 0–20. 100..-10..0 → 100, 90, …, 0.
Frequently asked questions
- How do I generate a list of even numbers?
- Use a pattern like 0,2,4..100 — the tool infers the step of 2 from the first two literals and continues to 100.
- Can I generate a descending sequence?
- Yes — use a negative step: 100..-10..0 produces 100, 90, 80, …, 0.
- How do I change what separator appears between numbers?
- Edit the Separator field; it defaults to ', ' but you can use a newline, tab, pipe, or any string.
- What is the maximum sequence length?
- The generator stops at 100,000 items to prevent browser freezes. For very large sequences, generate in chunks.
Related list tools tools
- List Set OperationsPerform set operations on two lists: union, intersection, difference, A-only, B-only, and symmetric difference. Paste two lists and choose the operation — results update instantly.
- List StatsGet statistics on any list: total count, unique count, min and max line length, average length, and the longest and shortest items. Useful for auditing data before further processing.
- Comma to Lines ConverterConvert between comma-separated values and one-item-per-line format. Handles quoted fields, trims whitespace, and removes duplicates. Paste CSV data, get a clean list — and back.
- List FilterKeep or remove lines matching a plain-text substring or regular expression. Useful for filtering log output, cleaning data, or extracting matching lines from large lists.
- List to JSON ArrayConvert a one-item-per-line list into a JSON array of strings and back again. Handles quoting and escaping automatically — useful for turning clipboard lists into API payloads.
- Prefix / Suffix WrapperWrap every line with a custom prefix and suffix. Useful for building SQL IN clauses ('value'), quoting shell arguments, wrapping HTML tags, or generating code from a list.