Convert JSON to CSV

Paste JSON and get CSV back. Free, no signup, and nothing you paste is stored. The same conversion is available as an API call and to AI agents over MCP.

Input

A JSON array of objects (or one object).
Column separator for the output.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

How to convert JSON to CSV

  1. Paste your JSON into the input box.
  2. Press Run.
  3. Copy the CSV or download it as a file.

This page runs the json to csv tool. Open the tool itself for every option.

What happens in this conversion

What you need
A list of objects: each object becomes a row and each key a column. Rows may have different keys; missing values are left empty.
Nesting
A CSV cell holds one value, so nested objects are flattened into columns with dotted names such as address.city.

JSON and CSV compared

FormatWhat it isBest forWatch out for
JSON
JSON data
JSON is the data format of web APIs: nested objects, lists, text, numbers, true, false and null.Apis and data exchanged between programs.It has no comments and is tiring to write by hand.
CSV
CSV table
CSV is a plain table: one row per line, values separated by commas. Every spreadsheet and database reads and writes it.Tables moved between spreadsheets, databases and scripts.It is flat: one table, no nesting, and every value is text.

Use it from code or an agent

curl -s https://setget.net/v1/tools/json-to-csv \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"[{\"name\":\"Sam\",\"address\":{\"city\":\"Oslo\"}},{\"name\":\"Alex\"}]"}}'
import json, urllib.request

body = {'input': {'text': '[{"name":"Sam","address":{"city":"Oslo"}},{"name":"Alex"}]'}}
request = urllib.request.Request("https://setget.net/v1/tools/json-to-csv", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/json-to-csv", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"[{\"name\":\"Sam\",\"address\":{\"city\":\"Oslo\"}},{\"name\":\"Alex\"}]"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "json-to-csv",
  "input": {
    "text": "[{\"name\":\"Sam\",\"address\":{\"city\":\"Oslo\"}},{\"name\":\"Alex\"}]"
  }
}
{
  "input": {
    "text": "[{\"name\":\"Sam\",\"address\":{\"city\":\"Oslo\"}},{\"name\":\"Alex\"}]"
  }
}

Endpoint: POST /v1/tools/json-to-csv. Over MCP: run_tool with slug: "json-to-csv". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes A JSON array of objects (or one object).
delimiter string no Column separator for the output. One of: comma, tab, semicolon, pipe. Default: "comma".

Questions

Is my JSON stored anywhere?
No. It is converted in memory and discarded. It is not saved or logged.
How much JSON can I convert at once?
Up to 1 MiB in a single request.
Can a script or an AI agent convert JSON to CSV?
Yes. Call POST https://setget.net/v1/tools/json-to-csv with JSON, or use the run_tool tool of the SetGet MCP server with slug "json-to-csv". The code samples on this page are ready to copy.

More conversions