XML Formatter Online

Overview

XML Formatter beautifies ugly, minified xml code and makes it more readable. It gives the code proper indentation, spaces and newlines and makes it well-formatted code.

Features

  • Remove (or preserve) whitespace.
  • Collapse or expand empty elements.
  • Format attributes on one line, or multiple lines.
  • Split long lines (or one long line) into several shorter ones.
  • Specify the indent size and choose your preferred indentation: tab or spaces.

How to use?

  1. Enter XML code in the editor.
  2. Click "Format XML" button and it will format the XML code and show in output.
  3. Click "Copy" button. Success! Copied successfully. Please paste anywhere.
Input:
<?xml version="1.0" ?> <bookList> <book> <title>The Cat in the Hat</title> <author>Dr. Seuss</author> <price>6.99</price> </book> <book> <title>Ender's Game</title> <author>Orson Scott Card</author> <price>7.95</price> </book> <book> <title>Prey</title> <author>Michael Crichton</author> <price>8.99</price> </book> </bookList>
Output:
<?xml version="1.0"?>
<bookList>
    <book>
        <title>
            The Cat in the Hat
        </title>
        <author>
            Dr. Seuss
        </author>
        <price>
            6.99
        </price>
    </book>
    <book>
        <title>
            Ender's Game
        </title>
        <author>
            Orson Scott Card
        </author>
        <price>
            7.95
        </price>
    </book>
    <book>
        <title>
            Prey
        </title>
        <author>
            Michael Crichton
        </author>
        <price>
            8.99
        </price>
    </book>
</bookList>

Why to use online XML Formatter

Features of this XML code formatter helps you in formatting XML documents without any hassle. Some of the best benifits of this format XML tool are as follows.

Quick and Easy:

The tool gets the job done in no time. The users don’t have to invest their precious time in formatting XML files, as this tool allows them to do the same task in just a few seconds.

Free of Cost:

You don’t have to worry about paying a penny for using this free XML formatter online.

No Signup Required:

The signup and login are tedious procedures that waste a user’s time. Therefore, such processes are eliminated from this tool so that the users can start formatting their XML easily.