# 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.

- Tool: [json-to-csv](https://setget.net/tools/json-to-csv.md)
- Endpoint: `POST https://setget.net/v1/tools/json-to-csv`
- Page: https://setget.net/convert/json-to-csv

## JSON and CSV

- JSON: JSON is the data format of web APIs: nested objects, lists, text, numbers, true, false and null. It has no comments and is tiring to write by hand.
- CSV: CSV is a plain table: one row per line, values separated by commas. Every spreadsheet and database reads and writes it. It is flat: one table, no nesting, and every value is text.

## 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.

## 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.
