Add to Chrome
DocsExport code

Export code

Export a section of a live page as Tailwind, HTML, React, Vue or an Elementor template. Check it on a phone, a tablet and a desktop before you copy or download it.

Where to click
Click the section with the inspector on.

Steps

  1. Turn the inspector on with Alt+I and click the section you want.
  2. Press O. The Export code card is at the top of the Element tab.
  3. Choose a format: Tailwind, HTML, React, Vue or Elementor.
  4. Look at the live copy in the card, and try it at Fit, Phone (390 × 844), Tablet (820 × 1180) and Desktop (1440 × 900). Open it full size to look closer.
  5. Copy the code, or download it as a file.

The Export code card

PartWhat it does
MatchShows Reading… while the copy is built, then the match score. Click it to see what still differs, or a note that every element sits where the page draws it.
PreviewOpens the copy full size, where you can switch between phone, tablet and desktop.
Live copyThe exported code, running, inside the card. If the pointer is over the section, the card asks you to move it away so the section is read at rest and its hover state is not mistaken for its normal look.
Format tilesTailwind, HTML, React, Vue and Elementor. The card remembers your choice.
Copy and DownloadNamed after the format, for example Copy React, and a download button for the file.
See codeShows the code before you copy it: This element (its own CSS) or This section (the whole export), as Computed, Source, Tailwind or React.

Formats and files

FormatDownloadBest for
Tailwind.htmlTailwind projects and AI coding tools
HTML.htmlPlain HTML and CSS
React.jsxReact and Next.js components
Vue.vueVue single-file components
Elementor.jsonImporting into Elementor in WordPress
Elementor: in WordPress, open Templates → Saved Templates → Import and pick the .json file. It works with the free version of Elementor.

What the export keeps

  • Breakpoints. Media queries become Tailwind variants such as md: and lg:, or exact ranges when the site uses other widths.
  • States. Hover, focus and active styles are kept, including a hover on a parent that changes a child (group-hover).
  • Exact values. Sizes and colors without a Tailwind name are kept as arbitrary values, such as p-[22px].
  • Fonts and animations. Web fonts and keyframes are included as a short CSS block.

The match score

The exported copy is drawn beside the page and measured element by element. The score in the card is that measurement, not an estimate. A high score means the code will look like the original when you paste it.

When a site keeps its CSS on another server

Some sites load their stylesheets from another server, which a page is not allowed to read. The card then shows Allow reading. Click it and your browser asks you to allow that one server. The extension then downloads those stylesheets without cookies and reads the breakpoints, hover states and fonts on your device.

Last updated · Something wrong or missing? Tell us.