onlinexmltools logo

Xml highlighter

World's simplest xml tool

Free online XML syntax highlighter. Just load your XML and its syntax will automatically get color coded. There are no ads, popups or nonsense, just an awesome XML highlighter. Load XML, get its syntax highlighted. Created by developers for developers.
announcement heads up!
We just launched a new site — Online ASCII Tools — utilities for working with ASCII character set. Check it out!
Highlighter Options
Use special symbols for newlines and tabs.
Print line numbers before XML code.
Change color of closest pairs of brackets.
Highlight line under cursor.
Xml highlighter tool What is a xml highlighter?
This tool highlights the syntax of Extended Markup Language (XML) documents. XML tags, strings and attributes get hilited in different colors. It also hilites XML errors, if you input a malformed XML data. If the data has errors and can't be parsed then this tool will try to color code syntax error's or typo's location and will also print the cause of error. This XML hilighter also has a bunch of options for highlighting current line under cursor (so you can insantly see where the cursor is), highlighing pairs of braces, printing line numbers before XML code, and highlighting special symbols (for better visibility).
Xml highlighter examples Click to use
Highlight Valid XML
This example highlights the syntax of a valid XML document.
<list> <entry roasted="slow">Pork</entry> <entry important="no">Cheese</entry> <entry steamed="yes">Ham</entry> <entry flavor="lemon">Tea</entry> </list>
Highlight Invalid XML
This example is not a valid XML document. The editor will print the error message and display error location in red.
<body> <h1>The Button</h1> <button disabled>Can't touch this!</button> </body>
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/highlight-xml?input=%3Clist%3E%0A%20%20%3Centry%20roasted%3D%22slow%22%3EPork%3C%2Fentry%3E%0A%20%20%3Centry%20important%3D%22no%22%3ECheese%3C%2Fentry%3E%0A%20%20%3Centry%20steamed%3D%22yes%22%3EHam%3C%2Fentry%3E%0A%20%20%3Centry%20flavor%3D%22lemon%22%3ETea%3C%2Fentry%3E%0A%3C%2Flist%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.