NDJSON Formatter
NDJSON stores one complete JSON value per line, which lets a consumer stream records without holding the whole file in memory. This tool converts a JSON array into NDJSON and back, reporting the exact line number when a record fails to parse.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the NDJSON Formatter
- Paste an NDJSON file, or a JSON array if you are converting the other way.
- Choose the direction.
- Read the record count to confirm every line was recognised.
- Copy or download the result.
Example
{"id":1}
{"id":2}
[
{
"id": 1
},
{
"id": 2
}
]
Common use cases
- Turning a log export into a JSON array a script can load in one go.
- Producing NDJSON for a bulk import API that expects one record per line.
- Inspecting a few records from a streaming data dump.
- Converting a JSON Lines dataset into a form a spreadsheet converter accepts.
Limitations and things to watch for
- NDJSON requires each record to sit entirely on one line. A pretty-printed JSON object spanning several lines is not valid NDJSON and will be reported as a parse failure on its first line.
- Converting an array to NDJSON minifies each record onto a single line, so any original formatting inside a record is lost.
- Blank lines are skipped rather than treated as records, which matches how most NDJSON consumers behave.