The JSON to CSV Converter is a free online tool that allows you to easily convert JSON data to CSV format. Whether you're working with simple JSON objects or complex nested structures, this tool makes it easy to transform your data into a format that can be opened in spreadsheet applications like Excel or Google Sheets.
Features
Convert JSON to CSV
Transform JSON data into CSV format with automatic header detection. Works with both JSON objects and arrays of objects.
Handle Nested Objects
Flatten nested JSON objects using dot notation for nested properties. For example, { "user": { "name": "John" } } becomes a column with header "user.name".
Custom Delimiters
Choose from different delimiter options: comma, semicolon, tab, or pipe. Select the one that works best for your data.
Download CSV
Download the converted CSV file directly to your computer. No need to copy and paste the output.
Copy to Clipboard
Easily copy the CSV output to your clipboard with a single click. Perfect for pasting into other applications.
Preview Output
See a preview of the CSV output before downloading. Ensure the conversion meets your expectations.
How to Use This Tool
- Enter or paste your JSON data in the input field
- Select your preferred delimiter (comma, semicolon, tab, or pipe)
- Choose whether to include headers in the output
- Click the "Convert" button to generate the CSV
- Preview the output in the result field
- Click "Copy" to copy the CSV to your clipboard or "Download" to save it as a file
JSON to CSV Conversion Examples
Simple JSON Object
// JSON Input
{
"name": "John Doe",
"age": 30,
"email": "john@example.com"
}
// CSV Output
name,age,email
"John Doe",30,"john@example.com"
Array of JSON Objects
// JSON Input
[
{
"name": "John Doe",
"age": 30,
"email": "john@example.com"
},
{
"name": "Jane Smith",
"age": 25,
"email": "jane@example.com"
}
]
// CSV Output
name,age,email
"John Doe",30,"john@example.com"
"Jane Smith",25,"jane@example.com"
Nested JSON Object
// JSON Input
{
"name": "John Doe",
"contact": {
"email": "john@example.com",
"phone": "123-456-7890"
}
}
// CSV Output
name,contact.email,contact.phone
"John Doe","john@example.com","123-456-7890"
This tool works entirely in your browser - no data is sent to any server, ensuring your data remains private and secure.