Use it for SOAP envelopes, WSDL snippets, config files, feeds, and API payloads. Validation checks well-formed XML (parser errors), not XSD/DTD schemas. Converters are best-effort for nested documents. For JSON workflows use JSON Formatter & Converter; for HTML markup use HTML Viewer Pro.
Paste or import XML, then format, validate, or convert.
Drop in XML, open a local file, or use Import URL for public http(s) endpoints that allow CORS.
Pretty-print with your indent, compress whitespace, or validate and review parser errors. Check the size tab for pretty vs minified bytes.
Run XPath expressions, audit namespace prefixes, export to JSON or other formats, compare two XML documents, or browse the tree outline. Then copy or download the result.
Debug SOAP/WSDL, convert formats, and tidy payloads without an IDE.
Use the XML to JSON converter for API payloads, or export CSV, TSV, YAML, and plain text when you need how to convert XML to CSV or an XML to txt dump — plus conversion JSON XML the other way via JSON Formatter.
Pretty-print messy XML, run an XML syntax check for invalid XML characters and ampersands, and minify when you need a compact payload.
Test XPath against SOAP or config XML, filter nodes, and verify namespace prefixes and URIs before integration.
Formatting, validation, XPath, and conversion run in your browser. Import from URL fetches directly from your device to that host. See the Privacy Policy.
Pretty-print and minify, validate XML, strip comments, sort attributes, escape / unescape entities, Base64 and URL helpers, XPath tester, namespace inventory, convert XML to JSON and other formats, compare documents, browse a tree outline, import from URL, and download the result — a private XML workspace without installing an IDE or signing up.
Related apps live on the Tools Viewer homepage — including JSON Formatter & Converter and HTML Viewer Pro.
An XML formatter reorganizes XML with clean indentation so the structure is easier to read and debug. ToolsViewer’s XML Formatter & Converter also validates XML, minifies output, converts from XML into multiple formats, and provides XPath and namespace tools.
Yes. XML Formatter & Converter on Tools Viewer is free to use with no signup.
Yes. Invalid XML returns parser errors, including line hints when your browser parser provides them.
Yes. Convert mode is an XML to JSON converter (and more): export from XML to JSON, JSON-LD, YAML, CSV, TSV, plain text / XML to txt, escaped strings, and code-helper formats such as TypeScript, C#, Java, JS, Python, and Lua. For JSON → XML, use JSON Formatter’s converter JSON XML path.
Yes. The validator surfaces well-formedness errors — including issues that often involve XML ampersands, quotes, and other illegal or disallowed characters — with line hints when the browser parser provides them.
Yes. Compare mode is an XML file comparison tool: paste A and B, then review structural differences in the tree diff.
Yes. The XPath tester evaluates expressions against your XML and returns matching node or scalar results directly in the tool.
Yes. The namespace inventory collects declared namespace prefixes and URIs so you can verify SOAP/WSDL and other namespaced documents quickly.
Yes. Sample presets include SOAP envelopes and WSDL snippets to test formatting, XPath expressions, and namespace handling.
No. It checks that XML is well-formed and surfaces parser errors. It does not run XSD or DTD schema validation.
Yes. Utility actions include stripping XML comments and sorting attributes alphabetically on each element.
Yes. The utility panel includes XML entity escape/unescape plus Base64 and URL encode/decode helpers.
Formatting, validation, XPath tests, and conversion run in your browser. Your XML stays on your device unless you choose to export it. Import from URL fetches that host directly from your browser when CORS allows it.
Yes. Compare mode shows two documents side by side with a diff view so you can review structural differences after formatting or transformation.