Free JSONL sample, test and dummy files

One JSON value per line. The usual format for logs, data pipelines and machine-learning datasets. Download valid JSONL test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.jsonl
MIME type
application/jsonl
Kind
Text
Category
Data

Create a JSONL file of any size

Choose any size from 37 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

JSONL files by size

Every file below is a valid JSON Lines file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

JSONL sample files by size
FileSizeContentsDownload
1 KB JSONL samplesample-jsonl-1kb.jsonl 1 KB1,024 bytes Lines: 2 Download JSONL
5 KB JSONL samplesample-jsonl-5kb.jsonl 5 KB5,120 bytes Lines: 14 Download JSONL
10 KB JSONL samplesample-jsonl-10kb.jsonl 10 KB10,240 bytes Lines: 29 Download JSONL
25 KB JSONL samplesample-jsonl-25kb.jsonl 25 KB25,600 bytes Lines: 75 Download JSONL
50 KB JSONL samplesample-jsonl-50kb.jsonl 50 KB51,200 bytes Lines: 150 Download JSONL
100 KB JSONL samplesample-jsonl-100kb.jsonl 100 KB102,400 bytes Lines: 300 Download JSONL
200 KB JSONL samplesample-jsonl-200kb.jsonl 200 KB204,800 bytes Lines: 601 Download JSONL
500 KB JSONL samplesample-jsonl-500kb.jsonl 500 KB512,000 bytes Lines: 1,503 Download JSONL
1 MB JSONL samplesample-jsonl-1mb.jsonl 1 MB1,048,576 bytes Lines: 3,072 Download JSONL
2 MB JSONL samplesample-jsonl-2mb.jsonl 2 MB2,097,152 bytes Lines: 6,137 Download JSONL
3 MB JSONL samplesample-jsonl-3mb.jsonl 3 MB3,145,728 bytes Lines: 9,201 Download JSONL
5 MB JSONL samplesample-jsonl-5mb.jsonl 5 MB5,242,880 bytes Lines: 15,319 Download JSONL
10 MB JSONL samplesample-jsonl-10mb.jsonl 10 MB10,485,760 bytes Lines: 30,571 Download JSONL
15 MB JSONL samplesample-jsonl-15mb.jsonl 15 MB15,728,640 bytes Lines: 45,759 Download JSONL
20 MB JSONL samplesample-jsonl-20mb.jsonl 20 MB20,971,520 bytes Lines: 60,994 Download JSONL
25 MB JSONL samplesample-jsonl-25mb.jsonl 25 MB26,214,400 bytes Lines: 76,224 Download JSONL
30 MB JSONL samplesample-jsonl-30mb.jsonl 30 MB31,457,280 bytes Lines: 91,457 Download JSONL
50 MB JSONL samplesample-jsonl-50mb.jsonl 50 MB52,428,800 bytes Lines: 152,069 Download JSONL
100 MB JSONL samplesample-jsonl-100mb.jsonl 100 MB104,857,600 bytes Lines: 303,475 Download JSONL

What is a JSONL file?

JSON Lines stores a sequence of records as separate JSON values, one on each line. A program can read, process and discard one line at a time, so files of any size can be handled in constant memory.

The format is widely used for structured logs, bulk database loads and the training and evaluation datasets used with language models. It is also known as newline-delimited JSON, with the extension .ndjson.

How to recognise a JSONL file

JSONL files have no file signature, the magic bytes that most binary formats begin with.

No signature bytes. JSONL files are identified by parsing their content.

Extension.jsonl
MIME typeapplication/jsonl
Also seen asapplication/x-ndjson
Referencejsonlines.org
Media typeNone is registered; application/jsonl and application/x-ndjson are both in use
Record separatorLine feed
ConstraintA record cannot contain a raw line break

What to test for

These are the behaviours that most often go wrong when software handles JSONL files.

Strengths of JSONL

  • Processed one record at a time in constant memory.
  • New records can be appended without rewriting the file.

Limitations of JSONL

  • Not valid JSON as a whole, so ordinary JSON tools reject it.
  • No header or schema: every line must be self-describing.

Typical uses of JSONL test files

  • Testing streaming parsers
  • Loading datasets for machine-learning experiments
  • Testing bulk import endpoints
  • Checking log processors

Software that opens JSONL

  • jq and command-line tools
  • pandas, DuckDB and BigQuery
  • Elasticsearch bulk API
  • Model fine-tuning and evaluation tools

Specifications

Related

JSONL sample files: questions

How is JSONL different from JSON?
A JSON file is one value, usually an array. A JSONL file is many values separated by line breaks, which can be appended to and read as a stream.
What is the MIME type of a JSONL file?
The MIME type is application/jsonl. You will also meet application/x-ndjson in practice. The file extension is .jsonl.
Is a sample JSONL file the same as a dummy or example JSONL file?
Yes. Sample, test, dummy and example JSONL files are different names for the same thing: a JSONL file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy JSONL file.