Skip to content

格式化与代码

JSON 转 XML 转换器

免费 JSON 转 XML 转换器。粘贴任何有效的 JSON,即可即时获得结构良好的 XML。非常适合 API 集成和旧系统。

Runs in your browser
JSON · source
lines: 0chars: 0size: 0 B
JSON
XML · target
lines: 0chars: 0size: 0 B
XML

编辑注

Understanding · Trees, but spelled differently.

本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。

常见问题

Quick answers.

How are JSON arrays converted to XML?

Each array item becomes a repeated element with the parent key. So {"items":[1,2]} → <items>1</items><items>2</items>.

What about JSON keys that aren't valid XML names?

Keys with spaces or special characters are sanitised to valid XML names. Numeric keys are prefixed with an underscore.

Is my JSON sent anywhere?

No — conversion runs entirely in your browser. Your data never leaves your device.

Can I convert XML back to JSON?

Yes — see our XML to JSON converter for the reverse direction.

Is the converter free?

Yes — free, no signup, runs in your browser.

大家也在搜索

Use with

What people reach for next.

相关工具

More in this room.

查看所有 格式化与代码