XML input
<root id="1"><item>hello</item></root>
JSON output
{
"root": {
"@id": "1",
"item": "hello"
}
}Data Tools
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.
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.
数据格式
等待输入
已复制结果
XML input
<root id="1"><item>hello</item></root>
JSON output
{
"root": {
"@id": "1",
"item": "hello"
}
}Attributes are typically keyed with an @ prefix, and character data may appear as #text, matching common XML-to-JSON conventions.
No. Conversion runs entirely in your browser.
Tools
Continue with another translated tool for a nearby task.
JSON to XML
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.
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.
JSON Formatter
Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.