JSON to XML Converter — Free, Instant, CDATA-Ready
Turn any JSON object or array into clean, indented, well-formed XML. Attributes, CDATA blocks and repeated elements are all supported — and your data never leaves your browser.
JSON Input
XML Output
Your XML will appear here the moment you paste JSON...
Have XML instead?
Convert XML into JSON with the same CDATA-safe engine.
Quick answer: how do I convert JSON to XML?
Paste your JSON above or upload a .json file. Keys prefixed with @ become XML attributes, #text becomes element text, #cdata becomes a verbatim CDATA block and arrays become repeated elements. Copy or download the indented XML — everything runs in your browser, free and without signup.
How JSON maps to XML
Simple, reversible rules that our XML to JSON converter reads back without loss.
| JSON | XML | Use it for |
|---|---|---|
| { "@id": "1" } | <node id="1"/> | IDs, versions, namespaces |
| { "#text": "Hi" } | <node>Hi</node> | Text alongside attributes |
| { "#cdata": "<b>x</b>" } | <![CDATA[<b>x</b>]]> | HTML inside RSS or SOAP |
| { "item": [1, 2] } | <item>1</item><item>2</item> | Lists and feed entries |
Convert JSON to XML in 3 Steps
Paste or upload your JSON
API responses, config files, test fixtures or exported records — objects and arrays both work.
Name your root element
Pick the wrapping element and decide whether to include the XML declaration.
Copy or download XML
Send the result to a SOAP endpoint, a legacy importer or an RSS generator.
Related Tools You Might Need
Discover other powerful data processing tools from our comprehensive suite, ordered by popularity and usage among our users.
CSV to Excel Converter
Convert CSV files to Excel format instantly with our fast, free online tool.
Remove Duplicates
Remove duplicate rows from your CSV data quickly and efficiently.
JSON Beautifier
Format and beautify JSON data with proper indentation and syntax highlighting.
CSV to JSON Converter
Transform CSV data into JSON format with customizable options.
JSON to CSV Converter
Convert JSON data to CSV format for spreadsheet applications.
Merge CSV Files
Combine multiple CSV files into one with smart column matching.
SQL Query CSV
Query CSV data using SQL syntax directly in your browser.
Email Extractor
Extract email addresses from text, CSV files, or any data format.
JSON to XML FAQs
Convert JSON to XML online free. Supports attributes, CDATA blocks, arrays and custom root elements, with instant validation.
- Tool
- JSON to XML Converter
- Category
- All JSON tools
- Availability
- Browser-based tool
