About this tool
Configuration is often written in YAML but consumed by scripts that prefer JSON. Translating by hand is error-prone, particularly when anchors (`&`) and aliases (`*`) are involved.
Powered by js-yaml, the converter correctly handles anchors, merge keys (`<<`) and multi-document files (the first document is returned), and emits strictly-valid JSON.
How to use
- Paste YAML text into the input.
- Click "Convert".
- The right-hand panel shows formatted JSON.
- Toggle pretty-print on or off as needed.
Use cases
- Convert Kubernetes manifests into JSON for API submission.
- Translate CI YAML into JSON for field-level auditing.
- Migrate older YAML configs to a new JSON-based platform.
Notes
- We use the safe CORE_SCHEMA — no functions are executed and no external files are loaded.
- Only the first document of a multi-doc YAML is returned.
- Dates and binary data are stringified.
Frequently Asked Questions
Do you support YAML 1.2?
Yes, via the CORE_SCHEMA default.
Will `<<: *ref` merge keys work?
Yes. Merge keys are expanded into the resulting object.
Is this safe to use on untrusted input?
We disable unsafe constructors (such as `!!js/function`) so YAML cannot execute arbitrary code.