XML ↔ JSON Converter
Convert XML to JSON online (@attributes, #text, repeated tags → arrays) and back. Round-trip friendly.
XML ↔ JSON
Attributes → @name, text → #text, repeats → arrays.
Output
Invalid XML.
How to use
- Paste XML or JSON (attributes map to @name, text to #text).
- Conversion runs live; JSON to XML needs one root key.
- Copy the result.
FAQ
Conventions?
Attributes → @name, text → #text, repeated siblings → arrays. JSON→XML needs one root key.
Namespaces?
Kept literally in tag names — no prefix resolution.