Is the conversion lossless?▾
For standard YAML features, yes. Basic types (strings, numbers, booleans, arrays, objects) convert perfectly. YAML-specific features like anchors and aliases are resolved during conversion.
Does this handle anchors and aliases?▾
Yes. js-yaml resolves YAML anchors (&) and aliases (*) during parsing, producing the expanded JSON equivalent.
What about multi-document YAML?▾
The converter processes the first document in multi-document YAML files. For multiple documents separated by ---, convert each one separately.
Can I convert JSON back to YAML?▾
Yes. Toggle the direction to JSON → YAML. The converter produces clean, properly indented YAML output.
What YAML version is supported?▾
YAML 1.2 via the js-yaml library, which is the same parser used by most JavaScript tools and CI/CD systems.