Split a JSON array into JSON lines

Developers and operations teams choose JSON to JSONL when moving configuration or structured data between tools.

Split a JSON array into JSON lines and prepare output for an import or analysis. Use it for free in your browser, with no account required.

How to use

  1. Paste a JSON array into the input area or import a compatible text file.
  2. Click Convert to split the array into JSON lines.
  3. Each line in the result corresponds to one item from the original array.
  4. Check that the number of lines and the content are consistent.
  5. Copy the output or use Erase to start over.

Example

You have a JSON array of several records and need to import it into a tool that expects JSON Lines. The conversion produces one object per line, making it easier to process file by file in a data pipeline.

Limits and formats

Where processing happens

The transformation is local: your browser reads the array and writes the lines without transmitting the content. Your data therefore remains confined to your device.

Frequently asked questions

Can I convert a single JSON object into JSONL?

No, JSON Lines expects one object per line. If you provide a single object, the tool cannot split it into multiple lines. In that case, place your object inside an array to get a single JSONL line.

How are special characters handled in each line?

Each line is a valid JSON object, so special characters are escaped according to JSON rules. Line breaks inside strings are represented by escape sequences, ensuring one line per record.

Is the result compatible with stream processing tools?

Yes, the JSONL format is designed to be read line by line. It is often used with tools like jq or processing scripts. However, check that your tool accepts this format.

Tools in the same category