YAML to JSON Converter

Convert hand-written YAML (Kubernetes, GitHub Actions, docker-compose) to JSON.

YAML input
JSON output
{
  "name": "my-service",
  "version": 1,
  "replicas": 3,
  "features": [
    "auth",
    "metrics",
    "cache"
  ],
  "resources": {
    "cpu": "500m",
    "memory": "512Mi"
  }
}
Runs entirely in your browser — nothing you paste is sent to a server.

About this tool

Covers the 90% of YAML you write by hand — nested maps, dash lists, quoted strings, booleans, and numbers. For adversarial YAML with anchors and merge keys, use a full parser server-side.

How it works

  1. Paste YAML — indentation defines structure.
  2. The parser normalises the document, then walks it into JSON.
  3. Output is pretty-printed with 2-space indent.

When to use it

  • Feeding a YAML config into a tool that only understands JSON.
  • Diffing a GitHub Actions workflow structurally.
  • Extracting a subset of a Kubernetes manifest.

FAQs

Related resources