JSON to XML Converter
Convert JSON payloads into well-formed XML with configurable root and item tags, attribute prefixes, CDATA sections, and pretty indentation.
About This Tool
Transforms JSON objects and arrays into well-formed XML documents with full control over how keys map to elements, attributes, and text nodes.
Configure the attribute prefix (such as @ or _), text content key (#text), root element tag, array item tag name, XML declaration header, and CDATA wrapping.
Key Features
- Attribute prefix mapping: Any property starting with your chosen prefix (default @, e.g. @id) or nested under @attributes renders as an XML attribute.
- Text node & CDATA support: Combine attributes and element text using #text (or a custom key), and optionally wrap text values in <![CDATA[...]]> sections.
- Custom root & array item tags: Set the outer root tag name and the element tag used for root-level or nested arrays.
- Pretty indent or minified XML: Format with 2 spaces, 4 spaces, tabs, or single-line minified XML with optional <?xml?> prolog.