XPath Tester
Evaluate an XPath expression against pasted XML or HTML and list every matching node — 100% in your browser, no upload.
Enter an XPath expression to see matching nodes.
🔒 Runs in your browser — nothing is uploaded.
See every node an XPath selects
XPath Tester lets you paste an XML or HTML document, type an XPath expression, and instantly see every node it selects. Each match is listed with a running count so you can confirm a query before wiring it into your scraper, XSLT stylesheet, or test suite.
How it works
Your document is parsed with the browser’s built-in DOMParser and queried with the native document.evaluate engine, so the results match exactly what your own code sees at runtime. Everything runs locally — nothing is uploaded.
What the results show
An element match is shown as its outer HTML, an attribute match as the attribute value, and a text node as its text. Switch on “Parse as HTML” to query tag-soup HTML pages, or leave it off for strict, well-formed XML.
Frequently asked questions
Why do I get an "Invalid XML" error?
In strict XML mode the document must be well-formed — every tag closed and correctly nested. If you are querying an HTML page or a fragment, enable "Parse as HTML" so the parser tolerates unclosed or mismatched tags.
Does my data get uploaded?
No. Both parsing and XPath evaluation happen entirely in your browser using its native DOM engine, so your XML or HTML never leaves your device.
Which XPath features are supported?
The tool uses your browser’s native XPath engine, so element paths, wildcards, attribute selectors, predicates and text() selections all work just as they do in JavaScript.