How to use the XML formatter
Paste a document and choose what you want back. The output updates as you type.
- Paste your XML into the Input box, or press Paste. Try it loads a short example.
- Set Mode to Beautify to put each element on its own line, or to Minify to remove the line breaks and indentation between elements.
- Choose the Indent: 2 spaces, 4 spaces or Tab. It only affects Beautify.
- Read the status line. For good input it reads "Well-formed XML" with the root element and the number of elements. For bad input it says "Not well-formed" and quotes the browser parser, usually with a line and column.
- Press Copy or Download .txt. Use as input moves the result back into the input box.
The document is parsed by the XML parser built into your browser and is never uploaded, so SOAP envelopes, exports and configuration files stay on your machine.