JSON Array to JSON Lines
Input
[
{"user": "alex", "online": true},
{"user": "sam", "online": false}
]Example output
{"user":"alex","online":true}
{"user":"sam","online":false}Convert bi-directionally between standard JSON arrays and line-delimited JSON (JSON Lines / NDJSON). Features empty line filtering, configurable indentation, and precise line-number error reporting.
| Operations | JSON to JSON Lines (default) and JSON Lines to JSON |
|---|---|
| Standard Compliance | Compliant with JSON Lines (JSONL) and NDJSON specifications |
| Maximum Input | 5 MB |
| Execution Deadline | 3 s |
Input
[
{"user": "alex", "online": true},
{"user": "sam", "online": false}
]Example output
{"user":"alex","online":true}
{"user":"sam","online":false}Input
{"event":"login","ts":1001}
{"event":"logout","ts":1002}Example output
[
{
"event": "login",
"ts": 1001
},
{
"event": "logout",
"ts": 1002
}
]When converting JSON Lines to JSON, each individual row must be a complete and valid JSON document. If any line contains invalid syntax, the exact line number is reported.
Streaming logs frequently contain blank lines between events or trailing newlines. The skipEmptyLines option automatically ignores them without failing the batch.
If a single JSON object is passed instead of an array, it is converted into a single-line JSONL record.
JSON Formatter
Prettify, indent, and format JSON strings with customizable indentation and key sorting.
JSON ↔ CSV Converter
Convert bi-directionally between JSON arrays of objects and tabular CSV/TSV data with delimiter options, header validation, and spreadsheet formula injection protection.
JSON ↔ YAML Converter
Convert bi-directionally between JSON and YAML with strict alias and cycle protection, custom indentation, and swap support.
They refer to the same concept: Newline Delimited JSON, where each line in the file is a separate, valid JSON value separated by a newline character (\n).
JSON Lines allows streaming parsers, log aggregators, and big data systems (like Elasticsearch, Athena, BigQuery) to process records line-by-line without loading an entire multi-gigabyte array into memory.
No. All parsing and conversion takes place entirely inside your browser via client-side Web Workers. Zero bytes are uploaded.