Data and JSON tools Free · No sign-up · No upload

JSON to JSON Lines

Write a JSON list as JSON Lines, with one record per line and no commas between them. The conversion happens in your browser, so your records never leave your device.

  • Free, no strings
  • Works on your own device
  • One record per line
  • Saves as .jsonl
Your data
  • Runs on your device. Files are never uploaded.
  • Free and unlimited. No sign-up, no watermark.
Private: processed in your browserNo upload waitIN: JSON → OUT: JSONL
How was JSON to JSON Lines?
How it works

JSON to JSON Lines in three steps

No account, no email, no waiting for an upload.

  1. STEP 01

    Paste your JSON list

    Provide an array of objects, or open a .json file.

  2. STEP 02

    Run the conversion

    Each item of the array is written as compact JSON on its own line.

  3. STEP 03

    Copy or download the .jsonl file

    The note tells you how many lines were written.

What you get

What JSON to JSON Lines does, and what it doesn't

We'd rather tell you up front than surprise you after the download.

What you get

  • True JSON LinesEach line is a complete, valid JSON value with no trailing comma, separated by a line break.
  • Compact linesSpaces between tokens are removed so every record fits on one line.
  • Any array itemsObjects are typical, but numbers, strings and nested lists also become lines.
  • Single values acceptedIf the input is one object rather than a list, you get a file with one line.
  • Line count in the resultYou see how many records were written, so you can check against your source.

Good to know

  • Needs valid JSON firstThe whole input must parse as one JSON document. If you already have lines, go the other way with JSON Lines to JSON.
  • No schema checksItems can be different shapes, which tools like BigQuery or Spark may not like. See the JSON schema validator.
  • Memory limitsVery large arrays depend on your device's memory. Split the input first for multi-gigabyte data.
Private by design

Your data never leave your device

The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.

Typical online tool upload

Your device→Their server→Your device

Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.

Mediaextractr no upload

Your device does all the work

The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.

Made for real work

When people use JSON to JSON Lines

Load data into a warehouse

Many import tools accept one JSON object per line.

Feed a streaming job

Read the file line by line without parsing a giant array.

Prepare training or evaluation data

Datasets are often shared as .jsonl files.

Create append-friendly logs

Adding a record means adding one line.

Compare

Mediaextractr vs typical upload tools

MediaextractrPrivateTypical upload tools
Your file is uploadedNeverYes
Sign-up neededNoOften, after a few files
Daily file limitNoneOften 1–2 free files
WatermarkNeverSometimes
Wait for upload & downloadNoYes
Speed on very large filesDepends on your deviceDepends on their servers

JSON array vs JSON Lines

A JSON array wraps all records in one pair of brackets, so a reader must load the whole thing before using any of it. JSON Lines puts each record on its own line, so tools can stream, append and split the file with ordinary line-based commands.

The two formats hold the same data. Only the packaging changes.

Naming and next steps

This page saves the result as .jsonl. If a tool asks for .ndjson, use JSON to NDJSON, which is the same format with a different extension. A few notes for working with the result:

Loading JSONL into other systems

Warehouses such as BigQuery and many log pipelines can load newline-delimited files directly, and data libraries such as pandas read them with a lines option. A common pitfall is a blank trailing line or a byte order mark, which some loaders reject. This output has neither, so it can go straight into an import.

FAQ

Questions, answered

How do I convert a JSON array to JSONL?

Paste the array. Each element is written as one compact line, and you can copy or download the .jsonl result.

Is JSONL the same as NDJSON?

In practice yes: both put one JSON value on each line. They differ mainly in file extension.

Do my records leave my device during conversion?

No. Each item is serialized by script in this tab, with no network call, so event data stays private.

What if my input is a single object?

You get a file with one line.

Can I convert back?

Yes, with JSON Lines to JSON.

Does it convert on iPhone and Android?

Yes. It runs in current mobile browsers, although large arrays may be slow on older phones.