XML pretty print
Choose indentation, then paste valid XML to make it easier to read.
Result
Formatted XML
<message> <to>Ada</to> <body>Hello</body> </message>
- Elements
- 3
How it is calculated
- Tags are checked and nested elements are indented using your choice.
- Indentation does not change attribute values.
- Mixed content is left as is to preserve its text.
Example
<message><to>Ada</to><body>Hello</body></message>
Good to know
- Does not validate a DTD or XSD schema.
- Documents larger than 1 MB are not accepted.
Frequently asked questions
What is this tool used for?
Choose indentation, then paste valid XML to make it easier to read.
How is the result calculated?
Tags are checked and nested elements are indented using your choice.
What should I check before using the result?
Does not validate a DTD or XSD schema.