JSON to CSV

Live

JSON to CSV converts JSON to CSV or TSV: an array of objects, an array of arrays or a single object becomes rows and columns.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

Columns are the union of all keys. Nested objects and arrays are written as JSON text inside the cell. Values containing the separator, quotes or line breaks are quoted.

What is JSON to CSV?

JSON to CSV converts JSON to CSV or TSV: an array of objects, an array of arrays or a single object becomes rows and columns. Values containing the separator, quotes or line breaks are quoted.

How It Works

  1. Enter your JSON and the separator and header options in the input fields on this page.
  2. Press the button to run JSON to CSV.
  3. Read the delimited text, ready to paste into a spreadsheet in the result area, and copy or download it.

Worked Example

This is the real result JSON to CSV returns for the sample input shown, captured by running the tool itself.

JSON Array Content[["name","age"],["John","30"]]
Delimiter (type a tab for TSV, defaults to comma),
name,age
John,30

Common Uses

Good to Know

Columns are the union of all keys. Nested objects and arrays are written as JSON text inside the cell.

What it accepts

Paste an array of objects, an array of arrays or a single object. The output is CSV or TSV with a header row if you want one. For an array of objects, the columns are the union of all keys, so records with different keys still line up.

Worked example

[{"a":1,"b":"x,y"},{"a":2,"c":{"d":1}}] gives columns a, b and c. The value x,y is quoted because it contains a comma, and the nested object {"d":1} is written as JSON text inside its cell, with its quotes doubled as CSV requires. Missing values are left empty.

Good to know

Nested objects and arrays are not flattened into separate columns; they are written as JSON text in a single cell. If you need flat columns, flatten the data first. Spreadsheets may reformat long numbers or dates when you open the file, so import it as text if exact values matter.

Frequently Asked Questions

Can I get tab-separated output?

Yes. Choose Tab (TSV) as the separator. Semicolon is also available.

Why are some cells empty?

A record did not have that key.

Is my data uploaded?

No. The conversion runs in your browser.

What does JSON to CSV do?

JSON to CSV converts JSON to CSV or TSV: an array of objects, an array of arrays or a single object becomes rows and columns. Values containing the separator, quotes or line breaks are quoted.

What do I need to enter in JSON to CSV?

Your JSON and the separator and header options.

Is my data private in JSON to CSV?

JSON to CSV runs in your browser, so what you enter is not uploaded to MyToolDock.

What input does JSON to CSV expect?

JSON to CSV expects: JSON Array Content. A second field, Delimiter (type a tab for TSV, defaults to comma), is also used. For example, entering [["name","age"],["John","30"]] is a valid starting point.

What does JSON to CSV return for a sample input?

With [["name","age"],["John","30"]] as input, the tool outputs: name,age John,30

Is MyToolDock JSON to CSV free to use?

Yes, MyToolDock JSON to CSV is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Where can I learn more about JSON to CSV and related workflows?

MyToolDock publishes written guides on the topic: Why You Need JSON Formatting and Validation; CSV to JSON: Simplifying Web Data Imports. Each guide links back to the tools it covers.

Related Tools

CSV to JSON CSV and Markdown Table Converter CSV to Excel Converter CSV to HTML Table Converter JSON Lines Converter JSON to TSV Converter

Guides

More in Converter Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!