Parse YAML text into clean, formatted JSON. Supports the full YAML 1.2 spec including anchors, aliases and multi-document streams.
100% Local
How to Use the YAML to JSON Converter
Paste YAML text into the input box and click Convert to JSON. The output panel shows the equivalent JSON, pretty-printed with 2-space indentation. Single-document YAML is returned as a single JSON value; multi-document YAML returns the first document.
Supported YAML features
Objects, arrays, scalars and nested structures
Strings, integers, floats, booleans and null
Anchors (&) and aliases (*)
Block and flow collections
Quoted and unquoted strings
Features
Full YAML 1.2 support via js-yaml
Clean, formatted JSON output
Handles deeply nested YAML
Clear error messages for invalid YAML
All processing runs locally in your browser. Your data is not uploaded to any server.