About this tool
Big JSON arrays are awkward: APIs limit request sizes, import tools cap the number of records per upload, and editors struggle with huge files. This JSON splitter cuts an array into smaller files, each a complete, valid JSON document, and lets you download them individually or all together as a ZIP. It runs in your browser, so even large exports stay on your machine.
How to split a JSON file
- Paste the JSON or open the file. It can be a top-level array, or an object that contains one (like
{"users": [...]}); the first array is used unless you enter a path. - Choose how to split:
- Items per file: for example 1,000 records per file, for batch imports and API limits.
- Number of files: divide the array into N roughly equal parts, for parallel processing.
- Max size (KB): keep each file under a size limit, such as an upload cap. Items are never cut in half.
- Pick the output format: a JSON array per file, or JSON Lines (one record per line), which most bulk-loading tools prefer.
- Download each file, or Download all as a ZIP. Files are numbered in order (
part-01.json,part-02.json…), so they sort correctly.
When splitting helps
- Bulk APIs with a per-request limit, such as Elasticsearch
_bulk, Firestore batched writes (500 operations) or CRM imports. - Upload forms with file-size caps.
- Spreading work across parallel jobs or queue workers.
- Opening a slice of a huge export in an editor or spreadsheet.
Only the array is split; anything else in the document (such as an exportedAt field next to the array) is not repeated in each file. Want one record per line in a single file instead? The JSON minifier converts an array to JSON Lines.
FAQ
How do I split a large JSON file into smaller files?
Open the file, choose items per file, number of files or a maximum size, and download the parts individually or as one ZIP. Each part is a valid JSON array.
Can I split JSON by file size?
Yes. Choose “Max size (KB)” and each file stays under that size. Records are never split across files.
What if my array is inside an object?
The splitter uses the first array it finds, such as the users array in {"users": [...]}. Enter a path like $.data.items to choose a different one.
Can I output JSON Lines?
Yes. Choose JSON Lines and each file contains one record per line, the format used by many bulk import and log tools.
Is there a size limit?
Only your browser’s memory. Files are processed locally and nothing is uploaded.