JSON ↔ JSONL Converter
Convert a JSON array to JSON Lines format, or JSONL back to a JSON array — 100% local.
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 case | Why JSONL fits |
|---|---|
| Log file storage | Each entry is independent; tail -f works line by line |
| ML training datasets | Libraries like Hugging Face stream JSONL natively |
| Database bulk imports | MongoDB mongoimport, Elasticsearch bulk API use NDJSON |
| Kafka / event streams | Messages are naturally one-per-line |
| Large file processing | No 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.