{·}CodeTidyLab

</>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.

  1. Paste text or import a file.
  2. Choose an action and adjust the options.
  3. 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>
Advertisement · reserved space
Advertisement · reserved space
RawXML
◈ 100% in your browser
⋯
62 bytes1 lines
XML
Edit the formatted document, then transfer it to raw.
FormattedXML
⋯
0 bytes1 linesUTF-8
Ready
⌘ ↵◈ 100% in your browser
Advertisement · reserved space