DEVtoy
Language · English

JSON Lines Converter

Convert newline-delimited JSON (NDJSON / JSONL) to a JSON array, or split an array into one JSON value per line.

How to use

  1. Paste your input or load the example below.
  2. Adjust the options, then select “Convert”.
  3. Review the result, then copy or download it.

No uploads. No account. Processing stays in your browser.

Example input
{"messages":[{"role":"user","content":"Hi"},{"role":"assistant","content":"Hello!"}]}
{"messages":[{"role":"user","content":"2+2?"},{"role":"assistant","content":"4"}]}

Related tools