Free Online XML Playground
Write XML and see it checked and shown as a tree as you type. Attributes and text are shown clearly, and errors show the line and column.
Auto-run is on, so the preview updates as you type. Your XML is checked and shown as a tree. Attributes start with @_ and the text of an element is #text.
Preview
How to use
Type or paste XML in the editor.
Watch the tree in the preview update as you type.
If the XML is not valid, the preview shows what is wrong, with the line and column.
Press Format to tidy the tags and indentation.
Use the icons in the editor to copy the code, open a file, download a zip of your files or clear everything.
Open the full screen editor for more room, and use the A buttons to resize the text.
Why use this tool
Checked as you type
Unclosed tags, mismatched names and bad attributes are found and shown with their position.
Attributes and text
Attributes and the text of each element are shown separately, so nothing is hidden.
Works for feeds and sitemaps
Any well-formed XML works, including RSS, Atom, sitemaps and configuration files.
Nothing of yours is run
Your text is only read as data and shown as a result. No scripts run, and nothing is loaded from another site.
Format code
Tidy the indentation and spacing with one click or Shift + Alt + F.
Comfortable editor
Resize the text, switch line wrapping on or off, or go full screen with the editor and preview side by side.
About this tool
Check XML as you type and see how it is read. Paste or write XML and the playground validates it straight away and shows it as a collapsible tree. Attributes start with @_ and the text inside an element is shown as #text, so you can see exactly how the document is parsed. If the XML is not well-formed, the preview shows the problem with its line and column. Use it to check a feed, a sitemap or a config file.
Frequently asked questions
Every tag is closed, tags are nested correctly, attribute values are in quotes, and there is a single root element. The playground checks these rules.
No. It checks that the XML is well-formed. Checking against an XSD or DTD is not supported.
A key that starts with @_ is an attribute of the element, and #text is the text inside it.
Only to open the page. The preview is made in your browser, and nothing is loaded from another site.
Yes. Press Format, or Shift + Alt + F while you are typing, to tidy the indentation and spacing. If the code has an error it is left unchanged and the error is shown.
Your last session is kept in this browser, so it is here when you come back. Use Download to keep a copy as a file.