Skip to content
CALZYRA— TOOLS THAT EMPOWER —
FinanceInvestmentsHealthMathBlog
CALZYRA— TOOLS THAT EMPOWER —

Practical calculators and online tools, made to be simple and useful.

Popular Categories

  • Finance
  • Health & Fitness
  • Mathematics
  • Physics
  • Construction
  • Conversion

Finance Tools

  • Loan Calculators
  • Investment Calculators
  • Compound Interest
  • SIP Calculator
  • ROI Calculator
  • CAGR Calculator

Top Calculators

  • Mortgage Calculator
  • BMI Calculator
  • Percentage Calculator
  • Calorie Calculator
  • Tip Calculator

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Calzyra. All rights reserved.

Free tools for everyday calculations, learning, and practical work.
HomeDeveloper ToolsJSON ToolsJSON to CSV Converter

JSON to CSV Converter – Convert JSON to CSV Online

Convert JSON to CSV online free. Paste a JSON array or object into this JSON to CSV Converter and get the same data back as comma-separated rows and columns — ready for Excel, Google Sheets, a reporting tool or a database import.

Nothing is uploaded and no sign-up is needed: the conversion runs locally in your browser, so your data never leaves your device.

Paste JSON on the left and it is converted to CSV here.
json
1

1 lines0 chars0 wordsjson

Paste a JSON array of objects for the best result. Press Ctrl + Enter to convert.

CSV Output

Your CSV will appear here

Paste JSON on the left, then press Convert to CSV. Each JSON field becomes a column and each object becomes a row.

Ctrl+Enterto convertRows are separated by newlines, as RFC 4180 allows.

More JSON tools

JSON Formatter

Format and beautify JSON into readable JSON

JSON Validator – Validate JSON Online

Validate JSON syntax and find errors

JSON Minifier – Minify JSON Online

Minify JSON into a single line

JSON Tree Viewer

View JSON as an expandable tree

JSON Flattener

Flatten nested JSON to flat keys

JSON to YAML Converter

Convert JSON to indented YAML

JSON to XML Converter

Convert JSON to indented XML

What is a JSON to CSV converter?

A JSON to CSV converter turns structured JSON data into comma-separated values: a header row naming the columns, then one row per record. JSON describes objects and arrays; a CSV describes a table. The converter is the mapping between the two - the keys of your objects become the column names, and each object in the array becomes one row of the spreadsheet.

That is the conversion you need whenever data arrives as JSON but has to be worked with in a table. Typical uses are exporting API responses to a spreadsheet, loading a dataset into a reporting tool, checking a JSON payload by eye in Excel, and feeding data into a script or a database import that expects rows and columns.

Nothing is uploaded and no account is needed. The conversion runs locally in your browser, so your data stays on your machine - which matters when the JSON is a customer record, a log export or an internal API response.

How to convert JSON to CSV

The workflow is three steps: paste, convert, copy.

  1. 1Paste valid JSON into the JSON Input panel. An array of objects gives the cleanest table, and Load Example or Upload .json will fill the panel for you.
  2. 2Click Convert to CSV. The JSON is parsed, checked and then mapped onto a table: each object becomes a row and each field becomes a column.
  3. 3Review the generated CSV in the CSV Output panel. Values containing a comma, a quote or a line break are quoted so the columns stay aligned.
  4. 4Copy the CSV or press Download to save it as a .csv file you can open in Excel, Google Sheets or any data-processing tool.

The conversion happens entirely in your browser. There is no upload step, no account and no usage limit, so it is equally usable for a three-line snippet and for a multi-megabyte API response.

JSON to CSV example

The object below is converted to the CSV beside it. Each JSON key becomes a CSV column of the same name, and the single object becomes a single row under those headers.

When the JSON is an array of objects, every object becomes its own row and the columns are shared. That is the shape almost every API returns, and it is what makes the result open directly in a spreadsheet.

JSON input
{
  "name": "John",
  "age": 30,
  "city": "Lahore"
}
CSV output
name,age,city
John,30,Lahore

Nested JSON and escaped values

CSV is a flat format, so nested JSON has to be reshaped rather than copied. A nested object becomes one column per leaf, named with the path that leads to it - address.city, stats.views - so nothing is hidden inside a cell and every value can be sorted and filtered in a spreadsheet.

A JSON array inside a record has no column of its own, so its items are joined into a single cell with a semicolon between them: ["JavaScript", "Python"] becomes JavaScript; Python. A semicolon rather than a comma is used on purpose, because a comma would look like a new column to the spreadsheet.

Values are written exactly as they are in the JSON, and a value that contains a comma, a double quote or a line break is wrapped in double quotes so it stays in one cell. In the example below, "New York, NY" and a value containing quotes both survive the round trip into Excel.

JSON input
[
  {
    "name": "John Doe",
    "city": "New York, NY",
    "note": "He said \"hello\"",
    "address": {
      "city": "Lahore",
      "country": "Pakistan"
    },
    "skills": ["JavaScript", "Python"],
    "active": true,
    "score": null
  }
]
CSV output
name,city,note,address.city,address.country,skills,active,score
John Doe,"New York, NY","He said ""hello""",Lahore,Pakistan,JavaScript; Python,true,

JSON vs CSV: when to use which

Neither format is universally better - they are built for different jobs, and choosing the right one is usually about who reads the data next.

AspectJSONCSV
StructureObjects and arrays, nested to any depthA flat table: rows and columns
Best forAPIs, data interchange, configuration payloadsSpreadsheets, reporting, data analysis, imports
Data typesStrings, numbers, booleans and null are distinctText only - every cell is read as text
Uneven recordsEvery object can have different keysEvery row has the same columns
MetadataKeys are part of the data and are typedOnly a header row of column names
CommentsNot allowedNot part of the format
Opening itA text editor or a code viewerExcel, Google Sheets, LibreOffice, a database import

A practical rule: if a program on the other end parses the data, or if it travels over a network or gets stored in a database column, keep it as JSON. If a person has to read, sort, filter or chart the data, convert it to CSV - every spreadsheet and most BI and reporting tools expect exactly that shape.

When JSON to CSV conversion works best

CSV is inherently tabular: every row has the same columns and every value is text in one cell. JSON that already looks like a table therefore converts cleanly - an array of objects with the same fields in each one, which is what a database export, a list endpoint or a fixture file usually contains.

Nested JSON converts too, but it has to be flattened, because a cell cannot hold a sub-table. This converter flattens nested objects into dot-notation columns and joins an array inside a record into one cell, so the data is never dropped. Two limits are worth knowing: a JSON null becomes an empty cell, so it is indistinguishable from an empty string once it is in the spreadsheet; and nesting deeper than eight levels is written as JSON text in a single cell instead of being split into columns.

If you need the exact types, the exact nesting or multiple records per field, JSON is the better format and CSV is the wrong tool. Converting is still the right call when the next step is a spreadsheet, a pivot table, a CSV import or a quick look at the data.

Related JSON tools

Converting JSON to CSV is only one of the jobs a JSON workflow involves. These are the other Calzyra tools you are most likely to reach for next.

  • Need to make minified JSON readable before you convert it?JSON Formatter
  • Need to know whether a payload is valid JSON and where it breaks?JSON Validator
  • Need to shrink JSON back to a single line for a URL or a payload?JSON Minifier
  • Need to explore a deeply nested document as collapsible nodes?JSON Tree Viewer
  • Need a flattened key-value view of the same nesting?JSON Flattener
  • Need YAML output instead of CSV?JSON to YAML Converter
  • Need an XML document instead of CSV?JSON to XML Converter

Frequently Asked Questions

What is a JSON to CSV converter?▾

A JSON to CSV converter rewrites structured JSON data as comma-separated values: one line per record, one column per field, with the first line holding the column names. JSON describes objects and arrays, while a CSV describes a table, so the converter maps your data onto that table - a JSON array becomes the rows and the object keys become the headers. The result is a text file that Excel, Google Sheets, LibreOffice and database import tools read directly.

How do I convert JSON to CSV?▾

Paste your JSON into the JSON Input panel, press Convert to CSV, then read the result in the CSV Output panel and copy it or download it as a .csv file. Conversion also runs automatically as you type, so the button is a shortcut rather than a requirement. Everything happens inside your browser, so there is nothing to install and your data is never uploaded.

Is this JSON to CSV converter free?▾

Yes. It is free to use with no sign-up, no usage limit and no watermark. Because the conversion runs locally in your browser, there is also no upload size limit, which makes it usable for large API responses and data exports.

Can I convert an array of JSON objects to CSV?▾

Yes, and that is the case it is built for. Every object in the array becomes one row and every key becomes one column. Columns are collected from all of the records rather than only the first one, so a record that has an extra field keeps that field instead of losing it; a record that is missing a field simply leaves that cell empty. A single JSON object also works and produces a one-row CSV.

Can I convert nested JSON to CSV?▾

Yes. Nested objects are flattened into one column per leaf value, named with dot notation - address.city rather than a cell containing an object. Arrays inside a record have no CSV equivalent, so their items are joined into a single cell with a semicolon between them, which keeps every value readable without adding columns. If two different fields flatten to the same column name, the second one is numbered in the header rather than overwriting the first, and the converter tells you when that happens.

Can I download the generated CSV?▾

Yes. Press Download to save the output as converted.csv, which you can open in Excel, import into a database or feed to a script. Copy CSV puts the same text on your clipboard when you would rather paste it somewhere else.

Can I open the CSV in Excel or spreadsheet software?▾

Yes. The output follows the CSV rules of RFC 4180: values containing a comma, a double quote or a line break are wrapped in double quotes, and an embedded quote is doubled, so Excel, Google Sheets and LibreOffice split the rows and columns exactly as they should. Values are written as they are, with no locale-dependent formatting, and UTF-8 is used so accented and non-Latin characters survive the round trip.

Does the converter validate JSON?▾

Yes. The input is parsed with a strict JSON parser before anything is written, and if it does not parse the converter reports the first syntax error with its line, column and the offending line of text. No CSV is produced in that case, and your input is left untouched so you can fix it in place.

What is the difference between JSON and CSV?▾

JSON is a structured data format built for APIs: it holds objects, arrays, numbers, booleans and null, it nests to any depth, and it keeps the exact type of every value. CSV is a tabular format built for rows and columns: every row has the same columns, values are text, and there is no nesting at all. Use JSON when a program reads the data, and CSV when a person or a spreadsheet reads it - which is why converting between them is so common.

JSON Tools

JSON FormatterJSON Validator – Validate JSON OnlineJSON Minifier – Minify JSON OnlineJSON BeautifierJSON Tree ViewerJSON to CSV ConverterJSON to XML ConverterJSON to YAML ConverterJSON Diff ToolJSON Merge ToolJSON FlattenerJSON UnflattenerJSON Schema ValidatorJSON Path TesterJSON SorterJSON Pretty PrintJSON Escape ToolJSON Unescape ToolJSON to TypeScript InterfaceJSON to TypeScript Interface GeneratorJSON Query ToolJSON Compare ToolJSON Statistics CalculatorJSON Size CalculatorJSON Optimizer

About this converter

  • Turns each JSON object into a CSV row and each field into a column, with the header row taken from every record.
  • Flattens nested objects into dot-notation columns such as address.city, so no value is hidden inside a cell.
  • Joins an array inside a record into one cell with a semicolon between the items.
  • Escapes commas, quotes and line breaks per RFC 4180, so Excel and Google Sheets split the rows correctly.
  • Parses the JSON first and reports the line and column of a syntax error instead of emitting broken CSV.
  • Runs entirely in your browser – no uploads.