# Convert TOML to JSON

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

## TOML and JSON

- TOML: TOML is a configuration format with named sections and typed values. Python (pyproject.toml) and Rust (Cargo.toml) use it. Deeply nested data becomes awkward, and it has no null value.
- 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 changes: Sections become nested objects and repeated sections become lists.
- What is lost: Comments are dropped, because JSON has nowhere to put them.

## Questions

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

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

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