XML to YAML
Paste XML or add a file and get YAML straight away. Copy the result or download it, with no sign up and no upload.
- No upload
- No account
- Free, no watermark
Your XML
Result as YAML
How it works
How to convert data
Paste your data or add a file
Type or paste into the box on the left, or press Choose file. You can also drop a file onto the box.
Adjust the options
The result updates as you type. Change the options if you need a different separator, indent or root name.
Copy or download
Press Copy to paste the result into your code, or Download file to save it.
Why
Why convert XML to YAML
XML describes data with nested tags and is used by feeds, sitemaps and older systems. YAML is a readable data format used for configuration files, such as in Docker, Kubernetes and GitHub. Converting XML to YAML lets you move data between tools, services and scripts that expect different formats.
Questions
Questions and answers
Is my data uploaded?
No. The conversion runs inside your browser, and what you paste or add never leaves your device. It is safe to use with private data, API responses and configuration files.
How are XML attributes and repeated tags converted?
Attributes become keys that start with @, and text next to child tags becomes #text. Tags that repeat become a list. A tag that appears only once is a single value, so check the shape if you expect a list.
Are YAML comments kept?
No. Comments are not data, so they are dropped when YAML is converted. Anchors and aliases are resolved, so the converted result holds the full values.
Why do some values become numbers?
CSV and XML store everything as text. With Turn numbers and true or false into real values ticked, text such as 42 or true becomes a number or a boolean. Untick it to keep every value as text, for example for postcodes or phone numbers.
Is there a size limit?
There is no fixed limit. Files up to a few tens of megabytes work on most computers, and the only limit is the memory of your device. Very long results are shown in part, and Copy and Download still give you all of it.
Does it work offline?
Yes. Once the page has loaded, it works without an internet connection, and nothing you type or add is sent anywhere.
More tools
More free tools
Everything on ConvertOrino runs in your browser, so your files and what you type never leave your device.
Last updated