XML
Practical guide ⓘ
XML Formatter, Validator and XPath Viewer
Format and validate XML, explore branches and run XPath queries. Convert XML and JSON locally without uploading your documents.
XML formatting makes nested elements easier to read while preserving mixed content. XPath selects nodes or calculates a value. JSON conversion represents element names, attributes and ordered children; use that same explicit model to reconstruct XML.
How it works
This XML tool makes your data easier to read and transform. Explore the actions with an example, then import your file. Always review results before using them in production.
- Paste text or import a file.
- Choose an action and adjust the options.
- Review the result, then copy or export.
Things to know
XPath 1.0 is supported. Use local-name() for namespaces. DTD and XSD are not processed. Minification preserves meaningful whitespace.
Limit: 2 MB per input to keep the interface responsive.
Your documents are processed in your browser. Theme, language and privacy choices may be saved on this device. Statistics and advertising have separate consent choices.
Frequently asked questions
Does validation check an XSD schema?
Validation checks syntax and element nesting. XSD schemas and DTDs are not supported. For namespaced documents, XPath expressions can use local-name().
Document example
<project><name>CodeTidyLab</name></project>Edit the formatted document, then transfer it to raw.