JSON to JSONL Converter

Convert a JSON array into newline-delimited JSON (JSONL / NDJSON) for logs and ML pipelines.

  • 100% client-side · your data never leaves your browser
  • Instant, no rate limits
  • Free, no sign-up
Input JSON
JSONL

Your result appears here

Paste JSON into the panel on the left — everything runs privately in your browser.

Overview

JSON to JSONL Converter — Array to NDJSON Online

Convert JSON arrays into JSONL (JSON Lines / NDJSON) — one JSON object per line, no wrapping array. Essential for log shipping, Elasticsearch bulk APIs, BigQuery loads, ML training datasets, and streaming pipelines. JsonDrift serializes each array element to a compact line instantly in your browser, with no upload and no account.

No uploadsNo sign-upOpen source
  1. JSON array vs JSONL

    A JSON array wraps all records in [ ... ], which forces parsers to load the entire file before processing. JSONL writes each record as a standalone line — parsers can stream line-by-line with constant memory. Many data platforms prefer or require JSONL for ingestion.

  2. Common workflows

    • Export API array responses as JSONL for log analytics
    • Prepare training and fine-tuning data for ML pipelines
    • Convert fixture arrays to NDJSON for bulk index APIs
    • Split large array files into streamable line format
  3. Why data platforms prefer JSONL

    Warehouses and search engines ingest JSONL because it's append-friendly and streamable: a loader reads one line, processes it, and moves on with constant memory, and new records can be appended without rewriting a surrounding array. BigQuery loads, Elasticsearch/OpenSearch bulk APIs, and Snowflake stages all accept newline-delimited JSON directly.

  4. Compact, one record per line

    Each array element is serialized to a single minified line, so the output is easy to grep, tail, split, and stream. To reverse the process and wrap JSONL back into a normal array, use the JSONL to JSON converter.

FAQ

Frequently asked questions

How do I convert a JSON array to JSONL?

Paste a JSON array and JsonDrift writes each element as one compact line of newline-delimited JSON (JSONL/NDJSON) that you can copy or download.

What if the input is a single object, not an array?

A single JSON object outputs as one JSONL line.

Is JSONL the same as NDJSON?

Yes. NDJSON (newline-delimited JSON) is the same format.

How do I convert JSONL back to a JSON array?

Use the JSONL to JSON converter, which wraps line-delimited records into a single [ ... ] array.

Continue with a related tool

All tools

Learn more in our guides

All guides