Skip to main content
1 min read
By Chieyine Nelson

Convert NDJSON JSON Lines to CSV

Turn newline-delimited JSON records into a spreadsheet-ready CSV while flattening nested fields into predictable columns.

NDJSON stores one JSON object per line, which is convenient for logs and APIs but awkward to inspect in a spreadsheet. NDJSON to CSV reads each line, flattens nested objects into dotted column names, and writes one CSV row per record.

The tool stops on malformed JSON and reports the line number so the source can be corrected instead of silently losing records. For the reverse workflow, use CSV to NDJSON.

Need to handle CSV files?

HappyCSV is the free, secure way to merge, split, and clean your data — all in your browser.