100% Private — Files Never Leave Your Browser

Convert JSON to CSV
or Excel Instantly

Upload a JSON file to flatten nested data into clean rows and columns. Preview, then download as CSV or .xlsx — free, private, no sign-up needed.

JSON → CSV / Excel Converter
Upload .json · Auto-flattens nested data · Export as CSV or Excel
Drag & drop your JSON file
or paste JSON text below · .json files supported

How to Convert JSON to CSV

1
Upload or paste JSON
Drag a .json file into the converter, or paste JSON text directly into the text area.
2
Review the flattened data
Check the preview table — nested objects are flattened with dot notation (e.g., address.city).
3
Download as CSV or Excel
Click "Download CSV" for Google Sheets or "Download Excel" for a .xlsx file.
4
Open in your spreadsheet
Import the CSV into Google Sheets (File → Import) or open the .xlsx directly in Excel.

Understanding JSON to CSV Conversion

JSON (JavaScript Object Notation) is the most common data exchange format on the web. APIs, databases, configuration files, and modern applications all use JSON to store and transfer structured data. But when you need to analyze, sort, filter, or share that data with non-technical people, a spreadsheet is usually more practical — and that means converting to CSV or Excel.

The challenge is that JSON supports nested structures (objects inside objects, arrays inside arrays) while CSV is strictly flat — each row has the same columns, and each cell holds a single value. This converter bridges that gap by flattening nested JSON into tabular format automatically.

How Flattening Works

When the converter encounters a nested object like {"user": {"name": "Alice", "address": {"city": "NYC"}}}, it creates columns using dot notation: user.name and user.address.city. Arrays of primitive values (like tags: ["python", "javascript"]) are joined into a single cell with commas. This approach preserves all data while making it compatible with the row-and-column structure of spreadsheets.

Common Use Cases

API data analysis: You've pulled data from a REST API and need to analyze it in a spreadsheet. Drop the JSON response here and get a clean CSV for Google Sheets or Excel.

Database exports: MongoDB, Firebase, and other NoSQL databases export data as JSON. Converting to CSV makes it easy to review, share with stakeholders, or import into relational databases.

Log file analysis: Structured logging systems produce JSON-formatted log files. Converting to CSV lets you filter and sort events in a spreadsheet, spot patterns, and create charts.

Configuration auditing: When you need to compare or review JSON configuration files, converting to a spreadsheet makes side-by-side comparison much easier than reading raw JSON.

Frequently Asked Questions

Is my data safe?
Completely safe. This tool runs 100% in your browser using JavaScript. Your JSON is never sent to any server — it's processed locally and discarded when you close the tab.
What JSON structures are supported?
The converter handles arrays of objects (most common), nested objects (flattened with dot notation), arrays within values (joined as comma-separated text), single objects (one-row output), and arrays of primitives (single-column output). If your top-level JSON is an object with a data array inside, the converter auto-detects and uses that array.
How are nested objects handled?
Nested objects are flattened using dot notation. For example, {"address": {"city": "NYC", "state": "NY"}} becomes two columns: address.city and address.state. This works for multiple levels of nesting.
What happens to arrays inside objects?
Arrays of simple values (strings, numbers) are joined with commas into a single cell. For example, {"tags": ["python", "javascript"]} becomes a cell containing "python, javascript". Arrays of objects are JSON-stringified to preserve all data.
Is there a file size limit?
No hard limit — it depends on your browser's memory. JSON files up to 50MB typically work well. Very large files may take a few seconds to parse and flatten.
Can I also convert Excel or CSV files?
Yes! We have dedicated converters for Excel to Google Sheets, CSV to Google Sheets, and Google Sheets to Excel.