Attributes
{"book": {"@id": "bk101", "title": "XML"}} becomes <book id="bk101"><title>XML</title></book>.
{"book": {"@id": "bk101", "title": "XML"}}Paste JSON. Indented XML is written beside it.
Ctrl+Enter or ⌘+Enter runs this tool immediately.
Waiting for input.
Parsing stays in this browser. Input is not uploaded or saved.
{"book": {"@id": "bk101", "title": "XML"}} becomes <book id="bk101"><title>XML</title></book>.
{"book": {"@id": "bk101", "title": "XML"}}The keys become children of a <root> element, and a notice says so.
{"a": 1, "b": 2}Convert XML to JSON in the browser. Attributes become @ keys, repeated elements become arrays, and invalid XML is reported with its line and column.
Validate JSON, then pretty-print it with 2 or 4 spaces or minify it. Invalid JSON produces an error and leaves the output empty.
Check JSON syntax in the browser. Errors give a line and column, and duplicate keys that JSON.parse would silently drop are reported.