Data & CSV
JSON array & NDJSON converter
Convert between an array and one JSON value per line while preserving numeric tokens.
A clear answer. Here’s how.
Array mode writes each element as one compact JSON value per line; NDJSON mode parses every non-blank line separately and combines records into an array. Supports up to 10,000 records. Blank lines are ignored, duplicates inside objects are rejected, and every line must contain a complete strict JSON value. Numeric spelling/precision is retained. Input/result files stay bounded to 2 MB.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Direction
- JSON array → NDJSON
- JSON array or NDJSON
- [{"id":9007199254740993,"name":"Ada"},{"id":2,"name":"Sam"}]
Example result
{"id":9007199254740993,"name":"Ada"}
{"id":2,"name":"Sam"}2 records; each compact value occupies one line.