How to use it
- 1Paste your XML or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the YAML or download it. Drop several files to convert a batch into one ZIP.
How XML becomes YAML
XML and YAML both describe nested data, so structure carries over directly: objects stay objects, lists stay lists, and key order is kept.
The differences are in the details each format can express — comments, nulls, dates and attributes — and the notes under the output tell you whenever something had to be adapted.
XML and YAML, briefly
XML describes documents with nested elements and attributes. It still runs enterprise integrations, SOAP services, product feeds, sitemaps and many government and banking formats.
YAML is the configuration format of Kubernetes, Docker Compose, GitHub Actions, Ansible and OpenAPI. It expresses the same structures as JSON with indentation instead of brackets, plus comments and anchors.
Questions
How are XML attributes and repeated elements handled?
Attributes are kept as keys prefixed with @ (for example @id), element text that sits next to attributes goes under #text, and elements that repeat become arrays. You can drop attributes entirely with one switch.
Will the YAML be valid for Kubernetes or CI configs?
The output is standard YAML 1.2 with two-space indentation, and strings that could be misread — like "yes", "0123" or "1e3" — are quoted so they stay strings. Key order follows the input.