JSON to CSV
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Output appears here
Paste or open your data in the input box. It never leaves your browser.
JSON to CSV Converter
Turn an array of JSON objects into CSV rows you can open in Excel or Google Sheets. Nested objects become dotted column names such as address.city, and you can convert CSV back to JSON just as easily.
Example: orders with nested fields for a spreadsheet
Each record becomes a row and the header is every key across all records. Nested objects become dotted columns such as customer.city, the tags array becomes tags.0 and tags.1, a field missing from one record leaves its cell empty, and the note that starts with = gets an apostrophe so Excel shows it instead of running it:
Input
[
{
"id": "ORD-1",
"total": 2499,
"customer": {
"name": "Ananya Rao",
"city": "Pune"
},
"tags": [
"gift",
"express"
],
"note": "=Leave at gate"
},
{
"id": "ORD-2",
"total": 799,
"customer": {
"name": "Kabir, Jr.",
"city": "Delhi"
},
"tags": [
"express"
]
}
]Output
id,total,customer.name,customer.city,tags.0,tags.1,note
ORD-1,2499,Ananya Rao,Pune,gift,express,'=Leave at gate
ORD-2,799,"Kabir, Jr.",Delhi,express,,
How do I use the JSON to CSV?
- Paste a JSON array of objects, or open a file.
- Pick the separator: comma, semicolon, tab, pipe or your own.
- Copy the CSV or save it as a .csv file.
What does the JSON to CSV do?
- Flattens nested objects into dotted columns
- Keeps formulas as text by default so the file is safe to open in Excel
- CSV to JSON with numbers and booleans detected
- Build a real .xlsx workbook with JSON to Excel
When to use the JSON to CSV
Spreadsheets, BI tools and most import screens take CSV, while APIs and databases give you JSON. Converting lets you sort and filter an API response in Excel or Google Sheets, share data with someone who doesn't use JSON, or import records into a tool that only reads CSV.
Each record becomes a row and the header is every key found across all records, so a field missing from one record leaves an empty cell instead of shifting the columns. Nested objects become dotted columns such as customer.city and arrays numbered columns such as tags.0. Values containing the separator, quotes or line breaks are quoted, and values that look like spreadsheet formulas, such as =SUM(…), get a leading apostrophe so Excel shows them instead of running them.
Frequently asked questions
- Why does Excel put everything in one column?
- In many European locales Excel expects semicolons, because the comma is the decimal mark. Set Separator to semicolon, or use JSON ⇄ Excel to download an .xlsx file that opens correctly everywhere.
- Why did a value get an apostrophe in front?
- It starts with = or @, or with + or - followed by letters (like -A1+B1), so a spreadsheet would run it as a formula, which is how CSV injection works. Phone numbers like +91 98765 and negative numbers are left alone. Set Formulas to leave them as they are if you need the raw text.
- How are nested objects handled?
- Each nested key becomes its own column with a dotted name, like stock.pune.
- Can I use a semicolon or tab separator?
- Yes, choose it from Separator, or type any single character.
- Can I convert CSV to JSON?
- Yes. Change Direction to CSV → JSON, or simply open a .csv file.
More JSON tools
Bracely has 108 JSON tools in one page. Related ones:
- JSON to XML
- JSON to Excel
- YAML to JSON
- CSV to JSON
- XML to JSON
- JSON to TOML
- TOML to JSON
- JSON Lines / NDJSON
- JSON5 / JSONC to JSON
- JSON to SQL
- JSON to Markdown table
- JSON to HTML table
- JSON to query string
- JSON to plain text
- JSON to Go
- JSON to Java
- Convert JSON key case
- Remove nulls from JSON
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- jq Playground
Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram