How to convert JSON to CSV?
Converting JSON to CSV is quick and straightforward:
- Paste your JSON array of objects into the left input panel.
- Select your preferred delimiter (comma, tab, semicolon, or pipe).
- Toggle 'Include headers' on or off as needed.
- Click 'Convert to CSV' and watch the result appear on the right.
- Copy the result with one click, or download it as a .csv file.
What JSON formats are supported?
This converter handles common JSON array formats:
- Array of objects: [{...}, {...}, {...}]
- Nested objects are flattened with dot notation (e.g., 'address.city')
- Arrays within objects are converted to JSON strings
- Simple values, strings, numbers, booleans, and null are all supported
- Empty arrays and objects are handled gracefully
Frequently Asked Questions (FAQs)
What is JSON to CSV conversion used for?
JSON to CSV conversion is essential when you need to import JSON data into spreadsheet applications like Excel, Google Sheets, or database systems. CSV is the universal format for tabular data, making it easy to analyze, filter, and share structured data. Developers use it to export API responses, migrate data between systems, or prepare datasets for analysis.
Does it preserve complex nested objects?
Yes! Nested objects are flattened using dot notation in the column headers. For example, a JSON object with 'address.city' will become a column named 'address.city' in the CSV. Arrays within objects are converted to their JSON string representation, preserving all data without loss.
Is my data sent to any server?
Absolutely not. All conversions happen entirely in your browser using JavaScript. Your JSON data never leaves your device — nothing is uploaded, stored, or transmitted to any server. Your data remains completely private and secure.
How do I handle CSV files with special characters?
The converter automatically handles special characters. Values containing commas, quotes, or newlines are properly escaped with double quotes. The output is RFC 4180 compliant CSV, ensuring compatibility with Excel, Google Sheets, and most database import tools.
Can I convert CSV back to JSON?
This tool converts JSON to CSV. For the reverse conversion (CSV to JSON), you can use a CSV parser or a dedicated tool. However, since this converter flattens nested objects, converting back may require reconstructing the original structure.
What delimiter options are available?
You can choose from four delimiters: comma (CSV standard), tab (TSV format), semicolon (common in European locales), and pipe (useful when data contains commas). The default is comma, which works with most spreadsheet applications.