The tool handles table-shaped data only: your XML needs a root holding row elements, attributes are ignored, and nested child elements are read as plain text. For XML in that shape, paste it into the Quick paste box and the JSON appears on the right, as long as the text starts with <?xml or a <rows> root. For other XML, use Import file.
Runs entirely in your browser. Your data is never uploaded. Tiếng Việt
You meet XML in exports from older software, feeds and accounting systems, while the destination wants JSON. Real XML can be rich and a table is flat, so data can be lost when a file has attributes or several tag levels. The sample below is the kind of XML the tool reads best: each <row> is a row and each child tag is a column.
Quick paste box and press Load into table ↵, or choose an .xml file with Import file.⚙ Options on the JSON tab, set Output shape and decide on Output numbers as numbers.Copy result or Download file to get a .json file.The tag <Order_ID> is kept as the key Order_ID: XML tag names cannot contain spaces, and the tool does not rewrite underscores. " is read as a real double quote. 00123 stays a string, and amounts such as 450.00 stay strings too, because number export only converts values whose number form reads back the same.
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row><Order_ID>00123</Order_ID><Customer>Anna Reed</Customer><Amount>450.00</Amount><Note>Rush delivery, call first</Note></row>
<row><Order_ID>00124</Order_ID><Customer>Ben Cole</Customer><Amount>1250.00</Amount><Note>Includes "gift wrap"</Note></row>
<row><Order_ID>00125</Order_ID><Customer>Cara Lin</Customer><Amount>299.50</Amount><Note></Note></row>
</rows>[
{
"Order_ID": "00123",
"Customer": "Anna Reed",
"Amount": "450.00",
"Note": "Rush delivery, call first"
},
{
"Order_ID": "00124",
"Customer": "Ben Cole",
"Amount": "1250.00",
"Note": "Includes \"gift wrap\""
},
{
"Order_ID": "00125",
"Customer": "Cara Lin",
"Amount": "299.50",
"Note": ""
}
]21 become JSON numbers. 00123 stays a string. A value such as 450.00 is not a canonical number, so it also stays a string.{"orders": [...]} when the receiver rejects a bare array.<row id="5"> the id never reaches the table. If it matters, turn it into a child tag before pasting.order_id becomes the key order_id. Rename columns in the grid before copying if you need other keys.&, < and " are decoded in the grid. You do not need to fix them beforehand.Attributes are ignored and only the text of each tag is read. Move the values you need into child tags before pasting.
The tool works with tables, so nested child elements are read as text. To keep a tree you need a converter that understands XML structure.
Keys come from the child tag names. You can edit the column headers in the grid before copying and the JSON follows.
Yes. Tag names and content with diacritics are read, as the Vietnamese sample shows.
No. Reading the XML and building the JSON happen on your machine.