Skip to the converter
File Converter

JSON Lines (JSONL) to JSON converter

Turn a log export, a dataset or an API dump with one JSON value per line into a single JSON array.

Accepts

JSON Lines (.jsonl, .ndjson). Other file types are not converted on this page; the File Converter hub takes every kind it knows.

How to convert

  1. Each line is read as one JSON value and blank lines are skipped. A line that is not valid JSON is reported with its line number and the column of the mistake.
  2. The values are written as one array, with 2 or 4 spaces, tabs, or on one line.

Your files stay on this device. Nothing is uploaded: the conversion runs in your browser, and the file is never sent to ITpris Verktyg or to any other server.

Questions

Is NDJSON the same as JSON Lines?

Yes. Both names mean one JSON value on each line, and both .jsonl and .ndjson files are read.

Can I type or paste instead of a file?

Yes. Type or paste in the box under the converter, and the preview updates as you type.

Are my files uploaded?

No. The conversion runs in your browser, on this device. Your files are not sent to ITpris Verktyg or to any other server.

More converters