Skip to content
OnlineToolStudio

XML Editor

runs in your browserno sign-upfree

Edit XML in a full-page editor with live well-formedness checking, formatting and minifying.

Checking…

About this tool

This XML editor gives you one large editor with syntax highlighting, folding and search for XML, SVG, RSS and config files. It checks that your XML is well-formed as you type — matching tags, quoted attributes and a single root element — and shows the number of elements, attributes and nesting levels. One click formats or minifies it. Everything runs in your browser.

How to use

  1. Paste or type XML into the editor, or open a .xml file from your computer.
  2. Watch the status line under the editor: it shows the first syntax error with its line and column, and marks it in the code.
  3. Press Format to tidy the code or Minify to make it as small as possible.
  4. Use Full screen for more space, and fold or unfold blocks to focus on one part.
  5. Copy the code or download it as a .xml file.

FAQ

Does it validate against a schema (XSD or DTD)?

No. It checks that the XML is well-formed — correct syntax and nesting — which catches most mistakes. Schema validation is not included.

What does Format keep?

Comments, CDATA sections, processing instructions and the DOCTYPE are kept. Short elements such as <name>Text</name> stay on one line.

Can I undo Format or Minify?

Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo it, just like a normal edit.

Is my code sent to a server?

No. Editing, checking, formatting and minifying all run in your browser. Your last code is only saved in this browser so it is still there when you come back. Press Clear to remove it.

Related tools

All tools