All conversion runs in your browser. Nothing is uploaded.
About this converter
Most APIs and storage layers ultimately need JSON. This converter takes a YAML document of any complexity — including anchors, aliases and multi-document streams — and emits cleanly indented JSON that you can paste straight into your code. Everything runs locally in your browser.
Features
- Full YAML 1.2 parser (js-yaml) with anchor / alias support
- Pretty-printed JSON output with 2-space indentation
- Reports the exact YAML line and column on syntax errors
- Handles multi-line strings and block scalars correctly
- 100% browser-based — no upload
How to use
- Paste your YAML into the left panel.
- Read the pretty-printed JSON on the right — updated as you type.
- Click Copy or Download to export the result.
Frequently Asked Questions
Are YAML anchors and aliases (& and *) resolved?
▾
Yes. js-yaml resolves anchors and aliases at parse time, so the resulting JSON contains the expanded values — JSON has no concept of references.
Why do my dates become strings?
▾
YAML has a `timestamp` type but JSON does not, so dates are emitted as ISO 8601 strings, which is the conventional way to represent dates in JSON.
What about multi-document YAML (--- separators)?
▾
Only the first document is converted by default. If you need to handle multi-document streams, paste each document separately or wrap them as an array in YAML first.
Related tools
Convert YAML to JSON Online — Free YAML to JSON Converter
Convert JSON to YAML in your browser with strict validation.
Convert a JSON array of objects to CSV with auto-detected headers.
Convert CSV to a JSON array of objects with typed cell values.
Convert a YAML list of objects to CSV without losing data.
Convert CSV to a YAML list of objects with typed cell values.
Canonical: https://devformatlab.com/en/convert/yaml-to-json