Newline Delimited JSON data
File type: Various data file
An ndjson file extension is associated with the Newline Delimited JSON format.
An ndjson file stores a sequence of JSON values, with one value on each line. This structure allows records to be read and processed individually.
File type category:
Various data file
Date updated: October 30, 2026
The ndjson file extension identifies Newline Delimited JSON, a text-based format for storing and streaming structured data. Each line contains one complete, valid JSON value, commonly a JSON object.
Unlike a conventional JSON document containing one array or object, an ndjson file does not require an enclosing array. Records can therefore be appended, processed as they arrive, or handled one at a time without loading the entire file into memory.
The ndjson file contains data in Newline Delimited JSON format.
An ndjson file can be opened in any text editor to inspect its contents. For useful searching, filtering, or processing, use a JSON- or NDJSON-aware data-processing tool or a script that reads one JSON value per line.
A standard JSON editor may display the individual lines as text rather than as one document, because an ndjson file is a sequence of JSON values rather than a single enclosing JSON object or array.
An ndjson file can be converted with a script or data-processing tool that parses each line as JSON. The records can be written as a conventional JSON array, or selected fields can be exported to CSV or another tabular format when the records have a suitable, consistent structure.
Conversion in the other direction is also straightforward: a JSON array or a stream of records can be written with one JSON value per line. Renaming the file does not convert its contents.