YAML to XML

Convert YAML mappings to XML. @-prefixed keys become attributes.

All processing on this page runs locally in your browser unless noted otherwise.

Open reverse

Input

Output

How to use

  1. Paste YAML on the left (or import a .yml file).
  2. Adjust options and convert.
  3. Copy or download XML; open reverse for XML → YAML.

FAQ

How do attributes work?

Keys like "@id" become XML attributes when the prefix option is on.

Is multi-document YAML supported?

This page expects a single YAML document. Split multi-doc input first.

Related tools