JSON ⇄ XML
Convert JSON to XML or XML to JSON. Attributes, repeated elements and text nodes are handled automatically.
JSON
XML
How JSON maps to XML
- Keys starting with
@become attributes:"@id": "bk101"→<book id="bk101"> - Arrays become repeated elements with the same tag name
#textholds an element's text when it also has attributes- Special characters like
&and<are escaped automatically
The same rules are used in reverse when converting XML to JSON, so you can convert back and forth.
More free tools
JSON ViewerTree view, search, copy path. Handles huge files.JSON FormatterBeautify or minify JSON in one click.JSON ValidatorClear errors with exact line and column.JSON RepairFix broken JSON in one click.JSON to CSVFlatten nested JSON into a spreadsheet.JSON ⇄ YAMLConvert between JSON and YAML.JSON to TypeScriptGenerate TS interfaces from sample data.JSON DiffSee what changed between two JSON files.