How to use NDJSON to JSON

  1. Paste NDJSON (one JSON object per line) in the input area.
  2. Click Convert to turn it into a formatted JSON array.
  3. Copy or download the JSON output.

Example

Input

{"id":1,"name":"Alice"}
{"id":2,"name":"Bob"}

Output

[
  {"id":1,"name":"Alice"},
  {"id":2,"name":"Bob"}
]

Frequently asked questions

What does this NDJSON to JSON converter do?
It parses each non-empty line as JSON and wraps all values in a single JSON array.
What happens if a line is invalid JSON?
The converter stops and reports the line number and parse error so you can fix it.

Embed this tool

Add NDJSON to JSON to your own site, blog post, or internal docs — free, no signup. The widget runs entirely in your visitors' browsers, same as it does here.