Code · Made a little simpler

NDJSON to CSV Converter

Convert newline-delimited JSON records to CSV or CSV rows to JSON Lines. Keep numeric spellings and locate malformed records by line number.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

NDJSON to CSV Converter: how to use it

  1. Select NDJSON to CSV and paste one object per line, or choose a UTF-8 file.
  2. Inspect the inferred header and select a subset by column number if needed.
  3. Export the delimited table or switch directions to write CSV records as newline-delimited JSON.

Limits and notes

UTF-8 files up to 4 MiB, pasted text up to 4,194,304 UTF-16 code units and tables up to 250,000 cells. Blank input lines are skipped. Each nonblank line must hold one complete object. Newlines inside JSON string values must be escaped.

How your privacy works →

NDJSON to CSV Converter: common questions

Can records have different fields?

Yes. Fields are collected in first-seen order. Records without a particular field receive an empty cell.

Does the NDJSON download end with a newline?

Each output object ends in a line feed. A header-only CSV produces an empty NDJSON file.

Guides