JSON tool

JSON Lines to JSON

Convert JSONL or NDJSON rows into a JSON array, or convert a JSON array back to JSON Lines.

Use the tool

Common use cases

  • Format API responses for debugging.
  • Clean JSON before sharing it in docs.
  • Prepare examples for prompts, tests and frontend code.

Example input

{"id":1,"name":"JSON Formatter"}
        {"id":2,"name":"AI JSON Repair"}

Related tools

FAQ

What is JSON Lines?

JSON Lines stores one valid JSON value per line, often used for logs and datasets.

Can blank lines be included?

Blank lines are ignored when converting JSON Lines to an array.

What is NDJSON?

NDJSON is newline-delimited JSON, another name for the same common format.