Contact

Tools  /  Generators  /  Array Generator

Array Generator

Build a numeric range, random integers or floats, a repeated value, an index formula, a letter run or a date series — exported as a JSON / JS / Python / PHP / CSV / SQL array, live, with stats and a per-item breakdown.

What this tool does

It builds an array from one of several recipes — a numeric range, random integers or floats, a repeated value, an expression evaluated per index, a run of letters, or a series of dates — and serialises it in the format you pick. Everything updates as you type.

Recipes

Range walks from a start to an end by a step (the step may be negative or fractional). Random integers and random floats draw count values between a minimum and maximum, optionally unique and optionally from a seeded generator so the result is reproducible. Repeat fills the array with one value parsed as JSON. Formula evaluates a JavaScript expression with i (the 0-based index) and n (the count) available. Letters produces an alphabetical run. Dates steps a number of days from a start date.

Output formats

JSON (compact or pretty), a JavaScript or TypeScript literal with an optional const name = wrapper, a Python list, a PHP array, CSV or TSV on one row, a newline-separated list, a Set literal, or SQL VALUES rows.

Privacy

Generation happens in your browser. Nothing is sent to a server.

Frequently asked questions

Is anything sent to a server?
No. The array is built locally in your browser.
Can I reproduce the same random array later?
Yes. Set a seed in the random modes and the same seed plus the same settings always produces the identical array.
What can I use in the formula mode?
Any JavaScript expression. The variable i is the current 0-based index and n is the total count, so i * 2, Math.pow(2, i) or `row-${i}` all work.
Does the range step have to be a whole number?
No. A fractional step like 0.25 or a negative step for a descending range both work.
How large an array can it make?
Up to 100000 items. Very large arrays are still generated but only the first 200 rows appear in the breakdown table.
Theme Accent