Extract Stylesheets Bookmarklet
List every stylesheet on a page, linked, inline and adopted, with rule counts and sizes. Copy, view or download the CSS. Free bookmarklet, no extension.
On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.
Extract Stylesheets gives you an inventory of all the CSS a page uses. It lists every linked <link rel="stylesheet"> file, every inline <style> block and any constructed (adopted) stylesheets, with the number of rules, the approximate size, the media query and whether the sheet is disabled.
For each readable sheet you can copy its CSS or open it as plain text in a new tab. The footer buttons copy or download all readable CSS as one file, with a comment above each block saying where it came from. That is useful when you are auditing a theme, hunting down where a rule is defined, migrating a legacy site, or simply learning how a layout was built.
Stylesheets loaded from another domain (such as a CDN or Google Fonts) are listed with a link, but their rules cannot be read by page scripts because of the browser's cross-origin rules. The panel marks them clearly so you know what is missing from the export.
What it does
- Lists linked, inline and adopted stylesheets in document order
- Shows rule count, size, media attribute and disabled state for each
- Per-sheet Copy and View (opens the CSS as plain text in a new tab)
- Copy all or download all readable CSS as a single
.cssfile with source comments - Marks cross-origin sheets that cannot be read and links to the original file
How to install the Extract Stylesheets bookmarklet
- Show your bookmarks bar. Press
Ctrl+Shift+Bon Windows/Linux orCmd+Shift+Bon a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar. - Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
- Open any website and click the bookmark to run it on that page. Click it again to close it.
Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.
How to use it
- Open the page and click Extract Stylesheets.
- Review the list: file name or "inline", rule count and size.
- Use Copy or View on a single sheet, or the footer buttons for all CSS at once.
- For cross-origin sheets, click the file name to open the original CSS file directly.
About the exported CSS
The export is generated from the browser's parsed rules (cssText), not from the original file, so comments and formatting are gone and invalid declarations the browser dropped are missing. Vendor-prefixed rules that your browser does not understand are also removed. For the exact original source of a same-origin file, open it with the file link. The count of elements with style="" attributes is shown separately, since inline styles are not part of any stylesheet.
Bookmarklet code
This is the exact code inside the button above (8,148 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.
Frequently asked questions
Why can't it read some stylesheets?
CSS served from another domain without CORS headers is readable by the browser for rendering, but not by scripts. Open those files via their link instead.
Is the exported CSS identical to the source?
Not exactly. It is the browser's parsed version, so comments, formatting and unsupported declarations are lost.
Does it include CSS-in-JS styles?
Yes, when the library injects style elements or adopted stylesheets, which is what most do.
Related bookmarklets
Find unused CSS rules on any page: see the unused percentage per stylesheet and a list of selectors that match nothing.…
Disable all CSS on a page, stylesheets, style blocks and inline styles, to check its raw HTML structure. Click again to…
Hover text to see its font stack, the font actually rendered, size, weight, line height and color, plus a summary of all…
Extract the color palette of any web page: text, background and border colors sorted by usage, with hex codes you can…