UTILITY

JSON to NDJSON Converter

Convert a JSON array to NDJSON (JSON Lines), with one valid JSON value on each line. Copy or save the result in your browser.

Tool
Loading tool…

What this tool actually does

A JSON array becomes one independently parseable JSON value per line, without enclosing brackets or commas between records.

NDJSON (also called JSON Lines in many workflows) stores a complete JSON value on each line. Unlike a JSON array, the file has no outer brackets and no commas between its records. The converted file is suitable for line-oriented importers; this browser converter itself is not a streaming parser.

Example input and output

Input:

[{"id":1,"name":"A"},{"id":2,"name":"B"}]

Output:

{"id":1,"name":"A"}
{"id":2,"name":"B"}

How to use this tool

  1. 1

    Paste a valid JSON array or open a local .json file (up to 10 MB).

  2. 2

    Select Run tool to serialize each array element as one NDJSON line.

  3. 3

    Check the output; select Copy output or Save text to download the .ndjson file.

Privacy and processing

This operation runs in your browser rather than uploading the selected file or pasted text to a freedropper conversion server.

Format details and practical guidance

When is this useful?

This operation is useful when moving records between spreadsheets, scripts or data importers that expect a specific syntax or structure.

About the input format — JSON

JSON represents arrays, objects and primitive values with a defined syntax. A JSON array can hold nested objects rather than only flat table rows.

About the output format — NDJSON

NDJSON stores one valid JSON value per nonempty line, without an enclosing array or commas between lines. It is well suited to records processed individually.

What should you know before using this result?

Verify quoting, delimiters, encoding, header rows, nested fields and blank values. An output that is syntactically valid may still have a different schema from what the destination expects. Check the structure expected by the destination: a JSON object, an array of objects, a table with headers or one record per line. Conversion preserves some information but can change types or flatten structure.

JSON Lines versus streaming

Each element of the input array becomes its own serialized line. A standard NDJSON file is UTF-8 text and its lines are separated by newline characters. The converter parses the entire input array in browser memory before it writes the result; NDJSON’s suitability for streaming does not mean this conversion itself is streaming.

Use NDJSON for log-ingestion jobs or imports requiring one record per line. If a downstream importer demands objects, check that every element of your source array is an object; NDJSON itself permits other JSON values.

Common questions

What input does this tool accept?

Paste valid JSON content into the input field, or open a local text file.

What will the result contain?

A .ndjson download containing one JSON value per line, with no surrounding array brackets or commas.

What should I check before using the result?

Input must be a valid JSON array. Each line in the output is an independently valid JSON value. The file reader has a 10 MB limit, and the tool parses the entire array in memory rather than streaming.

Do data types and nested objects survive?

It depends on the destination format. JSON and NDJSON can represent nested values; CSV, TSV and Markdown tables are row-and-column representations that may require flattening or stringifying them.

Can I use the result in another application?

Check the destination importer’s delimiter, header, quoting and field-type rules. Valid text may still fail a particular application’s schema.

What if the input is invalid?

Correct parsing errors or unexpected row structure in the original. The tool converts supported data; it does not infer a missing schema or silently repair arbitrary malformed records.