XJ

XML 转 JSON

将 XML 结构转换为 JSON

🔒 100% client-side — your data never leaves this page
输入
输出
Converted JSON will appear here
🔒 100% client-side

About this tool

将 XML 文档快速转换为可读 JSON,保留节点层级、属性字段和重复元素数组结构。适合接口联调、老系统 XML 数据迁移和结构排查。输出结果可直接复制使用,全程浏览器本地处理,不上传数据。

Frequently Asked Questions

Does this tool preserve XML attributes?

Yes. Attributes are preserved under a dedicated attributes field so you can keep metadata during conversion.

How are repeated XML tags represented in JSON?

Repeated sibling tags are converted into arrays, making the JSON structure suitable for common API workflows.

Is XML data sent to a server?

No. The conversion runs entirely in your browser for privacy and speed.