Address: /tools/component-extractor · Runs: on the Toolvy server (a headless browser loads the page) · Category: Download
Pick any block of a live website (a header, nav, card, button, pricing table, footer) and get its code as HTML + CSS, HTML + Tailwind or React + Tailwind. Designers use it to study and recreate layouts; developers use it to avoid rebuilding a card from scratch.
Respect copyright. Use extracted code to learn, prototype and for components you have the right to use. Do not republish another company's design or branding as your own.
Step by step#
- Enter the page address and choose the viewport: Desktop 1440, Tablet 1024 or Phone 390 (components often look different on each).
- Press Load page. Toolvy renders the page and lists the blocks it can extract, drawn as outlined boxes on a screenshot ("Rendering page… Reading computed styles").
- Click a block on the left (header, nav, card, button, footer…). It highlights.
- The right side shows a preview and the code.
- Choose the format and download:
| Format | You get | Best for |
|---|---|---|
| HTML + CSS | component.html and styles.css | Any website |
| HTML + Tailwind | tailwind.html | Tailwind projects |
| React + Tailwind | ExtractedComponent.jsx | React / Next.js projects |
| ZIP | component.zip with all files | Handing to a teammate |
Worked examples#
- Rebuild a pricing card: load the page at Desktop 1440, click the pricing card, pick React + Tailwind,
paste
ExtractedComponent.jsxinto your app, then replace the text and images. - See how a mobile menu is built: choose Phone 390, load the page, click the nav bar.
- Collect a style reference: extract the button at three sizes and compare computed CSS values.
Tips#
- The code is built from the page's computed styles, so it is faithful but verbose. Tidy class names after.
- Images may still point to the original site; replace them with your own.
- Interactive behaviour (menus that open, carousels) is JavaScript and is not included; you get structure and style.
- If the block you want is missing, reload at a different viewport, or use Page Toolkit → Asset Extractor to grab the site's CSS directly.
Related: Asset Extractor, CSS to Tailwind, HTML to JSX.