YAML to JSON Converter
Paste YAML and get JSON — handy for tools and APIs that only speak JSON.
YAML to JSON Converter
Supports a common YAML subset: nested maps by indentation, - lists, and scalar strings/numbers/booleans. Anchors, multi-doc and block scalars aren't parsed.
🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.
How it works
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.