Number range compressor
Number range compressor with local processing and strict input validation.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Text
Result
The result was generated locally.
Enter text to process
What this tool does
- Expand range expressions such as 1-3,5 into a full list with one number per line.
- Descending ranges work too (5-3 expands to 5, 4, 3), and segments can be separated with commas or spaces.
- A single range may span at most 10000 apart; invalid tokens or values outside the safe integer range fail with an error.
Example
Input
1-3,5
Output
1 2 3 5
The example expands 1-3 and 5 into four lines, and descending ranges such as 5-3 are supported as well.
Frequently asked questions
Is empty input supported?
Yes, it returns an empty result.
How is invalid input handled?
It returns an explicit invalid-input error.
Can a range contain multiple segments?
Yes. Separate ranges or individual numbers with commas, and the result lists each item.
Keywords:Number range compressorrange-parsetext encodinglocal tool