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.

Paste XML on the left to see validation result
0 chars
Paste XML on the left to see the tree here

😄 Free thanks to ads

More iTool Features!

Character Counter

Free online character counter — count characters, words, sentences, and bytes in real time. No install, no signup.

JSON & JSONL Parser / Formatter

Free online JSON & JSONL parser. Validate, pretty-print, and minify JSON with syntax highlighting. Auto-detects JSON Lines (.jsonl). 100% client-side.

YAML ↔ JSON ↔ TOML Converter

Live 3-way converter between YAML, JSON, and TOML. Smart schema detection for Kubernetes, Docker Compose, GitHub Actions, plus YAML pitfall warnings (Norway problem, octal, sexagesimal). 100% browser-based.

JSON ↔ XML Converter

Live 2-way converter between JSON and XML. Configurable attribute prefix and text node key. 100% browser-based, no upload.

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings online — free, instant, no install. Full Unicode support. See both results side by side.

EPUB to TXT Converter

Extract text from EPUB eBooks instantly. Free browser-based EPUB to TXT conversion — no install, no server upload, chapter by chapter.

Text to Speech

Free online text-to-speech tool — type any text and your browser reads it aloud. Adjust voice, speed, and playback position. No install required.

Markdown Viewer - MD File Reader Online

Open and preview MD files instantly in your browser — no install needed. Free online markdown viewer. Upload .md files or paste markdown to see live rendering with code highlighting and auto TOC.

Text Diff

Free online text diff tool — compare two texts side by side and spot every difference instantly. No install, no signup.

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

Common XML errors

Related tools

Help us improve this tool

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