JSON to CSV converter
Paste an API response, or open a JSON file, and download it as a CSV you can open in a spreadsheet. Free, no sign-up.
What you paste stays in your browser. This tool does its work on your own machine. The page carries a browser security rule that blocks it from making network requests or loading outside scripts, so this site's analytics and chat are switched off here too. You can check: open your browser's network tab, then use the tool.
Need the data itself? Try a free call.
How to turn JSON into CSV
A CSV file is a flat table, while JSON is a tree. Converting one to the other means deciding what a row is, what a column is, and what happens to anything nested. This page lets you make each of those choices and shows the result as you change it.
Choose the rows. API responses often wrap the list you want inside an object, for example under data or results. The converter finds the lists in your document and offers each one under "Rows from". If there is no list, the whole document becomes a single row. A file with one JSON object on each line, often called JSON Lines, is read as a list.
Flatten objects. With flattening on, an address object becomes the columns address.city and address.country. With it off, the object stays in one cell as JSON text. Rows do not need to match: the columns are every key seen in any row, in the order first seen, and a row without a key gets an empty cell.
Decide about lists. Simple lists such as tags can be joined with semicolons. Lists of objects are clearer as JSON text, or as one column per item when every row has only a few.
Example
{
"data": [
{
"id": 1,
"name": "Ada Tools",
"address": {
"city": "Leeds",
"country": "GB"
},
"tags": [
"tools",
"b2b"
],
"active": true
},
{
"id": 2,
"name": "Birch, Co",
"address": {
"city": "Austin"
},
"tags": [],
"notes": null
}
]
}
Open it safely. A spreadsheet may run a cell that begins with an equals, plus, minus or at sign as a formula. Data from strangers can use that, so the guard is on by default and puts an apostrophe before such text. Plain negative numbers are left as numbers. Turn the guard off only when another program, not a spreadsheet, will read the file. The download starts with a byte order mark so that spreadsheet programs read accented letters correctly.
Questions
Is my file uploaded?
No. Your browser reads the file, and the page's security rule blocks network requests.
How large a file can it take?
It depends on your computer's memory, since everything happens in the browser. Files of a few megabytes are comfortable; very large exports are better handled by a script.
Why do long numbers change in my spreadsheet?
Spreadsheets round very long numbers and drop leading zeros. Import the CSV and set those columns to text. Numbers above about 9 quadrillion also lose precision when any JavaScript tool reads JSON, so send identifiers as strings.
Which separator should I use?
Comma is the usual one. Spreadsheet programs set to many European languages expect a semicolon. Tab is handy for pasting straight into a sheet.
More tools: curl to code · API response diff · API cost calculator
Run this free, then pay per call
Start with 10,000 credits, no card. They arrive once you confirm your email and expire 90 days after they are added; credits you buy never expire. Start with 10,000 credits
Building an AI agent? See the MCP server