Skip to main content
Z

XPath Tester — Evaluate XPath Against XML & HTML Live

Test XPath expressions against XML or HTML using your browser's native XPath engine. Live results table.

Free No signup Client-side Privacy friendly Updated

Examples: //book/title, //*[class=""="x"], //@href, count(//book)

matches

# Node Value
No matches.

How to use

  1. 1 Paste XML or HTML source in the textarea.
  2. 2 Pick the document mode — XML for strict parsing, HTML for lenient tag soup.
  3. 3 Type an XPath expression. Results update live.
  4. 4 Copy the matching node list as TSV.

Why use this tool

  • Uses your browser's native <code class="font-mono text-xs">document.evaluate</code> — no external dependency.
  • Switch between XML and HTML parsers in one click.
  • Live results — no submit button.
  • Pure client-side — your document stays in your browser.

Frequently asked questions

Which XPath version is supported?

XPath 1.0 — the version implemented natively by browsers. XPath 2.0/3.0 features (regex, sequences, types) are not supported.

Why does my HTML query return nothing?

HTML mode wraps your fragment in <code class="font-mono">html/body</code>. Adjust expressions accordingly (e.g. <code class="font-mono">//body//div</code>).

Related tools?

<a class="text-brand-600 hover:underline" href="/jsonpath-tester">JSONPath Tester</a> for JSON queries; <a class="text-brand-600 hover:underline" href="/xml-formatter">XML Formatter</a> to clean XML first.

What is XPath Tester?

An XPath Tester is a tool that evaluates XPath expressions against XML or HTML and displays the matching nodes. It uses the browser's native XPath engine to run queries live and presents the results in a table. Because it operates entirely client-side, the XML or HTML being queried is never uploaded, letting developers test and refine XPath expressions privately.

Summary

XPath Tester is a free developer utility by Zerethon Tools. Test XPath expressions against XML or HTML using your browser's native XPath engine. Live results table. Runs entirely in the browser — no signup, no upload.

Category
Developer
Pricing
Free
Privacy
Browser-based
Signup
Not required

Privacy

Your data never leaves your browser unless explicitly stated. XPath Tester runs entirely client-side — no server upload, no logging, no tracking of your input.

Learn the basics

Related tools

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Sign up free