How to use it
- Paste your YAML into the input box, upload a .yaml file, or drop a file onto the box.
- The XML appears as you type. Change the indentation if you need to.
- Copy the result or download it as a .xml file.
Good to know
- A list is written as <item> elements inside a <root> element. Characters that are not allowed in XML tag names are replaced with underscores.
- Anchors, aliases and multi-line strings are resolved, so the result holds the final values.
About the formats
YAML
YAML is a readable data format that uses indentation instead of brackets. Kubernetes, Docker Compose, GitHub Actions and many CI tools use it for configuration.
XML
XML wraps data in named tags, with optional attributes. It is still common in SOAP web services, RSS feeds, Office files and enterprise systems.
Questions
- Is my data uploaded anywhere?
- No. The conversion runs in your browser with JavaScript. Your data never leaves your device, and the tool keeps working if you lose your connection after the page has loaded.
- How big a file can I convert?
- Up to 25 MB per file. Very large files depend on your device’s memory, so if the page slows down, split the file into parts.
- Can I convert XML back to YAML?
- Yes. Use the XML to YAML converter, or press the swap button above the editor.