UTILS.
Private by default
}⏎

JSON ⇄ JSON Lines

Convert between a JSON array and NDJSON / JSON Lines.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
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