XPath Tester
Run XPath queries against XML and see matches.
XPath expression
XML input
Matching nodes
Matching nodes appear here.
Free online XPath tester. Paste XML and an XPath expression to see the matching nodes instantly, using your browser's native XPath engine. Nothing is uploaded.
How to use the XPath Tester
- 01Paste your XML into the input box.
- 02Enter an XPath expression, e.g. //book[@genre='tech']/title.
- 03Click Evaluate to see every matching node and a match count.
Frequently asked questions
Which XPath version is supported?
It uses the browser's built-in document.evaluate engine, which supports XPath 1.0 expressions.
Can I match attributes and text?
Yes — you can select elements, attributes, or return string, number and boolean results depending on your expression.