YAML ↔ JSON

Convert YAML to JSON and JSON to YAML. Free, no sign-up, files stay on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to use the yaml to json converter

  1. Paste YAML or JSON, or open a .yml, .yaml or .json file.
  2. Click YAML → JSON or JSON → YAML.
  3. Copy or download the converted text.

YAML is used for Docker Compose, Kubernetes, GitHub Actions, OpenAPI and many config files; JSON is what most APIs and JavaScript code expect. This converter validates your input and shows the exact line of a syntax error. Files with several YAML documents (separated by ---) become a JSON array. Nothing is sent to a server, so it is safe for configs that contain internal hostnames.