Skip to content
GET /tools/xpath-tester 200 OK
<scraping.pro/>
  1. Home
  2. Tools
  3. XPath tester
Runs in your browserScraping

XPath tester

Paste a page or an XML file and try expressions; everything runs in your browser.

Runs locally — nothing is uploaded
Result
Paste HTML or XML and enter an XPath expression.

How to use

  1. 1Paste HTML or XML, or load a file.
  2. 2Type an expression such as //a/@href or count(//li).
  3. 3Read the matching nodes and export them as CSV or JSON.

Sitemaps use a default namespace. Write //x:loc (x stands for the default namespace) or //*[local-name()="loc"].

XPath 1.0 as built into your browser, with functions such as contains(), normalize-space() and count().

Input that starts with <?xml or has a namespaced root element is parsed as XML; everything else as HTML.

Need data from a website?

Send the URL and fields — we reply with a free sample and a quote.