JSON to XML Converter

Turn a JSON object into an indented XML document. Give a key the @_ prefix to write it as an attribute, and use an array to repeat an element.

Example

Input
{
  "order": {
    "@_id": "A-1042",
    "customer": "Ada Lovelace",
    "item": [
      { "@_sku": "KB-01", "qty": 1, "price": 49.5 },
      { "@_sku": "MS-07", "qty": 2, "price": 19.99 }
    ],
    "paid": true
  }
}
Output
<order id="A-1042">
  <customer>Ada Lovelace</customer>
  <item sku="KB-01">
    <qty>1</qty>
    <price>49.5</price>
  </item>
  <item sku="MS-07">
    <qty>2</qty>
    <price>19.99</price>
  </item>
  <paid>true</paid>
</order>

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 →