Inkwell Data / File converter / JSON Lines to CSV

Convert JSON Lines (NDJSON) to CSV

Turn a .jsonl or .ndjson file, one record per line, into a CSV you can open in Excel, with nested fields in their own columns.

1 Choose your file
Drop a file here, or click to choose CSV, Excel, JSON, Parquet, XML, YAML or PDF tables · stays on your device

How it works

Drop your .jsonl, .ndjson or .json file above. Each line is read as one record and becomes one row. Check the preview, and click Convert & download. CSV is already selected; you can also pick Excel, Parquet or SQL from the list.

An example

Three lines of JSON Lines like this:

{"id": 1, "type": "signup", "user": {"country": "US"}, "tags": ["web"]}
{"id": 2, "type": "login",  "user": {"country": "CA"}}
{"id": 3, "type": "upgrade", "user": {"country": "GB"}, "amount": 49}

become this CSV:

id,type,user.country,tags,amount
1,signup,US,"[""web""]",
2,login,CA,,
3,upgrade,GB,,49

Not sure what your file looks like? Click Try a sample file above to load a small event log.

JSON Lines vs. regular JSON

A regular JSON file wraps every record in one big list: [{...}, {...}]. JSON Lines drops the list and puts each record on its own line. That's why a normal JSON reader often fails on a .jsonl file with an "unexpected token" error on line 2. This page reads both, so you don't need to know which one you have.

Other conversions

Questions

What is a JSON Lines (NDJSON) file?

A text file with one complete JSON record on each line, usually saved as .jsonl or .ndjson. Logs, API exports, BigQuery and data pipeline tools often use it because records can be added one line at a time.

How are nested fields handled?

Nested objects become dotted columns, so {"user": {"country": "US"}} becomes a user.country column. Lists like tags are kept as JSON text in one cell, so nothing is lost.

What if lines have different fields?

Every field seen in any line gets its own column. Lines that don't have a field get an empty cell.

What if one line is broken?

You'll see the line number of the first line that isn't valid JSON, so you can fix it. Blank lines are skipped.

How big a .jsonl file can I convert?

Files up to a few hundred MB work on a typical laptop. For bigger files, the Big file tools page converts JSON Lines to CSV or Parquet without loading it all at once.

Are my files uploaded anywhere?

No. The conversion happens in your own browser. There is no server receiving your data, no account and no daily limit.