XML Formatter & Visualizer
XML Input
XML Visualization
XML Visualization
Enter valid XML data in the left panel to see the visualization here
No node selectedFormat and explore XML documents
Read XML payloads, feeds and configuration files. Inspect elements, attributes and text in a tree or graph, then select a node to find it in the original XML.
How to use the XML formatter
Paste your data into the editor or open a UTF-8 file. Use Format or Minify, then switch between Tree View and Graph View to explore the result. On smaller screens, the edit button opens the source editor.
Format indents element-only content; Minify removes formatting whitespace where it is safe. Text, CDATA, mixed-content spacing and xml:space="preserve" regions retain their meaningful whitespace.
XML example
<service enabled="true"><name>api</name><port>8080</port></service>Format this document to indent its nested elements. Explore the enabled attribute and the name and port text without converting the document first.
What does validation check?
Validation checks well-formed XML, not XSD or a DTD schema. Large-file processing does not support entity references defined in a DTD. Expand those entities into text before opening the document.
Files, large documents and privacy
Open UTF-8 text files up to 20 MiB. Large documents use a limited visual overview; structure search and source downloads still use the full document. PNG exports include the displayed graph.
Parsing runs in your browser. Your document is not uploaded for processing. Saving work on this device is optional and uses local browser storage; the editor runtime and analytics require network access.