YAML ⇄ JSON Converter
Convert YAML into JSON, or JSON into YAML. Runs entirely in your browser.
Convert a YAML config file into JSON, or a JSON object into readable YAML. Common when working with Kubernetes manifests, CI/CD pipeline configs, or Docker Compose files that use YAML, but you need JSON for a script, or vice versa. Comments in YAML are not preserved in JSON since JSON has no comment syntax, but structure, nesting, and data types carry over cleanly. Runs entirely client-side.
Loading tool
How it works
- 01
Paste YAML or JSON into the input box.
- 02
The tool detects the format and converts to the other.
- 03
Copy or download the converted result.
Details
- Category
- Developer & data
- Runs
- In your browser
- Files uploaded
- No
- Cost per run
- Free
- Sign-in
- Not required
- Works offline
- Yes, once loaded
Last updated 2026-08-03
Common questions
Are YAML comments preserved when converting to JSON?
No - JSON has no comment syntax, so comments are dropped during YAML-to-JSON conversion.
Does it handle multi-document YAML files?
It's built for single-document YAML; multi-document files (separated by ---) may need splitting first.
Is my data uploaded?
No - conversion runs entirely in your browser.
Does it preserve YAML data types like numbers and booleans?
Yes - numbers, booleans, null, strings, and nested structures all map to their JSON equivalents.