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

Convert NDJSON to JSON

Combine an NDJSON file, one JSON value per line, into a single indented JSON list. Bad lines are pinpointed by number. Everything is processed in your browser.

  • No watermark or limits
  • Client-side only
  • Reports the bad line
  • Blank lines skipped
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: NDJSON → OUT: JSON
How was NDJSON to JSON?
How it works

NDJSON to JSON in three steps

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

  1. STEP 01

    Paste or open your NDJSON

    Accepted files include .ndjson, .jsonl, .json and .txt.

  2. STEP 02

    Pick an indent

    Choose 2 spaces, 4 spaces or tabs for the output.

  3. STEP 03

    Copy the JSON list

    All lines are collected into one array, in file order.

What you get

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

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

What you get

  • Line-numbered errorsA failing line is reported with its number and the column where parsing stopped.
  • Tolerates blank linesEmpty lines, including a final one, are skipped.
  • Accepts all value typesLines can be objects, arrays or scalars.
  • Order preservedThe output array follows the file order.
  • Windows files fineCRLF line endings are handled.

Good to know

  • One value per lineA record spanning several lines is not valid NDJSON. Join those lines or use the JSON formatter on a single document.
  • Everything in memoryThe output array is built in memory. Very large files may be slow on phones.
  • No schema checkLines of different shapes are accepted. Check structure with the JSON schema validator if needed.
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 NDJSON to JSON

Inspect an export

Open data from a streaming or search system as a regular JSON file.

Debug a pipeline

Collect output lines and look at them in the JSON tree viewer.

Share a dataset sample

Wrap lines into an array that anyone can paste into a formatter.

Prepare data for charts

Many chart tools want one array.

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

How the lines are read

Each non-empty line is parsed as JSON. If it fails, the tool reports that line, so you know exactly which record to fix. If all lines parse, the values are returned as one array with the same order.

Because lines are separate documents, one bad record does not hide the others. Fix it and run again.

Fixing common problems

Three causes account for most errors:

  • A record was pretty-printed over several lines.
  • A trailing comma or an array bracket was left from a copy of a JSON array.
  • A log prefix, such as a timestamp, sits before each JSON object.
  • To flip direction, use JSON to NDJSON.

Working with the array

Once the lines are one array, you can sort out the shape with the JSON schema generator, flatten records with JSON flatten, or turn them into a table with JSON to CSV. Keep the original file: NDJSON is the better format for appending new records later.

FAQ

Questions, answered

How do I convert NDJSON to JSON?

Paste the lines. They are parsed one at a time and returned as a JSON array.

Do my log lines get transmitted when I join them?

No. Lines are parsed one by one inside this tab and are not sent to any server.

What happens to an invalid line?

Conversion stops and tells you the line number and column, so you can correct it.

Are blank lines OK?

Yes. Empty lines, including one at the very end, are ignored.

Can I paste .jsonl content?

Yes, JSON Lines and NDJSON use the same layout.

Can I do this on a phone or tablet?

Yes, on iOS and Android browsers. Very large logs are better handled on a computer.