iTool

XML Parser / Formatter

Free online XML parser with real-time validation, collapsible tree view (+/-), pretty print, and syntax highlighting for elements, attributes, text, and CDATA. 100% browser-based.

Everything stays on your device. Nothing is sent to a server, so you can use it with confidence.
Paste XML on the left to see validation result
0 chars
Paste XML on the left to see the tree here

Related Tools

More iTool Features!

Frequently Asked Questions

What is the difference between XML and JSON?

XML is a markup language that wraps data in tags and supports attributes and comments. JSON represents data with curly braces and arrays and is more concise. Older APIs and enterprise systems commonly use XML.

What should I do about XML encoding issues?

Check that the encoding attribute in the XML declaration is set correctly. UTF-8 encoding is recommended, and this tool processes XML as UTF-8 by default.

How are attributes and elements distinguished?

In the tree view, elements are shown with their tag names and attributes are highlighted with the @ symbol in a distinct color. CDATA and comments are also labeled separately.

How does XML validation work?

Syntax errors (mismatched tags, missing attribute quotes, etc.) are detected in real time and the error location is shown. DTD- or XSD-schema-based validation is not supported.

XML Parser & Formatter

XML still powers SOAP web services, RSS feeds, Android resources, and Office documents (docx, xlsx). This parser validates XML in real time and lets you explore the structure with a collapsible tree.

Features

  • Collapsible tree view+/− toggles for nested elements
  • Real-time validation as you type
  • Format / Minify — 2-space, 4-space, or tab indentation
  • Error location — pinpoints the offending line
  • Syntax highlighting — tag names (purple), attributes (orange), values (green), comments (gray), CDATA (blue)
  • Copy / Download as .xml file
  • 100% client-side — input never leaves your browser

Common XML errors

  • Case mismatch<Book>...</book> (XML is case-sensitive)
  • Unescaped entities — use &amp;, &lt;, &gt;
  • Unclosed tags — every opening tag needs closure or self-close <br />
  • Unquoted attributesid=1 fails, use id="1"
  • Multiple roots — XML requires exactly one root element

Help us improve this tool

Share what you like, what needs work, or features you'd like to see

Esc

Downloads are blocked in in-app browsers

In-app screens (Naver, KakaoTalk, etc.) block file saving. Open in Safari to download normally.

1 Tap the ⋯ / Share button at the bottom or top of the screen
2 Choose 'Open in Safari' or 'Open in browser'

Or copy the link and paste it into Safari