JSON to CSV Converter
Convert JSON data to CSV format with advanced options and comprehensive analysis
Common Use Cases
Simple Object Array
Convert basic JSON objects to CSV rows.
[{"name": "John", "age": 30}, {"name": "Jane", "age": 25}]Single Object
Convert a single JSON object to a one-row CSV.
{"product": "Laptop", "price": 999.99, "inStock": true}Details
Paste your JSON data (usually an array of objects) and this tool will convert it into Comma Separated Values (CSV) format, suitable for spreadsheets.
Examples
Convert Array of Objects
JSON Input:
[ { "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 } ]
CSV Output:
name,age
Alice,30
Bob,25Each object in the array becomes a row, and keys become headers.
Handling Nested Objects (Flattening)
JSON Input:
[ { "id": 1, "user": { "name": "Alice", "city": "New York" } } ]
CSV Output:
id,"user.name","user.city"
1,Alice,"New York"Nested object keys can be flattened using dot notation for headers.
About this tool
Paste a JSON array of objects and the converter produces CSV rows you can copy or download as a file. A single object is treated as a one-row table, every key found across the records becomes a column, and records that lack a key get an empty cell. Row and column counts are reported after each conversion.
Nested objects are flattened into dot-notation columns: {"user":{"name":"Ada"}} becomes a user.name column. Arrays inside objects are joined into one cell with a "; " separator, or kept as JSON strings when array flattening is switched off. The delimiter is yours to choose — comma, semicolon, tab or pipe — along with the header row and whether every field is quoted or only those that need it.
Conversion runs locally with PapaParse, so the JSON never leaves your browser. Data can also be loaded from a local .json file, and sample datasets for simple, nested and mixed records are one click away when you want to see the behavior first.
How to use this tool
Paste your JSON
Enter an array of objects, or load one from a file or a sample dataset.
Pick the output options
Choose a delimiter and toggle the header row, array flattening, quote-all and column sorting.
Convert
Run the conversion and check the reported row and column counts.
Copy or download
Copy the CSV to the clipboard or download it as a .csv file.
Frequently asked questions
How are nested objects converted to columns?
Each nested key path is flattened into a single header using dot notation, so {"user":{"name":"Ada"}} yields a column named user.name. All key paths found across the records are merged into one column set, and missing values become empty cells.
How do I open the CSV in Excel without broken characters?
The download is UTF-8 encoded. If accented characters look mangled when you double-click the file, use Excel's Data → From Text/CSV import, select 65001: Unicode (UTF-8) as the file origin, and pick the same delimiter you chose here.
What happens to arrays inside objects?
By default an array such as ["a","b"] is flattened into one cell containing a; b. Switch array flattening off and the cell keeps the original JSON string instead.
Can I convert CSV back to JSON?
Yes — the CSV to JSON converter on this site runs the reverse direction, parsing delimiter-separated text back into JSON objects.
Related guides
From JSON to Protobuf: Inferring a Schema From a Sample
How to derive a proto3 message from a JSON object — scalar inference, nested messages, repeated fields — and the edge cases to review.
Converting CSV to JSON: A Practical Guide
How to turn spreadsheet-style CSV into structured JSON — header handling, quoting and escaping rules, delimiter variants, type conversion gotchas, and how to go the other way.
Related tools
CSV to JSON Converter
Paste CSV data and convert it to pretty-printed JSON instantly — supports custom delimiters, header row toggling, and value trimming.
CSV Data Viewer
Paste CSV and browse rows in a sortable table with delimiter detection
CSV to SQL Converter
Generate SQL INSERT statements from CSV data
JSON Formatter
Advanced JSON formatter with validation, analysis, search, multiple format modes, file upload, and comprehensive statistics.