QuickToolsFree Online Tools

JSON ↔ XML Converter

Convert between JSON and XML formats with structure preservation.

json to xmlxml to jsonjson xml converterdata format converter

拖放文件到此处,或点击浏览

Supports .json and .xml files

选项

Auto-detect will try to identify the input format automatically.

隐私: 此工具完全在您的浏览器中运行。数据不会发送到我们的服务器。我们不存储、分享或访问您在此处理的任何信息。

示例

Example 1
{"person":{"name":"John","age":30}}
Click "Example 1" above to load
Example 2
<person><name>John</name><age>30</age></person>
Click "Example 2" above to load
Example 3
{"array":[1,2,3],"object":{"key":"value"}}
Click "Example 3" above to load

常见问题

Q: Does it handle attributes?

A: Yes, XML attributes are converted to JSON properties.

Q: Can I pretty-print output?

A: Yes, options for indentation and formatting.

相关工具

隐私与安全

此工具完全在您的浏览器中运行。数据不会发送到我们的服务器。我们不存储、分享或访问您在此处理的任何信息。