YAML ↔ JSON Converter Online

Convert YAML to JSON or JSON to YAML instantly in your browser. Free, fast, no signup required.

How to Use the YAML ↔ JSON Converter

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.

Supported YAML Features

• Key-value pairs: key: value

• Nested objects: indented blocks

• Lists: - item format

• Types: strings, numbers, booleans (true/false), null (~)

• Quoted strings: "value" or 'value'

Common Use Cases

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

API Example

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"}'

Get API Key — $5/mo →

Other Free Developer Tools