XML Formatter A tool to validate, format or minify XML text and documents.

2 Input Paste below OR OR OR 0


3 Parameters
4 Function
5 Output 0

What is XML Formatter ?

  • XML Formatter is designed to format the input XML document for improving the readability(Pretty Print) of the XML document. Also, XML Formatter can be used to compact the XML document to reduce the size of the document.

Using the XML Formatter Tool

Using this tool very straightforward, simply provide the XML document (data) you like to convert format or compact and get the xml document formatted or compacted with the press off a button.

Formatting a XML Document

  • The xml document can be provided in using any of the following ways:
    1. Paste the contents of the XML document.
    2. Upload the XML document from a file located in your computer.
    3. Load the XML data from a remote location, specify the URL.
    4. For loading the test XML document as input, press the "Load Sample" button.
  • Validate the XML Document as well using the "Validate" button to make sure the XML is valid.
  • Choose whether you like to Indent(Pretty Print) or Compact the XML document.
  • For indentation, further select whether you like choose 2,3 or 4 spaces or like to use tab for indentation to align XML nodes at each level.
  • Click the "Format" button to format the input XML instantly.
  • That's it, simply download the encoded data "Download as File" to download or press on the "Copy to Clipboard" button.


  • Press "Reset" button select all the default tool options and clear the input.

Loading Please Wait...