About JSON to CSV Converter
JSON to CSV Converter turns JSON data, such as an API response or a database export, into a CSV file you can open in Excel, Google Sheets or Numbers. It also works the other way round, turning a CSV spreadsheet export into clean JSON for your code.
How it works
For JSON → CSV, every object in the array becomes a row and every key becomes a column. Columns are collected from all rows in the order they first appear, so objects with missing or extra keys still line up. With Flatten nested objects on, nested data becomes dot-notation columns: {"address": {"city": "Paris"}} turns into a column called address.city. Arrays are kept as JSON text inside their cell.
Values are quoted following the CSV standard (RFC 4180): any value that contains the delimiter, a double quote or a line break is wrapped in quotes, and inner quotes are doubled. The Excel-friendly option adds an invisible UTF-8 marker at the start of the file so Excel shows accented letters, Arabic and other scripts correctly.
For CSV → JSON, the first row is used as the keys, quoted fields and line breaks inside quotes are handled, and the delimiter is detected from the header row. With Detect numbers and booleans on, values like 42 and true become real numbers and booleans instead of text.
What you can use it for
- Open API data in a spreadsheet to filter, sort and chart it.
- Share exports with non-developers who live in Excel or Google Sheets.
- Import spreadsheets into apps by converting CSV to JSON for seeding databases, tests and mock APIs.
- Check data quality: the table preview makes missing fields and odd values easy to spot.
Tips for the best results
- If Excel puts everything in one column, your region expects semicolons. Choose the semicolon delimiter and download again.
- Leading zeros (postcodes, phone numbers) may be stripped by Excel when it opens a CSV. Import the file through Excel's data import and set those columns to Text.
- Very deep nesting creates many columns. Turn flattening off to keep nested objects as JSON text in one column.
- Invalid JSON? Fix it first with the JSON Formatter, which shows the exact line and column of the problem.
Safe for business data: exports often contain customer names, emails and order details. This converter runs in your browser and never uploads them.