Skip to tool

Categories

File formats / 11 formats, every pair

XML to YAML converter

Turn XML into YAML — a sequence of mappings, as configuration files are written — in this browser tab. Paste your XML, copy the YAML: the quoting and escaping YAML needs are applied for you.

On-device prototype

XML to YAML, worked out

3 rows and 4 columns: 21 lines of XML become 12 lines of YAML.

XML in

<?xml version="1.0" encoding="UTF-8"?>
<rows>
  <row>
    <product>Desk lamp</product>
    <region>EU</region>
    <units>128</units>
    <field name="unit price">24.50</field>
  </row>
  <row>
    <product>Chair</product>
    <region>R&amp;D</region>
    <units>64</units>
    <field name="unit price">98.00</field>
  </row>
  <row>
    <product>Monitor</product>
    <region>APAC</region>
    <units>32</units>
    <field name="unit price">249.99</field>
  </row>
</rows>

YAML out

- product: Desk lamp
  region: EU
  units: 128
  unit price: 24.50
- product: Chair
  region: R&D
  units: 64
  unit price: 98.00
- product: Monitor
  region: APAC
  units: 32
  unit price: 249.99

YAML result

- product: Desk lamp
  region: EU
  units: 128
  unit price: 24.50
- product: Chair
  region: R&D
  units: 64
  unit price: 98.00
- product: Monitor
  region: APAC
  units: 32
  unit price: 249.99

Conversions next to this one

Chosen from where these tools sit in the catalogue — the same workbench, the same category, the same words. Nothing here measures what you or anyone else opened.