onlinexmltools logo

Xml editor

World's simplest xml tool

Free online browser-based XML editor. Just paste your XML and you'll be able to view and edit it in your browser. There are no ads, popups or nonsense, just an awesome web-based XML editor. Load XML, edit XML. Created by developers for developers.
announcement heads up!
We just launched a new site — Online UTF8 Tools — utilities for working with UTF8 encoding. Check it out!
XML Editor and Viewer Options
Preview tabs and newlines.
Adds line numbers before every line.
Show pairs of matching brackets.
Change background of current line.
Xml editor tool What is a xml editor?
This tool is a browser-based XML (Extended Markup Language) document viewer and editor. It works just like a regular XML code editor, except it's written in JavaScript and works in your browser. Just like all modern editors it supports automatic error checking and syntax coloring of XML tags. Error checker will try to understand the cause of the error and show its location in red color. You can also fine-tune the XML viewer to your liking by enabling or disabling certain cosmetic features, such as special character rendering, active line highlighting, matching parenthesis highlighting, and line numbering.
Xml editor examples Click to use
Edit a valid XML document
This example loads a valid, but weird-looking XML document in XML editor so you can try it out.
<object> <string name="response"> What?! I thought this was JSON! </string> <number name="timestamp"> 1523384059409 </number> <array name="list"> <boolean>true</boolean> <boolean>false</boolean> <number>0.300000000004</number> <boolean>false</boolean> </array> </object>
This example loads a valid, but weird-looking XML document in XML editor so you can try it out.
Edit an invalid XML document
This example loads an invalid XML file with an invalid XML comment. This makes the editor throw an error.
<root> <trunk> <branch> <leaf></leaf> <leaf></leaf> <apple></apple> <leaf></leaf> </branch> <branch> <!-- A bird is sitting here. -> </branch> <branch></branch> <branch></branch> </trunk> </root>
This example loads an invalid XML file with an invalid XML comment. This makes the editor throw an error.
Pro tips Master online xml tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinexmltools.com/edit-xml?input=%3Cobject%3E%0A%20%20%3Cstring%20name%3D%22response%22%3E%0A%20%20%20%20What%3F%21%20I%20thought%20this%20was%20JSON%21%0A%20%20%3C%2Fstring%3E%0A%20%20%3Cnumber%20name%3D%22timestamp%22%3E%0A%20%20%20%201523384059409%0A%20%20%3C%2Fnumber%3E%0A%20%20%3Carray%20name%3D%22list%22%3E%0A%20%20%20%20%3Cboolean%3Etrue%3C%2Fboolean%3E%0A%20%20%20%20%3Cboolean%3Efalse%3C%2Fboolean%3E%0A%20%20%20%20%3Cnumber%3E0.300000000004%3C%2Fnumber%3E%0A%20%20%20%20%3Cboolean%3Efalse%3C%2Fboolean%3E%0A%20%20%3C%2Farray%3E%0A%3C%2Fobject%3E
All xml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly beautify an XML data structure.
Quickly compress an XML data structure.
Quickly check XML for errors and report them.
Quickly highlight the syntax of an XML document.
Quickly convert XML code to an image.
Quickly convert an XML document to a JSON document.
Quickly convert a JSON document to an XML document.
Quickly convert an XML document to a CSV document.
Quickly convert a CSV document to an XML document.
Quickly convert an XML data structure to YAML markup.
Quickly convert a YAML document to XML data.
Quickly convert an XML document to a TSV file.
Quickly convert a TSV document to an XML file.
Quickly convert an XML data structure to Base64 encoding.
Quickly decode a Base64-encoded XML data structure.
Quickly convert an XML file to URL percent-encoding.
Quickly convert a URL percent-encoded XML file to XML.
Quickly convert an XML file to a plain text document.
Quickly edit an XML document in a browser-based XML editor.
Coming soon These xml tools are on the way
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.
Truncate XML
Loop over XML and truncate all tags, elements and values.
Convert XML to Bencode
Convert an XML document to Bencode encoding.
Convert Bencode to XML
Convert Bencode data structure to XML file.
Convert XML to BSON
Convert an XML document to Binary JSON (BSON).
Convert BSON to XML
Convert BSON (Binary JSON) to XML data structure.
Convert XML to Data URI
Convert an XML config to data URL encoding.
Convert XML to PHP Array
Convert XML data to PHP data structure.