Free · Private · In-Browser

JSONL JSON Array Converter

Convert JSON Lines to a JSON array or split an array into JSONL.

Output
 

JSON Lines ↔ JSON array

JSON Lines (one JSON object per line) is great for streaming and log processing, while a JSON array is what most code expects. This converter goes both ways — wrap JSONL into an array, or split an array into JSONL.

Moving between the two formats by hand is fiddly and error-prone on large data. Paste your data, pick the direction, and copy the converted result, so you can feed the right shape to whatever tool or pipeline needs it.

Both directions, locally

It wraps JSON Lines into an array and unwraps an array back into one object per line, bridging streaming and code. Conversion runs in your browser.

Frequently asked questions

What is JSONL?

JSON Lines: one JSON object per line. It is common for logs, data exports, and machine learning datasets.

How do I convert JSONL to a JSON array?

Choose JSONL to array and paste one object per line. Blank lines are skipped.

How do I split an array into JSONL?

Choose array to JSONL and paste a JSON array. Each item is written on its own line.

Take it further
Developer Tools

Practical utilities for everyday web development work.

Learn more