Nirmion
Help Find a tool

LOCAL DATA CONVERTER / ARRAY TO JSON LINES

JSON to NDJSON

Split a standard top-level JSON array into NDJSON with one compact, independently parseable JSON value on each output line.

Processed in this browserOne UTF-8 .json file up to 5 MB. The root must be a non-empty array with no more than 50,000 items, and the generated NDJSON is limited to 20 MB.

Step 1 / source

Choose the source

JSON - 50,000 array items

Drop one file here

Choose JSON whose top-level value is the array you want to stream or process line by line.

Checking publication status...

01
No file upload

This operation runs with browser APIs. Nirmion receives catalogue requests, not the selected source bytes.

02
Original stays unchanged

The converter creates a separately named output. It never writes back into the source file.

03
Bounded work

One UTF-8 .json file up to 5 MB. The root must be a non-empty array with no more than 50,000 items, and the generated NDJSON is limited to 20 MB.

Plain-language method

How array items become JSON lines

Nirmion validates one non-empty top-level array, serializes every item as compact JSON without changing its nested structure, writes items in the original order, and places the selected newline sequence after each value. It does not copy the surrounding array brackets into NDJSON.

  1. 01
    Choose a valid source

    Use a standard JSON document with an array at the root. A single object must be wrapped in an array before it can define one NDJSON record.

  2. 02
    Review the conversion choices

    LF is the portable default for Unix, cloud, and data tools. Choose CRLF only when the receiving Windows workflow requires that sequence.

  3. 03
    Inspect the separate result

    The download ends in _nirmion_tools_records.ndjson. Every line can be parsed independently and the final line ends with a newline.

Useful when

Practical jobs this tool handles

  • Prepare batch records for a streaming import.
  • Convert a fixture array into line-oriented logs.
  • Split a large reviewed array into independently parseable records.

Before converting

Confirm the receiving convention

  • Verify the JSON root is an array.
  • Choose the newline convention expected downstream.
  • Compare the reported output line count with array length.

Know the boundary

NDJSON is not one standard JSON document

The complete output contains several JSON values separated by newlines and therefore is not itself a single JSON value. Use NDJSON-aware software to read it.

Quick answers

Questions before you convert

The conversion changes framing, not record structure.

Are nested objects flattened?

No. Each array item keeps its complete nested JSON structure on one compact line.

Does it include commas between lines?

No. NDJSON uses newline boundaries instead of array commas or brackets.

Can it convert one object?

Not directly. Wrap that object in an array to make the record boundary explicit.