Online XPath tester (XML and HTML)
Test an XPath expression against XML or HTML and inspect the matching nodes.
0 node(s)
🔒 100% client-side — no data sent
Test your XPath expressions against XML or HTML directly in your browser: paste the document, enter the expression and instantly see the matching nodes. No data is sent: evaluation happens locally.
What is it for?
- ▸ Craft an XPath selector for scraping
- ▸ Check an XPath query on an XML feed
- ▸ Extract specific nodes or attributes from a document
- ▸ Learn and debug XPath live
FAQ
Are both XML and HTML supported?
Yes, pick the document type at the top; the parser adapts (strict for XML, lenient for HTML).
Which XPath version is used?
The browser's native XPath 1.0 engine (document.evaluate), plenty for most selectors.
Can I select attributes or text?
Yes: for example //a/@href for attributes or //p/text() for text nodes.
Is my document sent to a server?
No, parsing and XPath evaluation happen entirely in your browser.
Related tools
HTML → JSX Convert HTML into React JSX (class → className, camelCase attributes, style object, comments). JSON · format / validate Format, indent, minify and validate JSON. 100% client-side. JSON · minify Minify JSON (strip whitespace and line breaks) to reduce its size. JSON → JSDoc Generate JSDoc typedefs (@typedef) from JSON, to document and type your JS code. JSON → TypeScript Generate a TypeScript interface from a JSON object, including nested types. JSON · validator Check whether your JSON is valid and pinpoint the first error precisely.