Skip to the converter

JSON to JSONL converter, without the upload.

Turn a JSON array into JSON Lines. It is converted in your browser, so the file never leaves your device.

Drop JSON files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert JSON to JSONL

  1. Add your JSON data files

    Drop JSON files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. JSONL is already chosen

    Press Convert. There is nothing else to set. The work happens in this tab.

  3. Download

    Save the result. When one file produces several JSONL files they come as a single ZIP.

Why ToAny

  • Private by construction

    The JSON to JSONL converter is part of this page and runs inside your browser. Your data files are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

JSON to JSONL: what to expect

A big JSON array has to be read as a whole before any of it can be used. JSON Lines puts one record on each line, so tools can stream, split and append to it, and databases such as BigQuery load it directly.

One JSON can produce several JSONL files (one record per line); when it does, they are offered together as a ZIP download.

Each record is written on its own line with no enclosing array. A workbook or database with several tables gives one file per table.

JSON vs JSONL

JSON

JSON data

JSON represents data as nested objects and lists in plain text. It is the default language of web APIs. Unlike a spreadsheet it can be nested to any depth, which is also why turning it into rows and columns takes a decision about how to flatten it.

Opens in Any text editor, every programming language, browser developer tools

JSON converter
JSONL

JSON Lines

JSON Lines holds one JSON value per line, so a file can be read or appended to a record at a time. It is the usual format for machine-learning datasets and logs. It is the same convention as NDJSON; only the name and the file extension differ.

Opens in Text editors, jq, pandas and most data tools

JSONL converter
JSON compared with JSONL
JSONJSON dataJSONLJSON Lines
Stands forJavaScript Object NotationJSON Lines
TypeStructured data (text)Plain-text records
CompressionNoneNone
Introduced2001, by Douglas CrockfordThe early 2010s, by no single standards body (jsonlines.org)
Opens inAny text editor, every programming language, browser developer toolsText editors, jq, pandas and most data tools
Best forAPIs and data exchanged between programsTraining data, logs and record streams processed line by line
File extension.json.jsonl

Questions

Are my data files uploaded anywhere?

No. The JSON to JSONL conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Is anything lost when converting JSON to JSONL?

The values are kept. Anything JSONL has no way to express, such as formatting, formulas or nesting, is simplified or left out.

Can I convert several JSON files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert JSON to JSONL on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the JSON file, press Convert and save the JSONL. There is nothing to install.

Is there a file size limit?

Yes. Data files up to 300 MB are accepted; a larger file is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.