# Convert CSV to JSON

Paste CSV and get JSON 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: [csv-to-json](https://setget.net/tools/csv-to-json.md)
- Endpoint: `POST https://setget.net/v1/tools/csv-to-json`
- Page: https://setget.net/convert/csv-to-json

## CSV and JSON

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

## What happens in this conversion

- What you get: A list with one object per row, using the first row as the keys.
- Types: CSV values are all text. Numbers, true and false are recognised and converted, so "42" becomes 42. Values with leading zeros, such as postcodes, stay text. You can switch the conversion off.
- Separators: Semicolons and tabs are detected as well as commas, which covers spreadsheets exported in European locales.

## Questions

**Is my CSV stored anywhere?** No. It is converted in memory and discarded. It is not saved or logged.

**How much CSV can I convert at once?** Up to 1 MiB in a single request.

**Can a script or an AI agent convert CSV to JSON?** Yes. Call POST https://setget.net/v1/tools/csv-to-json with JSON, or use the run_tool tool of the SetGet MCP server with slug "csv-to-json". The code samples on this page are ready to copy.
