
Paste your input
Drop CSS, HTML, JSON, or other text into the editor. Nothing is uploaded.
Test selectors against HTML.
Four quick steps — paste, run, review, copy. Everything stays in your browser.

Drop CSS, HTML, JSON, or other text into the editor. Nothing is uploaded.

Click Convert or Run. The result appears instantly on this page.

Read the generated code and any review notes before you ship it.

Copy the output to your clipboard and paste it into your project.
Try a CSS selector against a small HTML sample in the browser. Matches are listed so you can debug querySelector assumptions.
Sample HTML includes a .card with a child heading and a sibling without the class.
Input
div.card > h2
Output
1 match(es): <h2>…</h2>
Great for teaching :nth-child and descendant vs child combinators.