# Convert JSON to TOML

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

## JSON and TOML

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

## What happens in this conversion

- What changes: Nested objects become [sections], and lists of objects become [[repeated sections]].
- Limits: TOML has no null, so a null value cannot be written and is reported. The top level must be an object, not a list.

## 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 TOML?** Yes. Call POST https://setget.net/v1/tools/json-to-toml with JSON, or use the run_tool tool of the SetGet MCP server with slug "json-to-toml". The code samples on this page are ready to copy.
