Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/json-to-csv" width="100%" height="600" frameborder="0" title="JSON to CSV Converter"></iframe>

JSON to CSV Converter

Convert JSON arrays to CSV and back. Handles nested objects with dot notation, varying keys, and special characters. Everything runs in your browser.

 
Converted output will appear here...

About JSON to CSV Conversion

JSON (JavaScript Object Notation) and CSV (Comma-Separated Values) are two of the most common data formats in software development. JSON is flexible and supports nested structures, while CSV is flat and tabular — perfect for spreadsheets, databases, and data analysis tools.

Converting between these formats is a frequent task when importing data into Excel, Google Sheets, or SQL databases, or when preparing API response data for non-technical stakeholders. This tool handles the conversion entirely in your browser, so sensitive data never leaves your machine.

How Nested Objects Are Handled

When JSON objects contain nested structures, the converter flattens them using dot notation. For example, {"address": {"city": "NYC"}} becomes a column named address.city. This approach preserves the full structure of your data while keeping the CSV output readable.

Features

Common Use Cases

Frequently Asked Questions

What is JSON to CSV conversion?
JSON to CSV conversion transforms structured JSON data into a flat, comma-separated values format suitable for spreadsheets and databases. Nested JSON objects are flattened by joining key names, and arrays are expanded into separate rows or columns.
When would I convert JSON to CSV?
Common use cases include importing API data into spreadsheets (Excel, Google Sheets), preparing data for database imports, creating reports from JSON APIs, and sharing data with non-technical users who prefer tabular formats.
How are nested JSON objects handled?
Nested objects are flattened using dot notation for column headers. For example, {"user": {"name": "John"}} becomes a column named 'user.name' with value 'John'. Arrays may be expanded into multiple rows or joined as comma-separated values.
Keyboard Shortcuts
Ctrl+Enter Run / Format
Ctrl+Shift+C Copy output
Ctrl+L Clear