YAML ↔ JSON Converter
Convert YAML and JSON with a maintained safe YAML parser that rejects unsupported tags and executable values.
Loading YAML ↔ JSON Converter...
How to use
Choose YAML to JSON or JSON to YAML. YAML uses the core schema without custom tags. The result is checked for values JSON cannot safely represent.
Example
Input
name: ليلى
active: true
skills:
- Arabic
- English
Output
{
"name": "ليلى",
"active": true,
"skills": [
"Arabic",
"English"
]
}
Limitations
Comments, anchors, aliases, key ordering semantics, and scalar formatting may not survive round trips. YAML map keys and types outside JSON’s data model can be lossy or rejected.
Frequently Asked Questions
Can YAML tags execute code?
No. The core schema is used with no custom tags, and unsupported tagged values are rejected.
Why can a round trip look different?
JSON cannot preserve YAML comments, anchors, aliases, style choices, or every YAML scalar type.