XML to YAML

Convert XML to YAML with the same attribute and namespace options as JSON conversion.

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

Open reverse

Input

Output

How to use

  1. Paste XML on the left.
  2. Tune options and convert (or use live convert).
  3. Copy or download YAML; open reverse for YAML → XML.

FAQ

How are attributes mapped?

Same as JSON: with @ prefix enabled, attributes become "@name" keys.

Are comments kept?

XML comments are not carried into YAML by this converter.

Related tools