About YAML to JSON
Use the YAML to JSON converter to inspect a configuration as a JSON object or array. You can convert YAML configuration to JSON with duplicate-key checks and bounded alias expansion. Comments are editorial YAML content and do not become JSON properties.
How to convert YAML into formatted JSON
- Paste or import one YAML 1.2 document.
- Select Process and resolve any syntax, key, or value errors.
- Review the JSON, then download it or continue to Sort JSON keys.
A practical example
- Input
name: Ada active: true
- Result
{ "name": "Ada", "active": true }
Unquoted true is a boolean under the YAML 1.2 core schema.
Supported input and limitations
- Input is limited to 1 MB, 100,000 expanded values, 80 levels, and an alias-expansion budget of 50. Cycles, complex mapping keys, duplicate keys, and unsupported tags are rejected.
- Only one document is accepted. Comments disappear; nonfinite numbers and integers outside the safe JSON range must be rewritten as strings.
Processing happens on your device. Read about local processing and optional workspace recovery.
Frequently asked questions
Why does a YAML value such as yes stay a string?
This tool uses YAML 1.2 core rules. Legacy YAML 1.1 boolean rules for words such as yes and no are not enabled.
Are YAML anchors supported when converting to JSON?
Ordinary noncyclic aliases are expanded within the stated budget. JSON has no anchor syntax, and cyclic or excessive expansions are rejected.