XML ⇄ JSON
Convert between XML and JSON, preserving attributes and text nodes
XML ⇄ JSON is a free online Files & Docs tool. Convert between XML and JSON, preserving attributes and text nodes Related terms: xml · json · 转换 · convert · 解析 · parse. Use it on this page without signing in.
点击「转换」查看结果转换约定:XML 属性以 @ 前缀表示,文本内容以 #text 表示,重复标签自动合并为数组。全程浏览器本地处理。
使用说明
- 粘贴 XML 或 JSON 内容
- 选择转换方向:XML 转 JSON 或 JSON 转 XML
- 属性以 @ 前缀表示,文本内容以 text 表示
- 转换结果实时显示,一键复制
常见问题
- 数据会上传吗? 全程浏览器本地解析转换,不发送任何数据
- 属性怎么处理? XML 属性转为 @attr 键,重复文本节点转为数组
- 转换失败? 请检查 XML 标签闭合与 JSON 语法是否合法
More Files & Docs
View allPDF Merge
Merge multiple PDFs into one
PDF Split
Split PDF and extract specific pages
PDF to Image
Convert each PDF page to PNG / JPG
Image to PDF
Combine multiple images into one PDF
File Hash
Compute MD5 / SHA256 checksums of files
Subtitle Converter
Convert between SRT / ASS / VTT subtitle formats
Bento 幻灯片
单文件 PowerPoint 替代:编辑、放映、协作一体,本地优先,打开即用
CSV Table Tool
Parse and view CSV: sort, filter, search, stats, export to TSV / JSON
FAQ about XML ⇄ JSON
What can XML ⇄ JSON do?
XML ⇄ JSON is a Files & Docs tool. Convert between XML and JSON, preserving attributes and text nodes You can finish the job on this page.
Who should use XML ⇄ JSON?
Anyone handling xml · json · 转换 · convert · 解析 · parse who does not want to install desktop software can use XML ⇄ JSON in the browser.
Is XML ⇄ JSON safe? Is my data uploaded?
This tool runs in your browser. We do not collect the content you enter into XML ⇄ JSON just because you used it.
What similar tools exist?
Related tools in the same Files & Docs group are listed at the bottom of this page.