YAML to JSON
Paste YAML and it converts to JSON automatically — nothing leaves your browser.
How It Maps
- YAML mappings become JSON objects
- YAML sequences become JSON arrays
- Anchors and aliases are resolved automatically
- Instant conversion as you paste
- Copy or download the result
Features & Supported Capabilities
- Full YAML 1.2 support (block and flow styles)
- Detects and reports invalid YAML with a line and column
- Handles files up to 10 MB
- Optional line wrapping for long output
- Runs entirely in your browser — nothing uploaded
About this YAML to JSON converter
YAML is popular for configuration, from Kubernetes manifests to CI pipelines and OpenAPI files, while many tools and APIs only accept JSON. This free online YAML to JSON converter parses your YAML, including multi-document files and anchors and aliases, and gives you clean JSON.
It runs in your browser with nothing uploaded. Go the other direction with JSON to YAML, and check or explore the result in the JSON formatter or JSON viewer.
Frequently Asked Questions
Everything you might want to know about the online YAML to JSON converter.
&name) and its alias (*name) are
resolved to the same value, so the JSON output contains the fully expanded data.
key: on its own line) and inline flow style
({"{ key: value }"}, [a, b, c]) both parse correctly, and can be mixed.
#) are dropped, the same way they would be
by any YAML-consuming program — JSON has no comment syntax to carry them into.
Copy button to copy it to your clipboard, or
Download to save it as a .json file.