JSON and YAML
Convert between JSON and YAML.
Convert JSON to XML and XML to JSON, keeping attributes if you want them.
Your files stay on your device
Everything runs in your browser. What you paste is never sent to a server.
Several elements with the same name become a JSON array. A single one stays a plain value, so the shape can change depending on the data. Plan for that if you read the JSON in code.
They become keys that start with @_ next to the child content. Text next to attributes is stored under #text.
XML documents must have one root. If your JSON is an array or has more than one top-level key, it is wrapped in the root name you choose, which defaults to root.
No. Comments, CDATA wrappers and the XML declaration are not carried into JSON. The text inside CDATA is kept.
No. It checks that the XML is well formed, meaning tags are balanced and attributes quoted, but it does not check an XSD or DTD.