Convert · Runs in your browser

YAML to JSON Converter

Convert YAML — Kubernetes, OpenAPI, CI configs — to JSON, with clear error messages when the YAML isn’t valid.

YAML
Drop a file to load it
JSON
Waiting for input

How to use it

  1. Paste YAML on the left, or upload a .yaml / .yml file.
  2. The JSON appears instantly; errors are shown with their line and column.
  3. Copy the JSON or download it as a .json file.

Anchors and aliases

&anchors, *aliases and << merge keys are expanded. A limit on alias expansion protects your browser from “billion laughs” files.

Multiple documents

A file with several documents separated by --- becomes a JSON array with one item per document.

YAML 1.2

Parsing follows YAML 1.2, so yes/no stay strings and only true/false are booleans — the same rules Kubernetes uses.