Download a sample JSONL file of any size
Get newline-delimited JSON records where every line parses, including the last one.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.
How is the sample JSONL file built?
Each line is a complete JSON object with id, name, email, country and plan fields, followed by a newline. Records are added until the next one would not fit. The last line is an object with a single pad field whose string length makes the file end on the exact byte, so the file stays valid JSON Lines from start to end.
The smallest valid JSONL file is 13 bytes; any byte count from there up to 2 GiB can be selected. MIME type: application/jsonl.
Which JSONL size do you need?
What is inside a 1 MiB JSONL file?
The 1 MiB sample has 11,674 records plus a 104-byte pad record. Reading it line by line with json.loads in Python succeeds on every line.
When is a sample JSONL file useful?
- Testing streaming ingestion that reads one record per line, such as log shippers and data warehouse loaders.
- Measuring how an importer handles a large newline-delimited file without loading it at once.
- Checking that a bulk API rejects a JSONL body above its limit.
Questions about JSONL test files
Is JSONL the same as NDJSON?
In practice, yes. Both mean one JSON value per line, separated by newlines.
What is the last line?
A record like {"pad":"xxx…"} that sets the exact size. It is valid JSON, so filter it out by its key if needed.
Format reference and related tools
Format reference: JSON Lines.
Other formats in this family (Data): CSV · JSON · XLSX · XML · SQL · ODS · YAML · TSV · LOG.
Related: CSV to JSON · JSON to YAML · Bytes to MB converter
Noticed an issue with this test file? Report an issue →