onlinexmltools logo

Yaml to xml converter

World's simplest xml tool

Free online YAML to XML converter. Just load your YAML and it will automatically get converted to XML. There are no ads, popups or nonsense, just an awesome YAML to XML converter. Load YAML, get XML. Created by developers for developers.
prefer to work with json? { "key": "val" }
We also have Online JSON Tools — utilities for working with JSON data structures. Check it out!
fullscreen fullscreen_exit
Indentation
Indents with two spaces
Indents with one tab
Outputs minified result
Yaml to xml converter tool What is a yaml to xml converter?
This tool converts a YAML (Yet Another Markup Language) document to an XML (Extended Markup Language) document. It also lets you change formatting of the output XML and you can choose to indent it with spaces, tabs or minify it.
Yaml to xml converter examples Click to use
HTML-like data in YAML
This example transforms YAML data into XML file.
html: head: title: Example body: h1: Hello, world!
<html> <head> <title>Example</title> </head> <body> <h1>Hello, world!</h1> </body> </html>
Multiline YAML string
YAML-specific multiline markup is automatically wrapped.
message: subject: New job opportunity body: > Are you a coding ninja that can write 2,000 LOC per day and you're powered by 100% caffeine? Then we've a job for you! Join our eleet coding team. - friendly recruiter. sender: recruiter@bigco.com
<message> <subject>New job opportunity</subject> <body>Are you a coding ninja that can write 2,000 LOC per day and you're powered by 100% caffeine? Then we've a job for you! Join our eleet coding team. - friendly recruiter.</body> <sender>recruiter@bigco.com</sender> </message>
Pro tips Master online xml tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinexmltools.com/convert-yaml-to-xml?input=html%3A%0A%20%20head%3A%0A%20%20%20%20title%3A%20Example%0A%20%20body%3A%0A%20%20%20%20h1%3A%20Hello%2C%20world%21
All xml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly beautify an XML data structure.
Quickly compress an XML data structure.
Quickly check XML for errors and report them.
Quickly highlight the syntax of an XML document.
Quickly convert XML code to an image.
Quickly convert an XML document to a JSON document.
Quickly convert a JSON document to an XML document.
Quickly convert an XML document to a CSV document.
Quickly convert a CSV document to an XML document.
Quickly convert an XML data structure to YAML markup.
Quickly convert a YAML document to XML data.
Quickly convert an XML document to a TSV file.
Quickly convert a TSV document to an XML file.
Quickly convert an XML data structure to Base64 encoding.
Quickly decode a Base64-encoded XML data structure.
Quickly convert an XML file to URL percent-encoding.
Quickly convert a URL percent-encoded XML file to XML.
Quickly convert an XML file to a plain text document.
Quickly edit an XML document in a browser-based XML editor.
Coming soon These xml tools are on the way
Convert XML to an Image
Create a PNG, JPG or GIF screenshot of XML data.
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.
Truncate XML
Loop over XML and truncate all tags, elements and values.
Convert XML to Bencode
Convert an XML document to Bencode encoding.
Convert Bencode to XML
Convert Bencode data structure to XML file.
Convert XML to BSON
Convert an XML document to Binary JSON (BSON).
Convert BSON to XML
Convert BSON (Binary JSON) to XML data structure.
Convert XML to Data URI
Convert an XML config to data URL encoding.