XML Viewer

Pretty-print and explore XML documents.

About XML Viewer

Open XML files as an indented, collapsible tree with attributes and namespaces shown inline. Malformed markup is reported with the exact line and column.

XML is verbose enough that structure is hard to see in raw text, and the documents that matter — configuration, feeds, OpenXML parts — are usually the deeply nested ones.

Open it as an indented, collapsible tree with attributes and namespaces shown.

  • Processed on your deviceEverything you open or type here is handled by this page and never uploaded anywhere.
  • No queue, no limitsNothing waits on a server, so the only limit is your own hardware.
  • No account neededNo sign-up and no email address required.

How XML Viewer works in your browser

Parsing uses the browser’s built-in DOM parser inside an inert document. Nothing in the file executes, no external entity is fetched, and no referenced stylesheet or image is loaded — which is what makes it safe to open XML from a source you do not control.

The tree is built from the parsed document rather than from pattern-matching the text, so namespaces are resolved properly and attributes are shown against the elements they belong to rather than inline in a wall of angle brackets.

A malformed document reports where parsing failed rather than displaying a partial tree, because a tree built from broken XML is more misleading than no tree at all.

When to use it

  • Reading a configuration file whose nesting is impossible to follow as text.
  • Inspecting an RSS or sitemap feed.
  • Looking inside the OpenXML parts of an unzipped Office document.
  • Debugging an API response or a data interchange file that will not parse.

Frequently asked questions

Are namespaces and attributes visible?

Yes. Attributes are shown inline on their element and namespace prefixes are preserved as written, so you can see exactly how the document is structured.

What if the XML is malformed?

The parse error is reported with the precise line and column, which is usually enough to find an unclosed tag or a stray character without opening an editor.

Can I open an SVG with it?

Yes. SVG is XML, so it opens as a tree — a quick way to inspect paths, groups and attributes without rendering the image.