toolbin_

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