XPath Tester (HTML)
Test XPath expressions against pasted HTML with live match lists — DOMParser (text/html) + document.evaluate, 100% in your browser.
100% In-Browser & Private — your data never leaves this device
Loading tool...
How to use the XPath Tester (HTML)
- Paste HTML (or load the sample shop page).
- Enter an XPath expression such as //li[@class='item']/span[@class='name'].
- Review matched nodes, text values, and HTML snippets.
- Need real XML (case-sensitive, namespaces)? Use the XML XPath Tester — linked under Related tools.
FAQ
- Is this HTML or XML?
- This page parses input as text/html (browser HTML rules). For application/xml documents, use the dedicated XML XPath Tester.
- Which XPath engine is this?
- Your browser’s native document.evaluate (DOM Level 3 XPath) against an HTML document parsed with DOMParser.
- Is my HTML uploaded?
- No. Evaluation runs entirely in your browser.
Related tools
More private, in-browser utilities you might need next.
Looking for more? Browse all developer tools · All tools