Skip to content

Tools/JSONL/JSONL to JSON

JSONL to JSON

One JSON value per line in, a JSON array out. This page selects JSONL → array. Pretty-printed multi-line JSON is not JSONL.

Same converter: all directions · JSON to JSONL

Loading tool…

How to use JSONL to JSON

  1. 1. Paste JSONL. Each line must be its own JSON value.
  2. 2. Copy the array. Direction is JSONL → JSON on this URL.
  3. 3. Fix the bad line. Errors include the line index when a row fails to parse.

About this tool

Log pipelines and BigQuery exports use JSONL. Front-end fixtures want an array. This alias is that conversion, distinct from “array to JSONL.”

NDJSON vs JSONL

Same idea: one value, one line. Empty lines are skipped. A pretty JSON file with newlines inside objects is not JSONL.

Code examples

JSONL

{"id":1}
{"id":2}

This is one direction of the shared converter. The editor is the same; the title and default direction match this search.

Frequently asked questions

Related tools

All tools