Convert YAML to JSON or JSON to YAML instantly in your browser. Free, fast, no signup required.
Paste YAML or JSON into the input field, then click the appropriate conversion button. The tool handles common YAML structures including nested objects, arrays, strings, numbers, and booleans.
• Key-value pairs: key: value
• Nested objects: indented blocks
• Lists: - item format
• Types: strings, numbers, booleans (true/false), null (~)
• Quoted strings: "value" or 'value'
• Convert GitHub Actions / CI config YAML to JSON for API use.
• Convert API JSON responses to YAML for config files.
• Read and write Kubernetes manifests, Docker Compose files.
Convert YAML/JSON programmatically with the REST API (requires API key, $5/mo):
## YAML to JSON
curl -X POST https://apitoolkit.pro/api/v1/yaml-json \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"name: John\nage: 30","action":"yaml_to_json"}'
## JSON to YAML
curl -X POST https://apitoolkit.pro/api/v1/yaml-json \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"{\"name\":\"John\",\"age\":30}","action":"json_to_yaml"}'