YAML to JSON Converter
Paste YAML and get JSON — handy for tools and APIs that only speak JSON.
YAML to JSON Converter
[a, b] / {k: v}, quoted strings, comments, and block scalars (| keeps line breaks, > folds them). Anchors and tags aren't supported.Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
About the YAML to JSON Converter
Many tools and APIs accept only JSON, while your configuration or data might be written in the friendlier YAML format. This converter parses a common subset of YAML — nested maps defined by indentation, dash-prefixed lists, and scalar values — and produces clean, pretty-printed JSON.
Values are interpreted sensibly: true/false become booleans, plain digits become numbers, null and ~ become null, and quoted text stays a string. Indentation determines nesting, so keep it consistent (two spaces works well; tabs are converted to spaces automatically).
This is a lightweight parser, not a full YAML engine, so advanced features like anchors, multi-document streams, and block scalars aren't supported — but for everyday config it converts reliably, entirely within your browser.