NDJSON <-> JSON Converter

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

Result
3
JSON Items
3

Each NDJSON line becomes an item in a formatted JSON array.

Preview

namerolelocation
Ada LovelaceMathematicianLondon
Grace HopperComputer ScientistNew York
Alan TuringResearcher, CryptanalystBletchley Park

What does NDJSON to JSON do?

NDJSON is useful for logs and streaming. JSON arrays are easier when you want a single structured document.

How to use it

NDJSON to JSON

Paste one JSON object per line and the tool will wrap them into a pretty-printed JSON array.

JSON to NDJSON

Paste a JSON array or object and the tool will emit line-delimited JSON records.

Helpful notes

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.

Format Foundry

Related Tools