Skip to content
YouNeed Tools
Free VPN

JSON to CSV Converter

Paste JSON and get a CSV that opens cleanly in Excel or Google Sheets, with nested objects turned into named columns.

Lists (arrays)
CSV separator

3 rows, 9 columns.

idnameemailaddress.cityaddress.ziptags.0tags.1tagsactive
1Ana Silva[email protected]Austin78701newvip
2Ben O'Neil[email protected]LeedsLS1 4AP
3Chen, Li[email protected]Torontotrue

Nested objects become columns named with dots (address.city). Open the file in Excel, Google Sheets or Numbers, or turn it back with the CSV to JSON converter.

Converted on your device. Your data isn’t sent anywhere.

Worked example: orders from an API

An API answer has its orders inside data.orders, each with a nested customer and a list of items. The converter finds the list at data.orders and makes 6 columns: id, total, customer.name, customer.country, items.0, items.1. The first row reads A-17,42.5,Ruth,US,mug,tea. The second order has only one item, so its items.1 cell is empty. With “Joined in one cell” the items collapse into one column instead: A-17,42.5,Ruth,US,mug; tea.

{
  "data": {
    "orders": [
      {
        "id": "A-17",
        "total": 42.5,
        "customer": {
          "name": "Ruth",
          "country": "US"
        },
        "items": [
          "mug",
          "tea"
        ]
      },
      {
        "id": "A-18",
        "total": 9,
        "customer": {
          "name": "Owen",
          "country": "UK"
        },
        "items": [
          "card"
        ]
      }
    ]
  }
}

How the columns are made

  • Order: columns appear in the order keys are first met, so the first record’s keys come first and keys that only later records have are added on the right.
  • Missing keys leave an empty cell; null also becomes an empty cell. True and false are written as true and false.
  • Empty objects and arrays become {} or an empty cell, so the column still exists.
  • Quotes and commas inside values are written by the CSV rules (RFC 4180): the cell is wrapped in quotes and quotes inside are doubled.

CSV and spreadsheet formulas

A CSV cell that starts with = or + is run as a formula when the file is opened in a spreadsheet. If your JSON comes from users (names, comments, addresses) that can be abused to run commands or leak data, an attack called CSV injection. With protection on, such cells are written with an apostrophe in front, which spreadsheets show as plain text. Real numbers such as -12 are left alone.

JSON Lines and big files

Log files and data exports often use JSON Lines: one JSON object per line instead of one big array. The converter recognises that format and reads each line as a record. Everything happens in memory on your device, so files of a few tens of megabytes work on most computers; very large exports are better split first.

When you need JSON as CSV

Analysts are often handed JSON from an API, a webhook log or a database export, but the people who use the numbers work in spreadsheets. Converting to CSV lets them sort, filter, build pivot tables and charts without writing code. The dot-path column names keep the link to the original structure, so a developer can read the spreadsheet and know where each value came from. For very wide data, choose “Joined in one cell” so that lists of tags or categories don’t create dozens of mostly empty columns. If the JSON is deeply nested, check the preview: a column per nested value can be exactly right for an order and its customer, while a list of order lines usually belongs in its own table.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

How do I convert JSON to CSV?
Paste the JSON or open a .json file. Each object in the array becomes a row and each key a column. Check the preview table, then download the CSV or copy it.
What happens to nested objects?
They are flattened into columns named with dot paths, so { "address": { "city": "Austin" } } becomes a column called address.city. The CSV to JSON converter can rebuild the nesting from those names.
How are arrays handled?
Three ways: a column per item (tags.0, tags.1), all items joined into one cell with semicolons, or the array kept as JSON text in one cell. Joining works best for short lists of words; columns for fixed-length lists such as coordinates.
My JSON is an API response, not an array. Will it work?
Yes. If the top level is an object, the converter looks inside it for the first list of objects, such as data.orders, and tells you which path it used. A single object becomes one row.
Will Excel open the CSV correctly?
Yes. The file starts with a byte order mark so Excel shows accents and non-Latin letters correctly, and text that Excel would run as a formula (starting with =, +, - or @) is protected with an apostrophe. Pick semicolons if your Excel uses a comma as the decimal mark.
Is the data uploaded?
No. The conversion runs in your browser, so tokens and customer data stay on your machine.

Last updated: 2026-11-26