Nifty / Tools / XML

XML Formatter

Pretty-print XML with proper indentation, or minify it. Comments, CDATA and namespaces are kept.

xml-formatter
XMLDrop a file here
Formatted
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the XML Formatter

  1. Paste XML on the left, or drop a file.
  2. Choose the indentation, or tick Minify.
  3. Copy the result.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

What's the difference between an XML formatter and an XML beautifier?

None. Both indent XML so its structure is easy to read.

Does it work for SVG, XAML and config files?

Yes. Any well-formed XML works: SVG, XAML, .csproj, pom.xml, RSS, SOAP messages and so on.

Related tools