XML Formatter

Paste XML, format, minify, convert to JSON — all in your browser.

Max file size: 1 MB

Actions

Output

Check XML formatting and conversion

Paste this small document and choose Format. It must remain valid XML. Choose To JSON to inspect how this tool represents the two item elements.

Input XML

<items><item id="1">Tea</item><item id="2">Coffee</item></items>

Try removing the final closing tag: parsing should fail. This tool checks XML syntax, not XSD validity or business rules. File uploads are limited to 1 MB.

XML tool FAQ

Why format XML?

Formatting makes XML readable and easier to diff and maintain.

Is conversion to JSON lossless?

No. XML attributes, repeated elements, namespaces and mixed text do not map to a single universal JSON format. Inspect the result before using it in an API; retain the original XML.

Is my XML uploaded?

No. All parsing and conversions happen locally in your browser.

Choose a developer tool

More tools for data, text and testing

Run the AES interoperability guide or read how these tools are checked.