JSON to CSV Converter

Turn a JSON array into a spreadsheet-ready CSV file, or convert CSV back to JSON. Nested objects are flattened into columns and you can preview the table before downloading.

  • JSON ⇄ CSV
  • Nested objects flattened
  • Excel-ready
JSON input
CSV output
How to use

How to use JSON to CSV Converter

  1. 01

    Paste or upload

    Paste JSON or CSV, upload a file, or load the sample. Choose the conversion direction.

  2. 02

    Adjust the options

    Pick a delimiter, choose whether to flatten nested objects, and check the table preview.

  3. 03

    Copy or download

    Copy the result or download a .csv file that opens correctly in Excel, or a .json file.

Guide

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.

At a glance

Directions
JSON to CSV and CSV to JSON
Nested data
Flattened to dot.notation columns
Delimiters
Comma, semicolon or tab
Excel
UTF-8 BOM for correct accents
Preview
Table of the first 50 rows
Privacy
Converted in your browser
Use JSON to CSV Converter Read the guideHow to Convert Nested JSON to CSV: Flatten Objects and Arrays
FAQ

Questions about this tool

Something missing? Write to contact@ultratoolsai.com.

What JSON can be converted?

An array of objects works best: each object becomes a row and each key a column. A single object becomes one row, and an object that wraps an array (such as {"data": [...]}) is unwrapped automatically.

How are nested objects handled?

With Flatten nested objects on, {"address": {"city": "Paris"}} becomes a column named address.city. Arrays are written as JSON text inside the cell.

Why does my CSV look wrong in Excel?

Excel in some regions expects semicolons instead of commas. Choose the semicolon delimiter, and keep Excel-friendly on so accented characters display correctly.

Is my data uploaded?

No. The conversion runs entirely in your browser, so it is safe for exports that contain customer or business data.