XML Formatter

Indent and pretty-print compact or minified XML.

How to use XML Formatter

  1. Add or paste your input above.
  2. Click the action button to run XML Formatter.
  3. Copy or download your result.

About the XML formatter

An XML formatter indents and aligns XML so deeply nested documents become readable. It is invaluable for inspecting API responses, configuration files and data feeds that arrive as a single unbroken line.

Tips

  • Consistent indentation makes nesting easy to follow.
  • Check that every opening tag has a matching closing tag.
  • Works on config files, RSS feeds and SOAP responses alike.

XML Formatter — frequently asked questions

Can the formatter fix broken XML?
It reformats well-formed XML. If a tag is unclosed or mismatched, you will need to correct the structure first.
Is XML Formatter free to use?
Yes. XML Formatter is completely free with no sign-up, no watermarks and no usage limits.
Is my data uploaded to a server?
No. XML Formatter runs entirely in your browser, so your data never leaves your device.
Is there a size limit?
Only your device's available memory — there are no server-side limits because nothing is uploaded.

Related tools