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. 保留所有權利。