Skip to main content

JSON Lines converter

Convert JSON arrays to JSONL or NDJSON and back.

0 characters5M limit
0 characters

About JSON Lines converter

Work with newline-delimited JSON, where each record occupies its own line. This format is often used for exported records and logs; it differs from a single formatted JSON array.

Steps, example, and limitations

How to use it

  1. Select JSON array to JSONL or the reverse direction.
  2. Paste or import the input.
  3. Convert the data and review any record-level validation error.

Example

Input

[{"id":1},{"id":2}]

Result

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

Things to know

  • In JSONL, every nonempty record line must contain one complete valid JSON value.
  • Pretty-printing a record across multiple lines changes the record boundaries. Quote large identifiers when exact numeric parsing is not supported by the receiving system.

Navigation

Find a tool

Favorites, recent, and quick access

Image compressorReduce image file size with adjustable quality.
JSON formatterFormat, validate, and minify JSON data.
Merge PDFCombine multiple PDF files into one document.
Password generatorGenerate random passwords with configurable character sets.

Preferences

These preferences are saved only in this browser.

Tool input stays in memory and is cleared when you leave the page. Downloaded files are managed by your browser. AI model caches, when used, are separate from these preferences.