About JSON to CSV Converter
This tool converts a JSON array of objects into comma separated values. The first row contains the column names, which are collected from every object so records with different keys still line up, and each following row holds one record.
Values are wrapped in double quotes and quotes inside values are doubled, which is the escaping that Excel, Google Sheets and LibreOffice expect. It is the quickest way to open API data in a spreadsheet.
How to use JSON to CSV Converter
- Paste a JSON array of objects, for example [{"name":"Aman"},{"name":"Kiran"}].
- Click Run Tool. The CSV appears in the output box.
- Copy it, or use Download and open the file in a spreadsheet application.
Example
Input
[{"name":"Aman","city":"Ludhiana","score":82},{"name":"Kiran","city":"Patiala","score":91}]Output
"name","city","score" "Aman","Ludhiana","82" "Kiran","Patiala","91"
Common uses
- Exporting API results or a database dump to a spreadsheet for reporting.
- Sharing JSON data with someone who works in Excel.
- Importing records into a tool that only accepts CSV.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
What happens with nested objects and arrays?
They are not flattened. An array is written as comma-joined text and a nested object appears as [object Object], so flatten nested fields before converting if you need them as columns.
Why must the input be an array?
CSV is a table, so each item in the array becomes one row. A single object can be wrapped in square brackets to make a one-row table.
How are commas and quotes inside values handled?
Every value is quoted and any double quote is escaped by doubling it, so commas and line breaks inside a value do not break the columns.