Dad’s Data formats tools

JSON ↔ JSONL Converter

Convert a JSON array to JSON Lines format, or JSONL back to a JSON array — 100% local.

JSON Input (array)
JSONL Output

Output will appear here.

Paste, upload, or drop a file in the input panel to get started.

What is JSON Lines (JSONL / NDJSON)?

JSON Lines (also called NDJSON — Newline Delimited JSON) stores one valid JSON value per line. Unlike a JSON array, there is no wrapper — each line is independently parseable. This makes it ideal for streaming: you can process line 1 before line 1,000,000 arrives, and a corrupt line doesn't break the rest of the file.

Input
[{"id":1,"name":"alice"},{"id":2,"name":"bob"},{"id":3,"name":"carol"}]
Output
{"id":1,"name":"alice"}
{"id":2,"name":"bob"}
{"id":3,"name":"carol"}

When to Use JSON Lines

Use caseWhy JSONL fits
Log file storageEach entry is independent; tail -f works line by line
ML training datasetsLibraries like Hugging Face stream JSONL natively
Database bulk importsMongoDB mongoimport, Elasticsearch bulk API use NDJSON
Kafka / event streamsMessages are naturally one-per-line
Large file processingNo need to load the entire file into memory to start parsing
Tip: The input for JSON→JSONL must be a JSON array at the root. Each element of the array becomes one line in the output.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools