onlinexmltools logo

Xml minifier

World's simplest xml tool

Free online XML minifier. Just load your XML and it will automatically get minified. There are no ads, popups or nonsense, just an awesome XML minifier. Load XML, minify XML. Created by developers for developers.
announcement heads up!
We just launched a new site — Online MATH Tools — utilities for doing mathy things. Check it out!
fullscreen fullscreen_exit
Xml minifier tool What is a xml minifier?
This tool compresses XML (Extensible Markup Language) documents. It removes indentation, deletes spaces and tabs to make XML take least amount of space.
Xml minifier examples Click to use
Simple example
This example simply compresses an XML file to minimum.
<?xml version="1.0" encoding="UTF-8" ?> <root> <entry> <name>john</name> <loc>brazil</loc> <age>95</age> </entry> <entry> <foo>charles</foo> <bar>france</bar> <baz>65</baz> </entry> </root>
<?xml version="1.0" encoding="UTF-8" ?><root><entry><name>john</name><loc>brazil</loc><age>95</age></entry><entry><foo>charles</foo><bar>france</bar><baz>65</baz></entry></root>
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/minify-xml?input=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20%3F%3E%0A%3Croot%3E%0A%20%20%3Centry%3E%0A%20%20%20%20%3Cname%3Ejohn%3C%2Fname%3E%0A%20%20%20%20%3Cloc%3Ebrazil%3C%2Floc%3E%0A%20%20%20%20%3Cage%3E95%3C%2Fage%3E%0A%20%3C%2Fentry%3E%0A%20%3Centry%3E%0A%20%20%20%20%3Cfoo%3Echarles%3C%2Ffoo%3E%0A%20%20%20%20%3Cbar%3Efrance%3C%2Fbar%3E%0A%20%20%20%20%3Cbaz%3E65%3C%2Fbaz%3E%0A%20%3C%2Fentry%3E%0A%3C%2Froot%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.