Small NDJSON Dataset
A lightweight JSON Lines dataset for quick testing, development, debugging, and basic parser validation.
Download free newline-delimited JSON (NDJSON / JSONL) sample datasets for API testing, data pipelines, log processing, streaming applications, AI/ML workflows, and software development.
A lightweight JSON Lines dataset for quick testing, development, debugging, and basic parser validation.
More records for API integration, data ingestion, application testing, and development workflows.
A larger dataset for testing data processing, JSON parsing, and streaming operations.
Useful for bulk import testing, data pipeline validation, and intermediate workloads.
A high-volume sample dataset for performance testing, batch processing, and larger data ingestion experiments.
Select the dataset size to preview the generated JSON Lines records. You can copy the complete dataset or download it as an NDJSON file.
Preview displays the first 6 records. Downloading or copying provides the complete selected dataset.
NDJSON stands for Newline Delimited JSON. It is a text-based format where each line contains one complete JSON object. Unlike traditional JSON, NDJSON does not require the records to be wrapped inside an array.
NDJSON is also commonly associated with the JSONL file extension. Both formats are frequently used for logs, streaming data, API responses, data engineering, machine learning datasets, and batch processing workflows.
{"id":1,"name":"Alex Johnson","email":"alex@example.com","department":"Engineering","active":true}
{"id":2,"name":"Sarah Miller","email":"sarah@example.com","department":"Marketing","active":true}
{"id":3,"name":"David Wilson","email":"david@example.com","department":"Finance","active":false}
{"id":4,"name":"Emma Davis","email":"emma@example.com","department":"Support","active":true}
{"id":5,"name":"Michael Brown","email":"michael@example.com","department":"Engineering","active":true}
Each line is a separate JSON record. Applications can process records one at a time without loading the entire dataset into memory.
Traditional JSON:
[
{"id":1,"name":"Alex"},
{"id":2,"name":"Sarah"},
{"id":3,"name":"David"}
]
NDJSON / JSONL:
{"id":1,"name":"Alex"}
{"id":2,"name":"Sarah"}
{"id":3,"name":"David"}
NDJSON files are plain-text files. You don't need special software just to view their contents.
.ndjson file.Right-click the downloaded file, select Open With, and choose Notepad or Notepad++. The records will appear as plain text, with each JSON object on its own line.
import json
with open("sample.ndjson", "r", encoding="utf-8") as file:
for line in file:
record = json.loads(line)
print(record)
const fs = require("fs");
const lines = fs.readFileSync("sample.ndjson", "utf8")
.split(/\r?\n/)
.filter(Boolean);
for (const line of lines) {
const record = JSON.parse(line);
console.log(record);
}
Excel does not automatically interpret an NDJSON file as a standard JSON array. You can import it using Power Query or convert the records into CSV format for spreadsheet use.
Most browsers can display an NDJSON file as plain text. They generally won't automatically render the records into a structured JSON viewer. A JSON viewer or developer tool can make the contents easier to read.
NDJSON stands for Newline Delimited JSON. Each line contains an independent JSON record.
NDJSON and JSONL are commonly used for the same newline-delimited JSON format. Both store individual JSON records on separate lines.
Yes. All sample NDJSON and JSONL files are free to generate and download for testing, development, and educational purposes.
Yes. Sample datasets are generated locally using JavaScript. Nothing is uploaded to our server during generation or download.
You can choose 100, 250, 500, 1,000, or 5,000 records.
They are useful for testing APIs, streaming applications, log processors, data pipelines, database imports, and JSON parsing systems.