xml ↔ yaml Converter

Run xml ↔ yaml Converter using the supplied input and options.

CSV has header row. XML conversion uses root/item with attributes under @attributes; mixed content is rejected. Reverse conversion is not always lossless.

Your workbenchInputs are not stored

Result

Enter your values and run the tool to see your result.

What this tool does

Converts between XML and YAML, mapping XML element structure to YAML keys and back.

How to use it

  1. Paste the data.
  2. Choose the direction.
  3. Run it and compare against the source to confirm the structure carried over.

Worked example

Converting <root><name>Ada</name><value>42</value></root> yields YAML with name and value keys.

Frequently asked questions

Does a round trip reproduce the original?
Not guaranteed. XML attributes, namespaces, and comments do not map cleanly against YAML’s type inference. Always compare for data that matters.
What about repeated element names?
They group into a YAML list. A single occurrence may become a scalar instead of a list, so the shape can change on the way back.

What this tool does not cover

Input is processed in your browser. Namespaces, comments, and CDATA are not fully preserved.

References