Want to convert JSON array to JSON lines (JSONL / NDJSON / LDJSON)?
Try Withdata Data File Converter, a desktop JSON converter for Windows, MacOS, and Linux, Convert JSON array to JSON lines, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Convert files locally, Avoid uploading LARGE JSON file(s) to online services.
Download Withdata DataFileConverter
JSON Lines text format, also called newline-delimited JSON (NDJSON), or Line-delimited JSON (LDJSON). JSON Lines files may be saved with the file extension .jsonl, *.ndjson, *.ldjson.
Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON)
Choose JSON array file -> Set target JSON Lines (JSONL / NDJSON / LDJSON) file -> Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON)
Click “Start a New Convert” at task dialog.

then show the wizard.
Select source/target file type.

1. Open a JSON array file.

The JSON array:

2. Config target JSON Lines (JSONL / NDJSON / LDJSON) file.

3. Set rows options.

4. Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON).

See JSON lines file

Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON) in command line
- Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON) in Windows command line.
- Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON) in Linux command line.
- Convert JSON array to JSON lines (JSONL / NDJSON / LDJSON) in macOS command line.
Set scheduled tasks for converting JSON array to JSON lines (JSONL / NDJSON / LDJSON)
You can schedule and automate this converting task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “JSON array to JSON lines” conversion.
- Set scheduled task for “JSON array to JSON lines” conversion.
FAQ
More about Withdata DataFileConverter – JSON array to JSON lines (JSONL / NDJSON / LDJSON) Converter
JSON Array → JSON Lines reference
Type mapping
| Value kind | in JSON Array | in JSON Lines |
|---|---|---|
| Long text | "multi-line\ntext" (escaped newline inside a string) | "multi-line\ntext" |
| JSON | nested object or array, kept as structure | nested object on the same line |
Dialect differences
Both JSON Array and JSON Lines are file formats, so what differs below is how each one chooses to represent a value.
| Property | in JSON Array | in JSON Lines |
|---|---|---|
| identifiers | Double quotes; backslash escapes | Double quotes; backslash escapes (a newline inside a string... |
| dates | No date type: dates arrive as strings and the reader must p... | No date type: dates arrive as strings |
| separator | Braces and commas | Newline between records |
| typing | string, number, boolean, null, object, array - no date type | Same as JSON, but records cannot nest across lines |
| shape | Nested objects and arrays | Flat stream |
| ceiling | Whole document is usually parsed into memory | Streams, so it scales past what a single JSON document can ... |
Data File Converter without the manual work
For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.
