JSON to XML
Convert JSON to well-formed XML with safe escaping, valid element names, and custom root and item names.
Runs entirely in your browser. Nothing you type is uploaded, stored or sent to analytics.
Limit reached: only the first 1,000,000 characters are kept. Split the data into smaller parts.
About this tool
- Every value is escaped, so text such as <script> can never become markup.
- JSON keys that are not valid XML names (for example “1st” or “a b”) are adjusted automatically, and the original key is kept in a key attribute.
- Arrays repeat their parent element once per entry; a top-level array uses the item name you choose. Characters that XML 1.0 cannot represent are replaced with U+FFFD.
Limits
To keep your browser responsive, input is limited to 1,000,000 characters, 200 levels of nesting and 300,000 values.