ToolJovia
Developer

XML Formatter

Validate and indent XML locally, preserving mixed text content and rejecting entity declarations.

✓ Browser-local processing

Loading tool…

How to use XML Formatter

Make element-based XML easier to read without executing its contents. Mixed text, CDATA sections, and xml:space="preserve" elements keep their original internal spacing.

  1. Paste an XML document without a DTD or entity declaration.
  2. Choose indentation and format the document.
  3. Review and download the formatted XML.

Good to know

  • DOCTYPE and custom entity declarations are rejected; external resources are never requested by this tool.
  • Up to 100,000 input characters, 20,000 nodes, and 60 nesting levels.
  • Browser XML serialization may normalize attribute quoting, empty tags, and namespace declarations.

Common questions

Does this validate an XSD?

No. It checks that the XML is well-formed; it does not validate a schema.

Why was a mixed-content element left on one line?

Inserting whitespace between text and child elements could change the content, so its internal spacing is preserved.

Keep going with related tools

All developer →