JSON ↔ NDJSON Converter

Convert JSON arrays to newline-delimited JSON and back in your browser. Preserve numeric text, report invalid lines, and copy or download the result.

Runs locally. Maximum 2,000,000 characters. Numeric tokens are preserved; no application schema validation.

What is JSON ↔ NDJSON Converter

Convert a JSON array into one compact JSON value per line, or collect NDJSON records into an array. Unlike a formatter, this tool changes the record framing. Numeric tokens and duplicate object keys are retained as written instead of being reserialized through JavaScript numbers.

How to use JSON ↔ NDJSON Converter

  1. Choose the conversion direction and paste your data, or load the sample.
  2. For NDJSON input, decide whether to skip blank lines. A final newline is a record terminator, not a blank record.
  3. Convert, inspect the result, then copy or download it. Editing the input clears the previous result.

Features and limits

  • Two-way array/record conversion with a two-million-character input limit.
  • JSON values can be objects, arrays, strings, numbers, booleans or null.
  • Whitespace outside strings is compacted without changing numeric text.

This tool processes your input in this browser and does not upload it for processing.

Worked example
[9007199254740993, {"name":"Garden"}]

→
9007199254740993
{"name":"Garden"}

Frequently asked questions

Does this preserve large integers?

Yes. The converter validates JSON but builds its output from the original tokens. The number 9007199254740993 stays unchanged. A downstream JavaScript JSON.parse may still round it.

Are blank lines allowed?

By default an empty record is rejected with its physical line number. Enable Skip blank lines to ignore them. LF and CRLF record endings are accepted.

Does this stream large files or upload data?

No. This is an in-memory browser tool with a two-million-character input limit. Pasted data is not uploaded by the converter. It does not stream files or validate application schemas.

Related tools

Sources