XML Formatter

Format, validate, and beautify your XML data with syntax highlighting and collapsible tree view.

Tools run in your browser. Shared links may include your input; check the URL before sharing.

How to use

  1. Paste a complete XML document.
  2. Format it and check element nesting and closing tags.

This example illustrates one supported operation. Choose the matching mode and settings above; generated values and formatting may vary.

Example input or settings

<root><name>SkillPeek</name></root>

Example result

<root>
  <name>SkillPeek</name>
</root>

Why does parsing fail?

Check for one root element, matching tag case, and literal ampersands escaped as &amp;.