Data & CSV

JSON to CSV

JSON to CSV Converter

Convert a JSON array to CSV, flattening nested objects and choosing the columns you want.

About this tool

About JSON to CSV

Get API responses, database dumps and exported records into a spreadsheet without writing a script. Paste a JSON array of objects, an object whose values are objects, a single object, or JSON Lines with one record per line, and the converter produces a clean CSV table. Every key from every record becomes a column in the order it first appears, so a field that only some records have is not silently dropped. Nested objects flatten to columns such as user.address.city, or stay as JSON text if you prefer. Arrays can be written as JSON, joined with semicolons, or spread across their own numbered columns. The Columns menu lets you untick fields you don't need. Choose comma, semicolon, tab or pipe as the delimiter, when to quote cells, and add a byte order mark so Excel shows accents and emoji correctly. Invalid JSON is reported with its line and column, and nothing is uploaded.

Built and maintained by Abhi JainUpdated

How to Convert JSON to CSV

  1. 1

    Paste or open JSON

    Paste a JSON array into the left pane, open a .json or .jsonl file, or click Sample.

  2. 2

    Choose the columns

    Open Columns and untick any fields you don't want. New keys are included automatically.

  3. 3

    Set the format

    Pick the delimiter, when to add quotes, how arrays and nested objects are written, and whether to add a BOM for Excel.

  4. 4

    Copy or download

    Copy the CSV or click Download to save data.csv.

JSON to CSV: questions and answers

How do I convert nested JSON to CSV?

Leave Nested objects on a.b columns. Each nested field becomes its own column named with its path, for example address.city. Choose JSON text instead to keep the whole nested object in one cell.

What happens when records have different keys?

The CSV gets a column for every key found in any record, in first-seen order. Records that don't have a key get an empty cell in that column.

How do I open the CSV in Excel without broken accents?

Turn on BOM for Excel. The byte order mark tells Excel the file is UTF-8, so names like José and emoji display correctly. In regions where Excel expects semicolons, also set the delimiter to semicolon.

Can it convert JSON Lines (NDJSON)?

Yes. If the input is not one JSON document but has one JSON object per line, it is read as JSON Lines automatically.

Is my data uploaded?

No. Parsing and conversion happen in your browser, so the JSON never leaves your device.