XML to YAML
Convert XML to YAML with the same attribute and namespace options as JSON conversion.
All processing on this page runs locally in your browser unless noted otherwise.
Ctrl/⌘ + Enter to run
Input
Output
How to use
- Paste XML on the left.
- Tune options and convert (or use live convert).
- Copy or download YAML; open reverse for YAML → XML.
FAQ
How are attributes mapped?
Same as JSON: with @ prefix enabled, attributes become "@name" keys.
Are comments kept?
XML comments are not carried into YAML by this converter.