JSON Lines to JSON Array

[
  {
    "id": 1,
    "name": "Ada"
  },
  {
    "id": 2,
    "name": "Grace"
  },
  {
    "id": 3,
    "name": "Linus"
  }
]
Converted locally in your browser. Your data stays only on this page.

Turn JSON Lines into a JSON array

Paste newline-delimited JSON (NDJSON / JSONL) from a log pipeline, BigQuery or Athena export, or an LLM fine-tuning dataset and get a pretty-printed, 2-space JSON array ready for editors and diffs. Blank lines are skipped, order is preserved, and a malformed line stops the conversion with its line number instead of being silently dropped.