XML to YAML Converter
Convert XML to YAML instantly — no upload, fully private. 100% free.
Runs 100% in your browser. Your data never leaves this page.
Built for Obsidian, Hugo, Jekyll, and CI pipelines.
How to use
- Paste your XML into the box on the left.
- The YAML output appears on the right in real time.
- Copy or download the YAML.
Parses XML entirely in your browser and converts it to readable YAML.
Example
Input
<?xml version="1.0" encoding="UTF-8"?>
<config>
<debug>true</debug>
<service name="api">8080</service>
<service name="db">5432</service>
</config>Output
config:
debug: true
service:
- '@attributes':
name: api
'#text': 8080
- '@attributes':
name: db
'#text': 5432When this works best
XML attributes are stored under @attributes and text under #text; mixed content and namespaces are not preserved, so round-tripping complex XML may differ.
How it differs from related tools
The YAML to XML converter reverses this; it cannot keep XML namespaces or processing instructions.
Frequently asked questions
Are XML attributes preserved?
Yes. Attributes are kept under an @attributes key in the generated YAML.
Is my data uploaded?
No. Parsing happens on your device; nothing is sent to a server.
Are XML attributes preserved? (detail)
Yes. Attributes are kept under an @attributes key, and element text under #text.
What about namespaces?
Namespaces and mixed content are not preserved, so round-tripping complex XML may differ.