- Home
- Developer
- XML Formatter
XML Formatter
Pretty-print and indent XML documents.
The XML Formatter pretty-prints XML documents with readable indentation. It keeps comments and attributes intact while making nested markup easier to scan.
Please enter some input.
How to use
- Paste XML markup into the input field.
- The formatted output updates as you type.
- Copy the indented XML when you are done.
Frequently asked questions
Does formatting change the XML content?
No. Only whitespace and indentation are adjusted.
Can I format XML with namespaces?
Yes, namespaces and attributes are preserved.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
YAML Formatter
Format YAML and convert between YAML and JSON in both directions.
CSV to JSON
Convert CSV tables into JSON data.
JWT Decoder
Decode JWT header, payload and expiration.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Number Base Converter
Convert numbers between binary, octal, decimal, hex and more.