How to use XML Formatter
- Paste a complete XML document with one root element, or select Try an example.
- Choose Format or Validate only. For formatting, select spaces or tabs and choose whether to replace whitespace-only text between markup nodes.
- Select Process XML. Review the output and any syntax errors; mixed text, CDATA and xml:space="preserve" subtrees stay unchanged.
- Copy or download the UTF-8 output. Formatting adds indentation text, so use Validate only for signed or whitespace-sensitive documents.