快捷工具

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.

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

Examples

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

FAQ

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.

Related Tools

More in File Tools

Privacy: This tool runs entirely in your browser. No data is sent to our servers.