Unsupported input
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
header • up to 320x100 / 728x90
View and explore XML documents
Inspect nodes, pretty-print the document, and catch parsing errors early.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
XML (Extensible Markup Language) is a strict, tag-based format used for documents, SOAP APIs, RSS feeds, and many enterprise and publishing systems.
XML Viewer is an online tool that helps you view XML.
It opens XML in a focused browser workspace so you can inspect structure, navigate large documents, and copy fragments cleanly.
Start with the XML input you want to process in XML Viewer.
Get a XML result from XML Viewer that is ready to review, copy, and reuse in the next step of your workflow.
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Missing fields or partial content can block processing or produce weak results.
Fix: Provide the full required input before running the tool.
Sample or placeholder values can lead to output that looks valid but is not ready for real use.
Fix: Replace placeholders with your actual values before relying on the result.
XML Viewer uses the JavaScript (ECMAScript) regex engine, which is ~99% compatible with PCRE for common features (character classes, quantifiers, groups, backreferences). Features unique to PCRE (e.g., recursive patterns, possessive quantifiers) aren't supported and the tool flags them on paste.
XML Viewer comfortably handles inputs up to ~5 MB (roughly 50,000 lines of code or a large JSON file). Beyond that, in-browser highlighting can get sluggish — split the input or use a CLI tool for multi-gigabyte workloads.
Yes. Matches are highlighted as you type, and the match count plus capture groups update on every keystroke. For very long inputs, highlighting is debounced to keep typing responsive.
XML Viewer uses the same Myers diff algorithm that git uses under the hood, so the output lines up with what you'd see in a git diff. Line-level and character-level modes are both available.
Inputs are persisted to your browser's local storage between reloads — you can close the tab and come back to the same regex or input later. The data stays on your device.
Continue the workflow with related tools for XML, adjacent input and output steps, or other utilities in the same category. You can also browse the full Visual & Testing Tools category for more options.
View and explore JSON data
View and explore YAML data
View and preview HTML
Test XPath expressions against XML
Compare two texts and highlight differences
Test internet ping, download speed, and upload speed in your browser with a live gauge, connection details, and same-origin Mbps measurements.
Test JSONPath expressions against JSON data
Edit and preview Markdown with live preview
Preview Markdown as rendered HTML
Test and debug regular expressions
Escape XML special characters
Escape or unescape XML special characters and numeric entities with one click