DataBrighten

    Sample NDJSON / JSON Lines files

    2files · 56 KB in all · CC0

    Newline-delimited JSON: one JSON object per line. Free, no sign-up. Updated 19 November 2026.

    textnumberdateyes/no
    Files2to download
    Total size56 KBall files
    Format.ndjsonapplication/x-ndjson
    LicenceCC0use for anything

    What these files are

    Newline-delimited JSON: one JSON object per line. One file has 100 fictional orders, the other 500 fictional web events with ISO timestamps and some null values. Ordinary JSON files are on the sample JSON files page.

    Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.

    About the format

    In NDJSON, also called JSON Lines, each line is a complete JSON value and lines are separated by a newline, so a file can be read, appended to or split one line at a time without loading it all. The file as a whole is not valid JSON: an ordinary JSON parser stops at the second line, which is a common mistake worth testing for.

    These files open in text editors, jq, pandas and DuckDB. A web server should send them with the header Content-Type: application/x-ndjson; the same format is also saved with the extension .jsonl.

    2 files to download

    FileSizeWhat it is
    sample-orders.ndjson14 KB100 fictional orders, one JSON object per line
    lines: 100; keys: 6
    sample-events.jsonl42 KB500 fictional web events with ISO timestamps and some null values
    lines: 500; keys: 4

    MIME type: application/x-ndjson. Total 56 KB.

    Good for testing

    • Streaming parsers and log pipelines
    • Bulk loading into Elasticsearch, BigQuery or DuckDB
    • pandas.read_json(..., lines=True)

    Check a file

    wc -l sample-events.jsonl
    python -c "import pandas as pd; print(pd.read_json('sample-events.jsonl', lines=True).shape)"

    Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):

    FileSHA-256
    sample-orders.ndjsond95a46ff31c6e7e549ffbec7603201a2c3f0df6364067292d775a702906aac54
    sample-events.jsonl44ea8eb661157f0d87aa57935e980807cbde32ecc255a2e8bfa91d4d489098a8