# Convert JSON to YAML

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

## JSON and YAML

- 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.
- YAML: YAML holds the same kind of data as JSON using indentation instead of brackets, and allows comments. Kubernetes, Docker Compose and CI systems use it for configuration. Indentation mistakes change the meaning, and unquoted words such as no or on can turn into true or false.

## What happens in this conversion

- What changes: Brackets and quotes become indentation. Objects, lists, numbers, true, false and null all carry over, and key order is kept.
- Quoting: Text that YAML could misread, such as yes, no, on, off, a date or a number in quotes, is quoted in the result so it stays text.

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