UTILS.
100% in-browser
}⏎

JSON ⇄ JSON Lines

Convert between a JSON array and NDJSON / JSON Lines.

output

About this tool

Convert a JSON array to JSON Lines (one compact value per line) and back, entirely in your browser.

Frequently asked questions

What is JSON Lines?
JSON Lines (also called NDJSON or JSONL) stores one JSON value per line, which is handy for streaming and log files.
Does lines-to-array validate each line?
Yes. Each non-empty line is parsed as JSON; if any line is invalid the tool shows an error message.

More tools