L
JSON ↔ JSONL

JSON ↔ JSONL

Convert between JSON arrays and line-delimited JSON (JSONL / NDJSON).

Local processing
Workspace
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE

How to use

JSON → JSONL requires a root array and emits one element per line. The reverse reads nonblank lines into an array and reports invalid line numbers.

Example

[1,2] becomes two lines: 1 and 2.

GOOD TO KNOW

Keep in mind

Up to 100,000 characters, 10,000 records, 40 levels and 20,000 values. Blank lines are skipped, string newlines stay escaped, and malformed JSON is not repaired.

Common questions

Can I paste pretty-printed JSON as JSONL? Each JSONL line must be a complete JSON value. Use the JSON array direction for pretty-printed arrays.