Tools
EN

XML Editor

Edit XML in your browser with line numbers, live well-formedness checking and a tree view that updates as you type. Click any node to jump to it in the text, tidy the document with one click and continue later – your draft stays in this browser.

Click a node in the tree to jump to it in the text. Tab inserts two spaces.

Private: your data is processed in your browser and never uploaded.

How to edit XML online

  1. Paste XML, open a file or start from the sample. Errors are reported with their line and column while you type.
  2. Click a node in the tree to jump to it in the text. Tab inserts two spaces of indentation.
  3. Click Format to tidy the indentation, then copy the XML or download it as an .xml file.

What the editor does for you

Tips for editing XML by hand

CharacterWrite it asWhen
&&Always, in text and attribute values
<&lt;Always, in text and attribute values
>&gt;Optional; required only in the sequence ]]>
"&quot;Inside attribute values in double quotes
'&apos;Inside attribute values in single quotes

Names are case-sensitive, so <Item> must be closed with </Item>, not </item>. For longer snippets of code or HTML, a CDATA section <![CDATA[ … ]]> saves you from escaping every character.

Frequently asked questions

Is my XML saved or uploaded?

Your latest draft is saved only in this browser's local storage, so it survives a page reload. Nothing you type or open is sent to a server.

Why are HTML entities reported as errors?

XML only defines five named entities: &amp;, &lt;, &gt;, &quot; and &apos;. HTML names such as &nbsp; or &copy; need a DOCTYPE that declares them. Use a character reference such as &#160; or type the character itself.

Does the editor check my XML against an XSD schema?

No. It checks that the XML is well-formed: matching tags, quoted attributes, correct escaping and a single root element. Validation against an XSD or DTD needs a schema-aware tool such as xmllint.

Can I edit large XML files?

Yes, files of several megabytes work. Drafts larger than about 2 MB are not stored in the browser, so download your work before closing the page.