XML to YAML Converter

Turn an XML document into readable YAML. Elements become nested mappings, attributes keep an @_ prefix and repeated elements become lists.

Example

Input
<!-- Order export -->
<order id="A-1042">
  <customer>Ada Lovelace</customer>
  <item sku="KB-01" qty="1">Keyboard</item>
  <item sku="MS-07" qty="2">Mouse</item>
  <paid>true</paid>
</order>
Output
order:
  customer: Ada Lovelace
  item:
    - '#text': Keyboard
      '@_sku': KB-01
      '@_qty': '1'
    - '#text': Mouse
      '@_sku': MS-07
      '@_qty': '2'
  paid: true
  '@_id': A-1042

What changes in this conversion

ParseBox shows this note under the output, so nothing is lost without a warning.

  • comments not kept
  • repeated tags regrouped, mixed text merged
  • text trimmed, number-like text read as numbers (007 → 7)

Private by design

ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.

Related conversions

All 30 formats in ParseBox →