JSON to CSV Converter – Free Online Tool
Convert JSON arrays to CSV format instantly with automatic header detection and custom delimiter options. Export structured JSON data into spreadsheet-ready CSV files for free.
How it works
Paste a JSON array of objects (or a single object) and click Convert to CSV. The tool parses your JSON in the browser, collects every key that appears in any object, and uses that combined list as the column headers. Each object becomes one row. If an object lacks a key that others have, that cell is left empty, so uneven records still line up in the right columns.
Values are escaped following standard CSV rules. Anything containing the delimiter, a double quote, or a line break is wrapped in quotes, and embedded quotes are doubled. Null values become empty cells. You can pick comma, semicolon, pipe, or tab as the delimiter, and switch the header row off if you only want data rows.
Nested data needs a decision. With Flatten nested turned on, objects inside objects become dot-notation columns such as address.city, and arrays are written into the cell as JSON text. With it off, only top-level keys are used, so a nested object will not be expanded into readable columns. For spreadsheet work, turn flattening on.
When this is useful
You pulled results from a REST API and a colleague wants them in Excel or Google Sheets. You exported documents from a NoSQL database and need to load them into a SQL import tool. You have a log or analytics dump in JSON and want to sort and filter it in a spreadsheet. In each case a quick conversion beats writing a one-off script.
It is a poor fit for deeply nested or highly irregular JSON, where a single table cannot represent the structure without losing meaning. It also does not split an array inside a record into multiple rows. If you need to go the other direction, use the CSV to JSON converter.
What to know
Conversion happens locally in your browser. Your JSON is not uploaded to a server, which matters when the data is internal or sensitive. Very large inputs depend on your device memory, so split multi-hundred-megabyte files first.
The output is plain text. Everything is written as text, so a spreadsheet decides on import whether a value is a number or a date. Long numeric IDs and values with leading zeros can be altered by Excel when you double-click a CSV; import through the data wizard and set those columns to text. Excel in some European locales expects a semicolon, which is why that option exists.
Column order follows the order keys are first seen. If the first object is missing a field that appears later, that column will be placed after the earlier ones.
Common questions
What JSON structure works best?
An array of flat objects that share similar keys, for example a list of users or orders. A single object also works and produces one row.
Why do I see JSON text inside some cells?
With flattening on, arrays cannot become columns, so they are kept in one cell as JSON text. Process them separately if you need them as rows.
Which delimiter should I choose?
Comma is the default and the most widely supported. Use semicolon for Excel in many European locales, tab for pasting directly into a sheet, and pipe when your data is full of commas.
Can I download the result?
Yes. Use Download to save a file named data.csv, or Copy to paste the text elsewhere.
Why does it say Invalid JSON?
The input failed strict JSON parsing. Common causes are trailing commas, single quotes, or unquoted keys. Run it through the JSON formatter or linter to find the error.