Skip to content

Free online JSON to JSONL converter

Convert JSON arrays or objects into JSONL records, one valid JSON value per line.

Convert JSON to JSONL online - free

Uploading…

Your file is processed automatically and deleted right after you download the result, or after 3 hours at the latest.

How it works

  1. 1/3

    Upload your .json file

    Click to browse to select your file you want to convert or simply drag & drop your file into selected area.

  2. 2/3

    Perform .json to .jsonl conversion

    After successful file upload, click to convert when you are ready.

  3. 3/3

    Download converted .jsonl file

    Conversion result is ready to download.

How to convert json to jsonl file

101convert.com assistant

101convert.com assistant
2m

Some data pipelines and machine-learning tools accept one JSON record per line rather than a single JSON document. Converting an exported JSON array to JSONL lets those tools read the records one at a time.

What the JSON format is

JSON stores structured data as objects, arrays, strings, numbers, booleans, and null values in one document. Web applications, APIs, databases, and programming languages commonly create JSON files; exports often contain an array of records or a single object.

What the JSONL format is

JSONL (JSON Lines) stores one complete JSON value on each line, usually one object per line. It is useful for logs, datasets, and streaming or batch-processing tools that can read records incrementally without loading one large array. JSONL files commonly use the .jsonl extension.

How to convert JSON to JSONL

Choose what counts as a record before converting. For a top-level JSON array, the usual result is one array element per line. For a single JSON object, the result is one line. The conversion does not automatically determine how nested objects should be split into records.

Online on 101convert.com

  1. Open the JSON-to-JSONL converter page and upload one or more JSON files. The page shows the per-file size limit.
  2. Start the conversion.
  3. Download the converted JSONL file or files.

Offline with desktop software

Python runs on Windows, macOS, and Linux. Save the following as json_to_jsonl.py:

import json
import sys

with open(sys.argv[1], encoding="utf-8") as source:
    data = json.load(source)

records = data if isinstance(data, list) else [data]
with open(sys.argv[2], "w", encoding="utf-8", newline="\n") as target:
    for record in records:
        target.write(json.dumps(record, ensure_ascii=False) + "\n")

Run python json_to_jsonl.py input.json output.jsonl (on some systems, use python3). This writes each top-level array element as a compact JSON value on its own line; a non-array value becomes one line.

Quality and compatibility

Each output line must be valid JSON, and records must not contain literal line breaks outside JSON string escaping. JSONL is a convention rather than a single formal standard, so check whether the receiving tool expects object records, a particular character encoding, or specific fields. A JSON array becomes one line per element; converting a single object produces one line, not one line per property.


Note: This json to jsonl conversion record is incomplete, must be verified, and may contain inaccuracies. Please vote below whether you found this information helpful or not.

Was this information helpful?

Information about file extensions and file types is provided by File-Extensions.org

Frequently asked questions

Is the JSON to JSONL converter free?

Yes, converting JSON to JSONL on 101convert.com is completely free. No registration, email address or installation is required. If you need a higher file size limit or want to convert more files at once, see our plans.

How large can my JSON file be?

You can upload JSON files up to 3 MB and convert up to 3 files at once in a single batch. With a paid plan the limit is up to 100 MB per file and 20 files at once, see our plans.

What happens to my uploaded files?

Files are processed automatically. Your upload is deleted from our servers right after you download the result, or after 3 hours at the latest. We never view or share your files.

Do I need to install any software to convert JSON to JSONL?

No. The JSON to JSONL conversion runs entirely online in your browser and works on Windows, Mac, Linux, Android and iPhone.

Did the conversion fail?

In most cases, the cause is an incorrect file format. Please upload a valid JSON file for this JSON to JSONL conversion. Occasionally, the issue may be on our side. We analyze recurring conversion failures and disable or fix the converter if we detect a defect.

Additional formats for
json file conversion

Reverse conversion

Convert to jsonl from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.