onlinexmltools logo
build

Xml prettifier

World's simplest xml tool

Free online XML beautifier. Just load your XML and it will automatically get prettified. There are no ads, popups or nonsense, just an awesome XML prettifier. Load XML, prettify XML. Created by developers for developers.
settings
fullscreen fullscreen_exit
swap_horiz
star
Import from file
Save as...
Copy to clipboard
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Indentation
Indent output with spaces
How many spaces per indent
Indent output with tabs
help
Xml prettifier tool What is a xml prettifier?
This tool pretty prints Extensible Markup Language (XML) data files. You can also customize the indentation of prettified XML and change how many spaces to use per indentation level.
books
Xml prettifier examples Click to use
Beautify an XML structure
This example pretty prints a nested XML data structure that has no consistent formatting, and it sets indentation to tabs.
<data><post><title>article one</title> </post><post> <title>article two</title> </post> <post> <title>article three</title> </post> </data><data> <post> <title>article one</title> </post> <post> <title>article two</title> </post> <post> <title>article three</title> </post> </data>
Required options
These options will be used automatically if you select this example.
Indent output with tabs
Prettify a minified XML document
This example prettifies a previously compressed XML document. And it sets indentation to 2 spaces.
<blog><title>catonmat</title><meta><title>good coders code, great coders reuse</title></meta><posts><post><title>check out xml tools!</title><publish_date>2017-05-05 09:00:00</publish_date><content>we've added new awesome xml tools, check them out!</content></post></posts></blog><blog> <title>catonmat</title> <meta> <title>good coders code, great coders reuse</title> </meta> <posts> <post> <title>check out xml tools!</title> <publish_date>2017-05-05 09:00:00</publish_date> <content>we've added new awesome xml tools, check them out!</content> </post> </posts> </blog>
Required options
These options will be used automatically if you select this example.
Indent output with spaces
How many spaces per indent
info
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/prettify-xml?input=%3Cdata%3E%3Cpost%3E%3Ctitle%3Earticle%20one%3C%2Ftitle%3E%0A%3C%2Fpost%3E%3Cpost%3E%0A%3Ctitle%3Earticle%20two%3C%2Ftitle%3E%0A%3C%2Fpost%3E%0A%3Cpost%3E%0A%0A%20%20%20%20%20%20%3Ctitle%3Earticle%20three%3C%2Ftitle%3E%0A%20%20%20%3C%2Fpost%3E%0A%3C%2Fdata%3E&indent-use-tabs=true
dashboard
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 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 a plain text document.
airport_shuttle
Coming soon These xml tools are on the way
Syntax Highlight XML
Preview an XML data structure in your browser.
XML Editor
Edit XML documents in your browser.
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.