About NDJSON Converter

NDJSON Converter moves data between three shapes: newline-delimited JSON, a single JSON array, and CSV rows.

When NDJSON rows are flat objects it can produce a CSV with a column per key, and a CSV with a header row can become NDJSON objects. It runs in your browser.

How to use it

  1. Paste your data and pick the direction.
  2. Read the converted output, or the line number of the first parse error.
  3. Copy or download the result.

Common questions

What is NDJSON?

Newline-delimited JSON, also called JSON Lines: one complete JSON value on each line. It is common for logs and data streams.

Can any NDJSON become CSV?

Only if every line is a flat object. The columns are the union of all the keys seen, with blanks where a row lacks one.

Are numbers and booleans preserved from CSV?

Simple ones are: a cell of digits becomes a number, true and false become booleans, and empty stays an empty string.