Skip to content
FormatMyCSV
Runs in your browser · Files are never uploaded

Convert JSON to CSV

Flatten JSON records into a CSV table with a column for each key.

Workspace

JSONCSV

Input data

or drop a JSON file here

Options

Cleanup options
Advanced options

Use column numbers starting at 1. Omitted columns are deleted.

Enter comma-separated names in output order. Leave positions blank to keep their names.

Preview

Your rows and columns will appear here.

How to convert JSON to CSV

  1. Choose a JSON file or paste a JSON array of objects.
  2. Review the columns. Missing keys produce blank cells, and nested values appear as JSON inside a cell.
  3. Choose a CSV separator and select Download CSV or Copy.

Example

[
  {"item": "Notebook", "sku": "00421", "stock": 12},
  {"item": "Pen", "sku": "00017", "stock": 30}
]

The item, sku, and stock keys become columns. The SKU remains 00421 in the CSV text.

Frequently asked questions

What is a CSV file in Excel?

It is a plain-text table that Excel opens as rows and columns. When you convert JSON objects with this tool, the object keys become the CSV column labels. Use Excel’s import controls to keep columns such as SKUs and invoice IDs as text if they contain leading zeros.

Is CSV the same as XLS?

No. A CSV is a text file containing records, while XLS is an Excel workbook format. JSON to CSV produces text ready for spreadsheet import. If you need an Excel workbook from that text, use CSV to Excel and download the resulting .xlsx file.

What type of CSV to use?

Use a UTF-8 CSV with a header for most object exports. The header records the JSON keys so you can map columns when importing into another app. Choose commas unless the receiver asks for a different separator. The output settings let you adjust this without changing the JSON source.

Which JSON structures can I convert to CSV?

You can convert an object, an array of objects, or an array of arrays. Objects supply column names, while arrays of arrays supply records by position. For predictable columns, use an array of objects with consistent keys. FormatMyCSV processes the JSON locally, and your file is never uploaded.

What happens to nested JSON values?

A nested object or array becomes JSON text inside a single CSV cell. That keeps the nested structure together when the outer table is exported, and CSV escaping protects its quotes and separators. If you want a nested field to become a separate column, first flatten it in the source JSON.

What happens when a JSON object is missing a key?

The exported row gets a blank cell for that column. The header includes the combined set of keys across the input records, so a key only used in the last object still gets a column. Compare the preview with the fields the destination expects before saving the CSV.