XPath & CSS Selector Tester
Paste HTML, write a CSS selector or XPath expression, and see exactly which nodes match — instantly, in your browser, using the real DOM parser.
CSS selectors vs XPath
CSS selectors are concise and fast for class, id and attribute matching — ideal for most scraping. XPath is more powerful for traversing parents, siblings and text content that CSS cannot express. This tester runs both against your HTML so results match what a real DOM returns.
Selector tester FAQ
Does my HTML get uploaded?
No. Parsing and matching run entirely in your browser.
Why test selectors before scraping?
Validating selectors against a real sample prevents brittle scrapers that silently return nothing when a site's markup changes.