Skip to content

📄 XML ⇔ JSON Converter

Convert XML ⇔ JSON in both directions. Supports attribute prefix, text node key, CDATA, and array auto-detection. Handles complex XML like RSS or SOAP.

✅ 100% free, no signup, runs entirely in your browser

🔒 About Privacy

🔗 Related Tools

📖 How to Use

  1. 1
    Set direction and options
    Pick XML to JSON or JSON to XML, then choose attribute prefix, text key, and indent.
  2. 2
    Enter data
    Paste XML or JSON on the left. Use the Sample buttons to load RSS or JSON with attributes.
  3. 3
    Copy or download the result
    The converted output appears on the right in real time. Use Copy or Download to save it.

❓ FAQ

How are attributes and text nodes represented?
Attributes are stored under a prefixed key (e.g. @id) and text nodes under a chosen key (e.g. #text). The prefix and key name are configurable.
Are CDATA sections supported?
Yes. XML to JSON keeps CDATA content as plain text. JSON to XML automatically wraps values containing reserved characters in CDATA.
Are repeated tags converted into arrays?
When Array Auto is enabled, two or more siblings with the same tag are grouped into an array. When disabled, later occurrences overwrite earlier ones.
🐛 Found a bug or issue with this tool?

Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.

* Browser info (UA / screen / language / URL) is sent automatically to help reproduce the issue