JSON → XML
Convert JSON data to XML format
No watermarkFree & unlimited
Mode
Input (JSON)
Output (XML)
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Paste or upload JSON
Enter your JSON data in the input area or upload a .json file.
- 2
Configure XML options
Set the root element name, indentation style, and choose whether to include an XML declaration.
- 3
Preview the XML
Review the generated XML document with syntax highlighting in the output panel.
- 4
Copy or download
Copy the XML to your clipboard or download it as an .xml file.
- JSON arrays are converted to repeated XML elements - choose a meaningful singular element name for array items.
- Keys starting with @ are treated as XML attributes of the parent element.
- Set a descriptive root element name instead of the default "root" for more semantic XML.
- Null values are represented as self-closing empty elements by default.
- Converts nested JSON objects to nested XML elements
- Maps JSON arrays to repeated XML sibling elements
- Supports custom root element naming
- Optional XML declaration and encoding header
- Configurable indentation (tabs or spaces)
- Generate XML payloads for SOAP web services from JSON data
- Create XML configuration files from JSON-based settings
- Produce XML sitemaps or RSS feeds from JSON content
- Convert JSON data for import into systems that only accept XML
Each array element becomes a repeated XML element. For example, {"items": [1, 2]} becomes <items>1</items><items>2</items>.
Yes. Use the @ prefix convention in your JSON keys (e.g., {"@id": "123", "name": "test"}) and they will be rendered as attributes.
Yes. The tool produces well-formed XML and escapes special characters (&, <, >, quotes) automatically.