᠎᠎᠎          
51K

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 for programmers by programmers from team Browserling.
working with yaml? - key: value
We also have Online YAML Tools — utilities for working with YAML files. Check it out!
Indentation
Indent output with spaces
How many spaces per indent
Indent output with tabs
XML Code Options
Display newlines and tabs.
Add line numbers before code.
If cursor is near a closing or opening parenthesis, then find and highlight the other parenthesis.
Highlight the current line so you can easily see where the cursor is.
XML Color Theme, Size, Output Format
Color theme for XML code. (New themes are coming!)
XML font size in CSS units.
Format to use for saving XML screenshot image.
Pixelation Strength
Pixelation size.
Pixelation Rectangle
Y position.
X position.
If position is empty, uses 0.
Rect width.
Rect height.
If width is empty, uses image width. If height is empty, uses image height.
Download Format
Image download format.

What is a xml prettifier?

learn more about this tool
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.

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
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
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.
Visualize XML
Convert XML to a visual image that represents its structure.
Compare Two XML Files
Diff XML documents and show file differences visually.
Truncate XML
Loop over XML and truncate tags, elements, or values.
Convert XML to a Table
Draw a table from XML data.
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 BXML
Convert an XML file to a binary XML (BXML) file.
Convert BXML to XML
Convert binary XML (BXML) to regular XML.
Convert XML to IXML
Convert an XML file to an invisible XML (IXML) file.
Convert IXML to XML
Convert invisible XML (IXML) to regular XML.
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 TOML
Convert XML configuration to TOML configuration.
Convert TOML to XML
Convert TOML configuration to XML configuration.
Convert XML to a Data URI
Convert an XML config to data URL encoding.
Convert a Data URI to XML
Convert a data URL to an XML config.
Convert XML to a PHP Array
Convert XML data to a PHP data structure.
Convert XML to XLS
Convert an XML file to an Excel file.
Convert XLS to XML
Convert an Excel spreadsheet to an XML document.
Convert XML to PDF
Convert an XML file to a PDF file.
Convert PDF to XML
Convert a PDF document to an XML document.
Convert XML to Properties
Convert an XML file to a properties file.
Convert Properties to XML
Convert a properties file to an XML file.
Convert XML to SQL
Generate an SQL query from an XML file.
Convert SQL to XML
Generate an XML file from an SQL query.
Convert XML to INI
Convert an XML file to an INI file.
Convert INI to XML
Convert an INI file to an XML file.
Find XML Nesting Depth
Find how many levels deep is the given XML.
Replace XML Keys
Replace XML keys that match a pattern with new keys.
Replace XML Values
Replace XML values that match a pattern with new values.
Replace XML Comments
Replace XML comments that match a pattern with new comments.
Find XML Keys
Find certain keys in an XML file.
Find XML Values
Find certain values in an XML file.
Filter an XML File
Filter XML keys and values that match a pattern.
Flatten an XML
Extract all keys and values of an XML document as a flat list.
Extract All XML Keys
Extract only the keys from an XML document.
Extract All XML Values
Extract only the values from an XML document.
Extract All XML Comments
Extract only the comments from an XML document.
Remove All XML Comments
Delete all comments from an XML file.
Add Errors to XML
Add subtle errors in an XML document.
Change XML Syntax
Replace angle braces and quotes with other characters.
Use Double Quotes Everywhere
Normalize XML quotes in attributes to double quotes.
Use Single Quotes Everywhere
Normalize XML quotes in attributes to single quotes.
Generate XML Art
Convert an image to a valid ASCII-art like XML document.