Skip to content

XML Formatter & Converter

Format, minify, and validate XML. Query with XPath or convert to JSON and CSV in your browser.

XML workspace

Processed in your browser

Input

0 lines · 0 B

Output

Formatted or converted text will appear here.

—
XPath queries
Input limit is 2 MiB.Ctrl / ⌘ + Enter to run

Test XPath queries against a local XML document

Load the example catalog, expand XPath queries, and run /catalog/book/title to list its book titles. Try count(/catalog/book) to count the books or /catalog/book[@id='101'] to select a record by attribute.

For documents with a default namespace, use the alias shown in the panel with each element name. XPath runs on well-formed XML. If the query fails to run, validate the source to locate unclosed tags and other syntax errors. The matcher displays up to 50 nodes.

Comments

Sign in or create an account to join the discussion.

Loading comments…