Data & CSV

JSON array & NDJSON converter

Convert between an array and one JSON value per line while preserving numeric tokens.

JSON array & NDJSON converter
Esc to restore

Your inputs

UTF-8 JSON up to 2 MB, 50,000 values and 64 levels. Duplicate object member names are rejected; numeric tokens are preserved.

UTF-8 JSON, NDJSON or GeoJSON up to 2 MB. Files stay on this device.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

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.