JSON to CSV Converter for Nested Data and Salesforce
Paste JSON or open a file and get a CSV that opens cleanly in Excel: nested fields as columns, lists in one cell or one row each. Salesforce API results lose their attributes clutter. Free, in your browser, nothing uploaded.
Your JSON
The converter needs JavaScript.
Nested JSON, Flat Columns
A CSV has rows and columns; JSON has records inside records. The converter walks each record and gives every nested field its own column, named by its path, so company.address.city stays readable and sorts like any other column.
Records rarely have the same fields. Every key of every record becomes a column, in the order the converter first meets it, and a record without that key gets an empty cell.
{ "name": "Anna Berg",
"company": { "name": "Nordlicht GmbH",
"address": { "city": "Hamburg" } } }
→ name, company.name, company.address.cityTry a Real Payload
Each loads JSON the way an API or an export writes it.
- Example
Accounts With Their Contacts
A SOQL query with a parent lookup and a child subquery, as the REST API returns it. One row per contact, the account and its owner next to each.
- 0attributes columns left
- 1row per contact
- 0files uploaded
- Nested
Objects Inside Objects
A company with an address, three levels deep.
- Lists
Tags in One Cell
A list of tags per contact, joined with semicolons.
- JSON Lines
One Event per Line
An event log from a webhook or a data export.
- Mixed
Different Keys per Record
Each record has other fields; every one gets a column.
Salesforce JSON Without the Clutter
The Salesforce REST API puts an attributes block with the object type and a URL on every record, and again on every related record. A plain converter turns each of them into columns: attributes.type, attributes.url, Owner.attributes.type, and so on.
When the data comes from Salesforce, this converter leaves every attributes block out. Parent fields from a lookup become columns such as Owner.Name. Child records from a subquery arrive as a list with totalSize and done; the converter reads only the records, so they go into one cell or one row each.
- Works with REST API, Workbench and SOQL query results
- Child subqueries as rows, which Data Loader cannot export
- Dates and IDs stay text; for a Data Loader date format, use the Salesforce date converter
Name,Owner.Name,Contacts.Name
Nordlicht GmbH,Anna Berg,Ben Okafor
Nordlicht GmbH,Anna Berg,Clara Rossi
Harbor Tools,David Kim,Convert JSON to CSV in Four Steps
From an API response to a file Excel opens.
- 1
Paste or Open
Paste the JSON, or open a .json or .jsonl file of up to 50 MB.
- 2
Check the Preview
The first 100 rows show at once, with the number of rows and columns.
- 3
Choose the Rows
Keep one row per record, or pick a list for one row per item.
- 4
Download the CSV
Pick the separator your Excel expects, then download or copy.
What It Reads, Read Locally
The rules behind the columns, and where the converter stops.
- 50MB per file, read in your browser
- 100Rows in the preview
- 0Bytes uploaded
- Where the records are. A list of records, one record, or an object that holds them, such as Salesforce’s records or an API’s data list.
- Lists of objects. In one cell, one column per field with the values in the same order, so the second value of each column belongs to the second item.
- Formulas. A value Excel would read as a formula, such as =SUM(…) or @name, gets an apostrophe in front, so Excel shows it and never runs it. Numbers and phone numbers stay as they are.
- Long numbers. Numbers with 16 or more digits lose their last digits in any JSON reader; the converter warns when it sees one.
JSON to CSV FAQ
Short answers to what people ask about turning JSON into a spreadsheet.
How do I convert nested JSON to CSV?
Paste it above. Each nested field becomes its own column with a dotted name, for example company.address.city, so nothing is lost and nothing is pasted into one cell as raw JSON.
What happens to lists inside a record?
By default a list goes into one cell, its values joined with a semicolon. Under One row per you can pick a list instead, and each of its items gets its own row with the record’s other values repeated.
Why does my Salesforce export have attributes.type and attributes.url columns?
The REST API adds an attributes block to every record and every related record. This converter leaves those blocks out at every level when the data comes from Salesforce.
How do I get child records from a SOQL subquery into a CSV?
Paste the query result and choose the child relationship, for example Contacts, under One row per. Each contact gets its own row with its account’s fields next to it. Data Loader does not export subqueries, so this is the short way.
Will Excel show umlauts and accents correctly?
Yes. The file is UTF-8 with the mark Excel looks for, and you can pick comma, semicolon or tab to match your Excel’s list separator.
Is my JSON uploaded?
No. The JSON is read and converted in your browser. Nothing is sent or stored, and nothing from it reaches analytics.
More Free Tools
We Make Salesforce Marketing Work for You
Talk to a certified consultant, not a salesperson, and leave the first call knowing your next step.