Fidument Tools · Beta version

Need to turn a JSON array into one record per line?

Convert JSON to NDJSON or back to an array. Keep numeric spellings and large identifiers intact.

Need to turn a JSON array into one record per line?

How to use this tool

  1. Choose the direction

    Use JSON → NDJSON for an array, or NDJSON → JSON for one record per line.

  2. Select a UTF-8 file

    For JSON → NDJSON, select a top-level array. For NDJSON → JSON, each line should contain one complete JSON value.

  3. Run and download

    Download records.ndjson or records.json. For an invalid NDJSON record, use the reported line number to locate and correct it.

Line endings

NDJSON input accepts LF and CRLF. Records are separated by the line endings in the file.

Who is it for?

  • People preparing imports, exports and log records

Input

  • JSON array or NDJSON/JSON Lines in UTF-8

Output

  • records.ndjson or records.json

Capabilities

  • Use JSON → NDJSON for an array, or NDJSON → JSON for one record per line.
  • For JSON → NDJSON, select a top-level array. For NDJSON → JSON, each line should contain one complete JSON value.
  • Download records.ndjson or records.json. For an invalid NDJSON record, use the reported line number to locate and correct it.

Limitations

  • One file up to 4 MiB, with up to 8 MiB output. NDJSON must be BOM-free. An empty line inside the source is an error.
  • Whitespace layout changes during serialization. Numeric spellings are preserved.
  • Files are processed on your device in the browser.

Example use

The identifier 9007199254740993 and number 1.2300e-50 retain their digits and exponent spelling after conversion.

Example file workflow · JSON ↔ NDJSON (JSONL) converter. The identifier 9007199254740993 and number 1.2300e-50 retain their digits and exponent spelling after conversion.
Example data to enter in the form

Questions and answers

Can a record contain nested values?

Yes. Each array entry becomes one NDJSON line, including entries containing objects or nested arrays.

Related tools

CSV to JSON

Convert a CSV file into an array of JSON objects in your browser. Keep leading zeros and empty fields.

JSON formatter

Format JSON with indentation or compact output. Check the syntax and download a file.

JSON ↔ NDJSON (JSONL) converter

Check access and export conditions in the app. A product description does not grant access.