Paste YAML or open a .yml file (docker-compose.yml, a Kubernetes manifest, a CI workflow) and get JSON. Anchors, aliases and <<: merge keys are resolved, files with several --- documents become an array, and syntax errors point at the line and column. Runs in your browser.
Open a file: (or drop it on this box)
Anchors (&common) and aliases (*common) are expanded, and <<: *common merge keys are merged into the mapping, with the mapping's own keys winning, the way Docker Compose and GitLab CI read them. Comments are dropped, since JSON has none. A file with several documents separated by --- (common in Kubernetes manifests) becomes a JSON array with one item per document.
Values are typed with the YAML 1.2 core schema: true/false, null and ~, and numbers. no and yes stay strings, and dates stay strings like "2026-03-14" instead of being shifted to a UTC timestamp. One rule surprises people: unquoted 01234 is the number 1234 in YAML 1.2 (and 668, octal, in YAML 1.1), so quote zip codes in the YAML itself. Errors show the line and column, so this page doubles as a YAML validator.
Need the data as a document? The Shotmint API turns HTML into a PDF or PNG in real Chromium: POST https://shotmint.creasework.com/v1/pdf with {"html": "…"} returns a PDF, and /v1/screenshot returns a PNG of any page or HTML (1 credit each; 25 free renders a month, then €5 for 2,000 that never expire). Scripts, AI agents and Make or Zapier can get a key with a bare POST https://shotmint.creasework.com/v1/keys/free (no body, JSON reply); the request bodies are described in openapi.json.
Get 25 free renders a month API docs
Is my file uploaded? No. Parsing and conversion run in your browser with js-yaml and fast-xml-parser; this page sends nothing to a server, so it works for secrets in config files.
Can it convert the other way? Yes: every page reads JSON, YAML and XML (detected automatically), and the "Convert to" menu picks the output, so it also converts XML to YAML or reformats a file in its own format. Related: JSON to YAML, XML to JSON, JSON to XML, CSV to JSON, JSON to CSV, JSON to Excel.
JSON to YAML · XML to JSON · JSON formatter · JSON to XML · CSV to JSON · JSON to CSV · Excel to JSON Converter · JSON Diff · JSON to Excel Converter · JSON Validator · Minify JSON · all free tools