📄 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
- ・All processing happens entirely in your browser
- ・Your input data is never sent to any server
🔗 Related Tools
📖 How to Use
-
1
Set direction and optionsPick XML to JSON or JSON to XML, then choose attribute prefix, text key, and indent.
-
2
Enter dataPaste XML or JSON on the left. Use the Sample buttons to load RSS or JSON with attributes.
-
3
Copy or download the resultThe 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.
✅
Thanks for your report!
Your report has been delivered to the operator and will be used to improve the tool.