JSON to CSV and Back: Move Data Between ...

JSON to CSV and Back: Move Data Between APIs and Spreadsheets

Nov 28, 2026
9

Your API speaks JSON, your team lives in Excel. Here is how to make both happy in a few seconds.

Convert JSON to CSV and CSV to JSON for Excel with free DevDesk App tools

One paste turns API data into a spreadsheet, and back again.

Every developer gets this message sooner or later: "Can you send me that data in Excel?"

The data is a JSON array from an API. The person asking wants rows and columns. A few days later, the same person sends back an updated spreadsheet and you need it as JSON for an import script.

Three free tools on DevDesk App handle the whole round trip: JSON to CSV, CSV to JSON and Excel to JSON. They run in your browser, so customer lists and price sheets never leave your machine.

In this guide you will learn:

  • How to convert a JSON array to a clean CSV file

  • How to turn CSV or an Excel file into JSON

  • The three spreadsheet traps that quietly break data

  • How to handle nested JSON

JSON to CSV in One Paste

Paste this array into JSON to CSV:

[
  {"id": 1, "name": "Asha", "city": "Austin"},
  {"id": 2, "name": "Ben", "city": "Leeds, UK", "vip": true}
]

You get:

id,name,city,vip
1,Asha,Austin,
2,Ben,"Leeds, UK",true

The DevDesk App JSON to CSV converter turning a JSON array into CSV with headers

Tested live: headers detected, the comma value safely quoted.

Three nice details happen automatically:

  • Headers come from every key found in any object, so vip gets a column even though only Ben has it.

  • Missing values stay empty instead of breaking the row.

  • Values with commas are wrapped in quotes, so "Leeds, UK" stays one cell instead of splitting into two.

👉 Try it: https://www.devdeskapp.com/json-to-csv

CSV to JSON for Your Import Script

Going the other way is just as quick. Paste CSV into CSV to JSON:

id,name,city
1,Asha,Austin
2,Ben,"Leeds, UK"

and you get a pretty printed array that uses the header row as keys:

[
  {"id": 1, "name": "Asha", "city": "Austin"},
  {"id": 2, "name": "Ben", "city": "Leeds, UK"}
]

The DevDesk App CSV to JSON converter producing a JSON array from CSV rows

The quoted comma stays inside the city value, exactly as it should.

You can switch First row is header off when your file has no header, and choose the indentation of the output.

👉 Try it: https://www.devdeskapp.com/csv-to-json

Straight From Excel: Excel to JSON

Have an actual .xlsx file? Skip the CSV export. Excel to JSON reads .xlsx, .xls and .csv files directly in your browser and converts the first sheet into a JSON array.

A sheet with the headers sku, name and price and two rows becomes:

[
  {"sku": "A100", "name": "Desk lamp", "price": 24.5},
  {"sku": "A101", "name": "Monitor arm", "price": 59}
]

Numeric cells come out as numbers, text cells as strings, and formulas are exported as their calculated values.

👉 Try it: https://www.devdeskapp.com/excel-to-json

The Three Spreadsheet Traps (and Easy Fixes)

These small things cause most "the data looks wrong" messages:

  • Leading zeros disappear. Postal codes like 02139 and phone numbers lose their first zero when Excel treats them as numbers. Import the CSV through Data, From Text/CSV and set those columns to Text.

  • Long IDs get rounded. Excel shows only 15 significant digits. Keep order IDs and card style numbers as text.

  • Dates turn into numbers. Excel stores dates as serial numbers. Format date columns as text in the ISO order of year, month and day before converting, and every system will read them the same way.

One more friendly tip: save CSV files as UTF 8, so names like José and Zoë display correctly everywhere.

What About Nested JSON?

CSV is flat, so nested objects need a decision:

  • Flatten them into dotted columns like address.city

  • Keep the nested part as JSON text in one cell

  • Explode arrays into several rows, which is usually done in code

For quick exports, flattening the few fields people actually need is often the cleanest choice.

Related Tools You Might Like

What We Build at DevDesk App

Converting files by hand every week? That is exactly the kind of task we automate. Besides 340+ free tools, our team builds for businesses worldwide:

  • n8n workflow automation: scheduled exports from your API or database to Google Sheets, Excel or Slack, Shopify and WooCommerce sync, lead routing and reports. See https://www.devdeskapp.com/n8n-automation-services

  • Custom n8n nodes and API integrations: connect your own system to n8n, plus workflow reviews and self hosted n8n setup.

  • Tool and web development: custom converters, import tools and internal dashboards, built privacy first.

Every project gets a fixed quote after a short chat. Email [email protected] or use https://www.devdeskapp.com/contact

Final Thoughts

JSON for machines, spreadsheets for people. With a converter in each direction, you never have to choose. Bookmark the tools, send your colleague that clean CSV in a minute, and enjoy the thank you message.

Happy converting!

Enjoy this post?

Buy DevDesk App a coffee

More from DevDesk App