JSON ⇄ XML Converter
Paste JSON to get XML, or paste XML to get JSON. Attributes, element text and repeated elements are carried across in either direction.
How to use
Convert between JSON and XML in both directions. Your data is processed only inside this browser tab.
FAQ
How are attributes mapped?
Using the conventional at-sign prefix, so an attribute stays distinguishable from a child element on the way back.
Is it lossless?
Structure is preserved, but mixed text-and-element content and element ordering are simplified — the two formats do not model them the same way.
Related tools
JSON Formatter
Beautify, minify and validate JSON right in your browser. No uploads, nothing leaves your device.
PopularRegex Tester
Live matches, capture groups and a replace preview for JavaScript regex.
PopularJSON to CSV
Flatten a JSON array into CSV, nested keys becoming columns.
JWT Decoder
Read a JSON Web Token's header and claims — signature not verified.
JSON Diff
Compare two JSON documents by path, with added, missing and changed values.
JSON to Java Class
Generate a plain Java POJO with nested types from a JSON sample.