Use code GEN30 for 30% OFF your first order.
Start NowXPath & CSS Selector Tester
Paste HTML, write a CSS selector or XPath expression, and see exactly which nodes match — instantly, in your browser.
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 relationships (parents, siblings, text content) that CSS cannot express. This tester runs both against your HTML using the browser's own parser, so results match what a real DOM would return.
Common selector examples
.price— every element with classpricearticle.card h2.title— titles inside product cardsa[href^="/p/"]— links whose href starts with/p///span[@class="price"]/text()— XPath for price text
Frequently asked questions
Does my HTML get uploaded?
No. Parsing and matching run entirely in your browser — the HTML never leaves your machine.
Why test selectors before scraping?
Validating selectors against a real page sample prevents brittle scrapers that silently return nothing when a site's markup shifts.