JSON to CSV Converter

Convert a JSON array into CSV you can open in Excel or Google Sheets.

How to Use JSON to CSV Converter

  1. Paste a JSON array of objects, or a single object.
  2. Click Convert JSON to CSV.
  3. Copy the CSV or click Download to save a .csv file.

How the conversion works

Every object becomes a row and every key becomes a column. Keys are collected from all objects, so a field that appears in only some rows still gets a column, left empty where it's missing. Nested objects are flattened into dotted column names, so { "address": { "city": "Pune" } } becomes a column called address.city. Arrays are kept in their JSON form inside a single cell.

Every value is wrapped in quotes and any quotes inside are doubled, which keeps commas and line breaks in your data from breaking the columns.

Opening the file in Excel

The downloaded file includes a small marker (a byte-order mark) that tells Excel it's UTF-8, so accented letters, rupee signs and other non-English text display correctly instead of turning into odd symbols. Google Sheets and LibreOffice open it directly too.

Key Features & Practical Use Cases

  • Opening an API response or export in Excel or Google Sheets.
  • Sharing JSON data with someone who works in spreadsheets.
  • Importing JSON records into a tool that only accepts CSV.

Frequently Asked Questions

What JSON format does it need?

An array of objects, like [{"id":1},{"id":2}], or a single object, which becomes one row.

What happens to nested data?

Nested objects become dotted column names such as user.name. Arrays are stored as JSON text in one cell.

Why do I get an error?

The JSON is probably invalid. Check it with our JSON Formatter, which shows where parsing failed.

Is my data uploaded?

No. The conversion runs in your browser.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • CSV to JSON Converter - Turn CSV or spreadsheet data into a JSON array, with quoted fields handled properly.
  • HTML Formatter - Indent messy HTML so it is easy to read, or minify it to a single line.
  • SQL Formatter - Format and beautify SQL queries across multiple database dialects.
  • JSON Formatter & Validator - Format, validate, prettify, and parse raw JSON data.
  • CSS Minifier - Remove comments and spaces from CSS to make the file smaller.
  • JavaScript Minifier - Minify JavaScript with terser: removes whitespace and comments and shortens local names.