JSON to JSONL Converter

A JSON array written as JSON Lines — one compact record per line.

Reverse: JSONL to JSON

Files never leave your device — everything runs in your browser

Machine learning datasets, OpenAI fine-tuning and batch files, BigQuery loads and log pipelines expect JSON Lines: every record on its own line, with no surrounding array and no commas between records. The converter takes a JSON array and writes each element as one compact line.

If the records sit inside a wrapper such as {"data": [...]} or {"items": [...]}, the array is found automatically and each record still gets its own line. A single object becomes one line. Strings with line breaks are escaped, so every record stays on exactly one line, and large integers are kept exactly.

The file is saved with the .jsonl extension and can be read back with JSONL to JSON.

Nothing is uploaded: everything runs inside your browser, so API responses, configs, contact lists and datasets stay on your device.

Details

How to convert JSON to JSONL in 3 steps

  1. 1

    Load the JSON

    An array of records, a wrapper object or the Sample.

  2. 2

    Check the lines

    The preview shows one record per line.

  3. 3

    Download the JSONL

    Use it for a dataset, a fine-tuning job or a bulk load.

Frequently asked questions

Load a JSON array and download the .jsonl file — one record per line.
It produces valid JSON Lines; each record must already have the fields the service expects, such as messages.
The records are found automatically in wrappers like {"data": [...]}.
Yes, with JSONL to JSON.
No. They are written as \n inside the string, so each record still takes exactly one line.

Related tools