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 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
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.
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.
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.
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
&,<,> - Unclosed tags — every opening tag needs closure or self-close
<br /> - Unquoted attributes —
id=1fails, useid="1" - Multiple roots — XML requires exactly one root element