Format, minify and convert XML to JSON
Paste XML to pretty-print it, minify it, or convert it to JSON.
Good to know
- In the JSON output, attributes become @name keys and text becomes #text. Repeated names become arrays. This is this tool's convention, not a standard.
- DOCTYPE and entity declarations are not written to the output.
- Text is trimmed at both ends. Do not use it on documents where whitespace matters.
Your input is processed in this browser only and never sent to a server. Results follow the standards and library behavior; check them before you put them in production.