Paste your XML
Paste one complete XML document, with quoted attributes and escaped special characters.
Format and validate XML with readable indentation while preserving mixed text and significant whitespace.
Everything is processed in your browser.
XML Formatter is a free online developer tool from GigaTools. Format and validate XML with readable indentation while preserving mixed text and significant whitespace. It runs entirely in your web browser, so nothing is uploaded and it works on any device without installing software.
How it works
Paste one complete XML document, with quoted attributes and escaped special characters.
Choose two spaces, four spaces or tabs. XML syntax is checked before formatting.
Click Format XML, review the result and copy it or download an XML file.
FAQ
1. Paste your XML: Paste one complete XML document, with quoted attributes and escaped special characters. 2. Choose indentation: Choose two spaces, four spaces or tabs. XML syntax is checked before formatting. 3. Format and copy: Click Format XML, review the result and copy it or download an XML file.
No. This checks well-formed XML only, not XSD or application rules. DOCTYPE declarations are rejected.
Yes. Mixed text, CDATA and xml:space="preserve" content are not reindented. Input is limited to 2 MB.
Yes. This tool is free to use and does not require an account.
No. Processing happens in your browser. Your input and output files stay on your device.
Keep going
Validate, pretty-print, or minify JSON.
Encode text to Base64 or decode it back.
Create MD5, SHA-1, SHA-256 and SHA-512 digests.
Generate random RFC 4122 version 4 UUIDs.
Decode a JSON Web Token header and payload.
Test a regular expression against sample text.