Ready
Ln 1, Col 1Blog

Tool Kumar tool

JSONL to CSV

Turn one JSON object per line into spreadsheet rows. Tool Kumar collects the keys of every record into columns, flattens nested objects into dotted names and keeps the file on your device.

How to use this tool

  1. Paste the lines, or open a .jsonl or .ndjson file.
  2. Check the CSV in the Convert view. The first row lists every column.
  3. Copy the CSV or download it, or choose Excel (.xlsx) in the converter to download a workbook.

Worked example

The two records share one header row. The nested profile fields become profile.city and profile.plan, the tags array fills one cell and missing values stay empty.

Input · users.jsonl

{"id":1,"name":"Ada","profile":{"city":"London","plan":"pro"},"tags":["admin","beta"]}
{"id":2,"name":"Lin","profile":{"city":"Oslo"},"active":false}

Output

id,name,profile.city,profile.plan,tags,active
1,Ada,London,pro,"admin, beta",
2,Lin,Oslo,,,false

Options and edge cases

  • Columns are the keys found across all records, in the order they first appear.
  • Nested objects become dotted columns. An array is written into one cell, with its values separated by commas.
  • Missing fields and null values both become empty cells, so converting back to JSON cannot tell them apart.
  • Cells that contain commas, quotes or line breaks are quoted as CSV requires. Numbers keep their source digits.
  • A single record in an opened .jsonl file still becomes a header row and one data row.

Private by default

Your document stays in this browser. Tool Kumar parses, converts and creates downloads on your device, with no account or upload step.

JSONL to CSV questions

How do I convert NDJSON to CSV?
Paste the records or open the .ndjson file. The Convert view shows the CSV with a header row; copy it or download a .csv file.
How do I open the result in Excel?
Download the CSV and open it in Excel, or choose Excel (.xlsx) in the converter to download a workbook with the same columns.
What happens to nested objects?
Their fields become columns named with dots, such as profile.city. A nested array stays in one cell.

Related tools

JSONL viewer, JSON to CSV, JSON to Excel.