Converting a JSON file to CSV lets you open the data in Excel, Google Sheets, or any database tool. It is also the easiest way to convert JSON to Excel. Here is the fastest free method.
Step-by-Step: Convert JSON to CSV Online Free
- Open your JSON file in Notepad (Windows) or TextEdit (Mac), or use VS Code.
- Press Ctrl+A to select all, then Ctrl+C to copy.
- Go to TextWonder's JSON to CSV Converter.
- Paste your JSON into the input box.
- Click Convert. The tool auto-detects the keys and builds the CSV header row.
- Click Download CSV to save the file.
- Open the CSV in Excel or Google Sheets — your data is now in clean columns.
What JSON Format Works for CSV Conversion?
The JSON must be a flat array of objects at the top level:
[
{ "name": "Alice", "age": 30, "city": "London" },
{ "name": "Bob", "age": 25, "city": "Paris" }
] This converts to:
name,age,city
Alice,30,London
Bob,25,Paris What If My JSON Is Nested?
Nested JSON (objects inside objects) does not map directly to flat CSV rows. For example:
{ "user": { "name": "Alice", "address": { "city": "London" } } } You need to flatten it first. Options:
- Manually restructure the JSON so all fields are at the top level.
- Use jq (command line):
jq '[.[] | {name: .user.name, city: .user.address.city}]' - Use the JSON Formatter to inspect the structure and identify which fields to extract.
Opening the CSV in Excel
After downloading the .csv file:
- Windows: Double-click the .csv file — Excel opens it automatically.
- Mac: Double-click → Numbers opens it by default. To use Excel, right-click → Open with → Excel.
- If data appears in one column: Go to Data → Text to Columns and set the delimiter to Comma.
Frequently Asked Questions
How do I convert a JSON file to CSV?
Open the JSON file in a text editor, copy the contents, paste into TextWonder's JSON to CSV converter, and click Convert. Download the CSV file — it opens in Excel, Google Sheets, or any spreadsheet app.
Can I convert JSON to CSV without any software?
Yes. Use an online JSON to CSV converter like TextWonder's — it runs entirely in your browser, no software or account needed.
What JSON format is needed to convert to CSV?
The JSON must be an array of objects at the top level: [{...}, {...}, ...]. Each object should have the same keys. Nested objects need to be flattened before conversion.
How do I convert nested JSON to CSV?
Nested JSON (objects within objects) does not map cleanly to flat CSV rows. Flatten it first: either manually restructure it, or use jq (command line) with the --flat-keys option, then convert to CSV.
Why does my JSON to CSV conversion produce only one column?
This usually means the JSON is not a flat array of objects. It might be a single object, a nested structure, or an array of arrays. Restructure the JSON to be a flat array of key-value objects first.