Data · 13 files

Sample JSON Files

JSON samples from 10 to 100,000 records, a nested orders document, a minified file and a single object that covers every JSON type and tricky value (unicode, escapes, a 2⁵³+1 integer).

All 13 JSON files

Download all with curl
Download 13 files (205 MB)Shell
# 13 files, 205 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/data/json/sample-types.json
https://files.samplefiles.com/data/json/sample-10-records.json
https://files.samplefiles.com/data/json/sample-100-records.json
https://files.samplefiles.com/data/json/sample-orders-nested.json
https://files.samplefiles.com/data/json/sample-minified.json
https://files.samplefiles.com/data/json/sample-1k-records.json
https://files.samplefiles.com/data/json/sample-1mb.json
https://files.samplefiles.com/data/json/sample-10k-records.json
https://files.samplefiles.com/data/json/sample-5mb.json
https://files.samplefiles.com/data/json/sample-10mb.json
https://files.samplefiles.com/data/json/sample-100k-records.json
https://files.samplefiles.com/data/json/sample-50mb.json
https://files.samplefiles.com/data/json/sample-100mb.json
EOF
FileSizeDetailsDownload
JSON with every data typesample-types.json592 BDownload
JSON, 10 recordssample-10-records.json3.5 KB10 rowsDownload
JSON, 100 recordssample-100-records.json35.8 KB100 rowsDownload
JSON with nested objects and arrayssample-orders-nested.json86 KB100 rowsDownload
Minified JSON, 1,000 recordssample-minified.json284 KB1,000 rowsDownload
JSON, 1,000 recordssample-1k-records.json360 KB1,000 rowsDownload
1 MB JSON filesample-1mb.json1023 KB3,282 rowsDownload
JSON, 10,000 recordssample-10k-records.json3.5 MB10,000 rowsDownload
5 MB JSON filesample-5mb.json4.9 MB16,340 rowsDownload
10 MB JSON filesample-10mb.json9.9 MB32,606 rowsDownload
JSON, 100,000 recordssample-100k-records.json35.6 MB100,000 rowsDownload
50 MB JSON filesample-50mb.json49.9 MB162,472 rowsDownload
100 MB JSON filesample-100mb.json99.9 MB324,184 rowsDownload

FAQ

Is the data real?

No. All records are generated with Faker, so they are safe to use anywhere.

Which file tests a JSON parser?

The “every data type” file covers strings with unicode and escapes, exponents, a 2⁵³+1 integer that loses precision in JavaScript, null and empty arrays and objects. The nested orders file tests deep structures.

Do you have invalid JSON?

Yes. Malformed and truncated files are in Edge Cases, and line-delimited JSON is under NDJSON.

Can I load these files directly from my code?

Yes. Files are served from files.samplefiles.com with permissive CORS headers, so fetch(), <video>, <audio> and <img> can use the URLs directly.