Skip to content

JSON Lines Converter

Convert between JSON arrays and NDJSON, one compact document per line.

Direction

Quick Tool Overview

The JSON Lines Converter moves between a JSON array and NDJSON, the one-document-per-line format used by log pipelines, BigQuery and Elasticsearch bulk loads. A broken line is reported by its line number.

What it does
Converts between JSON arrays and JSON Lines (NDJSON)
You give it
A JSON array, or a file with one document per line
You get back
The other format, with the record count confirmed
Best for
Log files, bulk loads, streaming APIs and BigQuery imports
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the JSON Lines Converter

JSON Lines — also written NDJSON or .jsonl — puts one complete JSON document on each line with no wrapping array and no commas. It is the format log pipelines, BigQuery, Elasticsearch bulk loads and streaming APIs use, because a reader can process a line at a time.

This converter goes both ways. Turning an array into JSON Lines gives you a file that streams; turning JSON Lines into an array gives you something a normal JSON parser will accept. When a line fails to parse the error names the line number, which is the one thing that matters in a file of ten thousand records — a single bad line in the middle is otherwise almost impossible to find.

Key features of the JSON Lines Converter

Broken lines are located

A single bad record in ten thousand lines is reported by line number, which is otherwise almost impossible to find.

Both directions

Array to JSON Lines for streaming and appending; JSON Lines back to an array for anything that expects a normal document.

Record count confirmed

The number of records read is shown, so a truncated paste is obvious before you load the file anywhere.

Correct minification per line

Each record is written on exactly one line, which is the constraint the whole format depends on.

Right file extension

Downloads use .jsonl or .json to match the direction, so the file arrives named the way the receiving tool expects.

How to use the JSON Lines Converter

  1. 1

    Choose a direction

    Array to JSON Lines, or JSON Lines back to an array.

  2. 2

    Paste your data

    A JSON array of objects, or a file with one document per line.

  3. 3

    Check the record count

    The stat row confirms how many records were read, so a truncated paste is obvious.

  4. 4

    Copy or download

    Download as .jsonl or .json depending on the direction you converted.

Frequently asked questions

Nothing meaningful — they are three names for the same format. The .jsonl extension is the most common in practice, and .ndjson appears mostly in older tooling.

Reviews of the JSON Lines Converter

What people who use the JSON Lines Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the JSON Lines Converter. It takes half a minute and no account.

Write the first review

More developer tools