Convert newline-delimited JSON into a JSON array, or split a JSON object or array back into NDJSON.
Last updated: June 2026 | By Patchworkr Team
Each NDJSON line becomes an item in a formatted JSON array.
| name | role | location |
|---|---|---|
| Ada Lovelace | Mathematician | London |
| Grace Hopper | Computer Scientist | New York |
| Alan Turing | Researcher, Cryptanalyst | Bletchley Park |
NDJSON is useful for logs and streaming. JSON arrays are easier when you want a single structured document.
Paste one JSON object per line and the tool will wrap them into a pretty-printed JSON array.
Paste a JSON array or object and the tool will emit line-delimited JSON records.
Blank lines are ignored in NDJSON mode, but each non-empty line must be valid JSON.
The JSON to NDJSON path accepts either a single object or an array of objects.
Nested JSON values are preserved as-is, with formatting only changing how records are grouped.
Related Tools
Convert between CSV tables and JSON arrays.
Convert between .env files and JSON objects.
Convert between INI files and JSON objects.
Convert between JPG images and WebP files.
Convert between PNG images and WebP files.
Convert between JPG images and PNG files.