JSON input
{"root":{"@id":"1","item":"hello"}}XML output
<root id="1"><item>hello</item></root>
Data Tools
Convert JSON to XML in your browser. The root object should have a single key as the XML root. @ attributes and #text are supported—useful for generating simple XML payloads locally.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
数据格式
等待输入
已复制结果
JSON input
{"root":{"@id":"1","item":"hello"}}XML output
<root id="1"><item>hello</item></root>
XML documents need a single root element. Use one top-level property as that root name.
Use @-prefixed keys for attributes and #text for character data where applicable.
Tools
Continue with another translated tool for a nearby task.
XML to JSON
Convert XML to JSON in your browser. Attributes map under @ and text under #text where needed. Invalid XML shows an error—useful for API bridging and config inspection.
JSON Formatter
Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.
XML Formatter
Format or minify XML in your browser with 2/4-space or Tab indent, optional same-line attributes, and element counts. Invalid structure shows an error—useful for API debugging and config review.