Skip to main content

XML to JSON Converter

Convert XML to JSON online for free. Parse XML documents and export as formatted JSON.

JSON Output

DOMParser is not defined

关于此工具

Parse any XML document and convert it to well-formed JSON. Handles attributes, text nodes, CDATA sections, and nested elements. Useful for working with SOAP APIs, RSS feeds, and configuration files.

如何使用

  1. Paste XML

    Paste your XML document.

  2. Convert

    Click Convert to parse the XML and generate JSON.

  3. Copy or Download

    Copy the JSON output or download as a .json file.

使用场景

API Integration

Convert XML API responses to JSON for use in modern JavaScript applications.

常见问题

How are XML attributes handled?

Attributes are included as keys prefixed with @ in the JSON output.

Sawbank

专业PDF工具 - 免费且私密

Security

  • Client-side processingFiles never leave your device
  • No file uploads100% private & secure

Compliance

GDPR Compliant
100% 私密 - 文件永不离开您的设备
选择语言

© 2026 Sawbank. 保留所有权利。