JSON Lines converter
Convert JSON arrays to JSONL or NDJSON and back.
About JSON Lines converter
Work with newline-delimited JSON, where each record occupies its own line. This format is often used for exported records and logs; it differs from a single formatted JSON array.
Steps, example, and limitations
How to use it
- Select JSON array to JSONL or the reverse direction.
- Paste or import the input.
- Convert the data and review any record-level validation error.
Example
Input
[{"id":1},{"id":2}]Result
{"id":1}
{"id":2}Things to know
- In JSONL, every nonempty record line must contain one complete valid JSON value.
- Pretty-printing a record across multiple lines changes the record boundaries. Quote large identifiers when exact numeric parsing is not supported by the receiving system.