Skip to content
QuicklyTools

XML Formatter

Pretty-print XML, RSS, SVG and sitemaps with proper indentation and tag-mismatch detection.

Runs in your browser
Loading tool…

About the XML Formatter

Make XML readable — SOAP responses, RSS feeds, sitemaps, SVG and config files. The formatter indents nested elements, keeps short text elements on one line, preserves comments and CDATA, and reports unclosed or mismatched tags with their names.

Your data is processed in the browser and never sent to a server, so it is safe to paste payloads that contain tokens or personal data.

How to use it

  1. Paste XML or open a file.
  2. Choose the indentation.
  3. Copy or download the formatted XML.

Good to know

  • Whitespace inside text nodes is trimmed; avoid formatting XML where whitespace is significant (e.g. some document formats).
  • DTD and namespace declarations are preserved as written.

Frequently asked questions

Does it validate against a schema?

No, it checks tag structure only, not XSD or DTD rules.

Can I format an SVG?

Yes, SVG is XML.

More developer tools →