NDJSON and JSON: what actually changes
NDJSON is one JSON object per line, so a huge file can be streamed rather than parsed whole. JSON is nested key/value data, the lingua franca of web APIs.
Records are read out of the NDJSON with their structure intact and written as JSON, so this is a real parse rather than a text substitution — quoting, escaping and character encoding are all handled for you. The JSON you get back keeps nesting, arrays, numbers, booleans and nulls, and gives up comments and column ordering guarantees. The thing to check before you rely on the output is typing: dates, leading zeros and very large integers are where formats disagree.
How it goes3 steps
-
Add your NDJSON files
Drop them onto the box above or click Select File. Add as many .ndjson files as you like — the whole batch converts in one go, and duplicates are ignored.
-
Confirm JSON as the output
JSON is already selected as the target format on this page. Check the delimiter and encoding options if your data is unusual.
-
Download your JSON
Hit Convert and grab the finished JSON files individually or as a single ZIP. Everything is deleted from the server once you have them.
Format facts
What each side of this conversion is good at, so you know what you are trading away.
Source
.ndjson
NDJSON
One JSON object per line, so a huge file can be streamed rather than parsed whole.
- Compression
- Lossless
- Transparency
- Not supported
- Keeps
- Record structure while staying line-addressable
- Gives up
- The enclosing array — each line stands alone
Result
.json
JSON
Nested key/value data, the lingua franca of web APIs.
- Compression
- Lossless
- Transparency
- Not supported
- Keeps
- Nesting, arrays, numbers, booleans and nulls
- Gives up
- Comments and column ordering guarantees
Send NDJSON somewhere else
Every other format a NDJSON file can leave as.
From .ndjson
5 targets