Skip to JSON editor / 跳到编辑器
使用指南 / Guide+

JSON Lines viewer and converter

Inspect newline-delimited JSON and turn its records into a JSON array.

Use the tool ↓

How to use this tool

What is JSONL?

JSON Lines stores a complete JSON value on each line. For example, {"id":1} followed by a newline and {"id":2} represents two records. Newlines inside a JSON string must be escaped.

Open and convert JSON Lines

Paste multiple JSON lines or open a .jsonl file. This tool ignores blank lines. When each non-empty line parses, the preview reports JSONL; Format converts those values to a formatted JSON array. Compact produces a compact JSON array.

Know the boundaries

A single valid JSON value is detected as JSON. The editor loads the whole file into memory; it is not a streaming processor for multi-gigabyte logs. Export produces JSON, not JSONL.

Input and output example

Paste these two lines and choose Format to convert JSONL into a JSON array.

Input

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

Output

[
  { "id": 1 },
  { "id": 2 }
]
All toolsJSON formatter and minifierJSON syntax validatorQuery JSON paths and filter recordsJSON Lines viewer and converter

No sign-up required. JSON content is processed locally.

Prism
All toolsJSON formatter and minifierJSON syntax validatorQuery JSON paths and filter recordsJSON Lines viewer and converter
English简体中文