JSON to NDJSON
Turn a JSON array into newline-delimited JSON.
How to use
- 1 Paste a JSON array (or a single JSON value) into the input box.
- 2 The NDJSON output appears instantly on the right, one record per line.
- 3 Check the error message if your JSON does not parse, and fix the syntax.
- 4 Copy the NDJSON and feed it to your log or import pipeline.
About JSON to NDJSON
The JSON to NDJSON converter takes a standard JSON array and rewrites it as newline-delimited JSON, where every element of the array becomes its own compact line.
NDJSON (also called JSON Lines) is the format of choice for streaming data, log files, and bulk-load endpoints such as Elasticsearch, BigQuery and many data-pipeline tools, because each record can be read, parsed and processed independently without loading the whole document into memory.
Paste an array like [{"id":1},{"id":2}] and you instantly get one object per line.
If you paste a single object or value instead of an array, the tool simply emits it as a single NDJSON record, so it works for one-off records too.
Primitive elements — numbers, strings, booleans and null — are handled correctly and stay valid on their own line.
Output is always compact: pretty-printing is intentionally stripped because a real NDJSON line must contain no internal newlines.
Everything runs locally in your browser.
Your JSON is never uploaded or logged, which makes the tool safe for sensitive payloads, and it keeps working offline once the page has loaded.
FAQ
What is NDJSON?
NDJSON, or newline-delimited JSON, stores one JSON value per line. It is ideal for streaming and bulk imports because each line can be parsed on its own.
What happens if I paste a single object instead of an array?
The tool emits it as a single NDJSON line. Only top-level arrays are split into multiple lines.
Is my data uploaded anywhere?
No. The conversion happens entirely in your browser; nothing is sent to a server.