CSS selector tester
Find matching elements in pasted HTML without rendering the supplied page.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Find matching elements in pasted HTML without rendering the supplied page.
- Adjust the labelled settings, then run the tool. Copy the result or download it as a file.
Things to know
- Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
- HTML: 50,000 nodes, 128 nesting levels, 256 attributes per element and 100,000 total attributes. Selector: 2 KiB, eight nesting levels and 512 tokens. At most 10,000 matches; repeated subtree output is preflighted at 25 MiB.
You might also need
More in web developmentCSS specificity calculator
Compare the specificity of CSS selectors.
Robots.txt builder and tester
Test whether a supplied robots.txt permits a crawler to visit a URL.
Regex tester
Find matches, inspect capture groups and test replacements using JavaScript regular expressions.
CSS formatter and minifier
Format or minify CSS without executing it.
Semantic version range tester
Check which semantic versions satisfy a package version range.
Font size converter
Convert a pixel font size to REM and points instantly. Starts with a 16px root font size.
HTML link extractor
Extract links and their labels from pasted HTML.
HTML formatter
Format HTML source while preserving whitespace-sensitive content.
HTML table extractor
Extract a selected HTML table into rows and CSV.