JSONL to JSON Converter

A JSON Lines or NDJSON file turned into a regular JSON array.

Reverse: JSON to JSONL

Files never leave your device — everything runs in your browser

JSON Lines stores one JSON record per line. Datasets for machine learning, OpenAI fine-tuning files, BigQuery exports, logs and streaming APIs all use it, because it can be written and read line by line. Many tools, however, expect a normal JSON array. The converter reads every line, collects the records into one array and formats it.

Blank lines are skipped. If a line is broken, the error names its line number in the file and its column and shows the surrounding lines, so you can fix it in the source. Large integers such as IDs are kept digit for digit.

Files with the .jsonl, .ndjson or .jsonlines extension, or plain text, are accepted. After converting, you can view the records as a table or send them on to Excel, CSV or PDF.

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

Details

How to convert JSONL to JSON in 3 steps

  1. 1

    Load the JSONL

    A .jsonl or .ndjson file, pasted lines or the Sample dataset.

  2. 2

    Check the result

    The array preview shows the records; broken lines are reported with their number.

  3. 3

    Download the JSON

    Or continue to Excel, CSV or PDF.

Frequently asked questions

JSONL has one JSON value per line and no surrounding array; JSON wraps records in [ ] with commas.
Yes, both names describe newline-delimited JSON.
Conversion stops and shows the line and column, so you can fix the source file.
Use JSON to JSONL.

Related tools