JSON array splitter
Split a JSON array into several JSON files — automatic names such as part-01.json with zero-padded numbering and ready-to-save content per file — all processed locally in your browser.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Only valid JSON whose top level is an array is accepted; chunk size, file prefix and zero padding are all configurable.
Chunk listing
Each block starts with "===== file name (N items) =====" followed by the JSON that file should contain.
Enter a JSON array to split it
Array items: 0 · Files: 0 · Per file: 0
What this tool does
- Cut a large API payload into files of a fixed number of items so each upload stays under a size limit
- Prepare several size-controlled JSON chunks for spreadsheet or BI imports
- Break a huge exported array into smaller pieces that are easier to review and version
Example
Input
[1,2,3,4]
Output
===== part-01.json (2 items) ===== [ 1, 2 ] ===== part-02.json (2 items) ===== [ 3, 4 ]
Defaults are two items per file, the prefix part and automatic two-digit zero padding — producing exactly the contents of part-01.json and part-02.json.
Frequently asked questions
How are the file names chosen?
By default part-01.json, part-02.json and so on: the prefix defaults to part (any 1–40 characters without the illegal file-name characters / \ : * ? " < > |), and the zero-padding width is derived from the number of chunks (at least two digits, three once you exceed 99 chunks) or can be set manually from 0 to 6.
Is the output still one big JSON document?
No. Each chunk is an independent JSON array and the listing separates them with "===== file name (N items) =====" so you can save each block as its own .json file. If you need one array of arrays instead, use an array-conversion tool — this output is not valid JSON because of the file header lines.
What are the input limits?
The text must pass JSON.parse and its top level must be an array. A top-level object raises an error rather than being auto-wrapped, and an empty array produces zero files. Items per file must be an integer ≥ 1; 0, negatives or fractions raise invalid-size.
How are items distributed across chunks?
They are cut in input order. Every chunk except the last holds exactly the configured number of items and the final chunk takes the remainder (possibly a single item). Item order and content are never rewritten — the data is only regrouped.
Keywords:json-incisejson splitterchunk json array