XPath Tester

Paste an HTML or XML document and query it live with XPath: elements, attributes, text nodes and function results.

FAQ

How do queries run and how are documents parsed?
Queries use the native browser XPath engine locally, with no network access. Parsing is auto-detected: documents that look like HTML use lenient parsing, the rest is parsed as strict XML, so malformed XML fails.
Why can the highlight differ from the actual hits?
Highlighting is simple text matching by tag name plus the first signature attribute, so identical fragments are all marked and may not match the real nodes. Treat the result list as the source of truth.

All data is processed locally in your browser. Nothing is uploaded.