SVG Export
en

Guide

How to Copy SVG Code from a Website

Published June 17, 2026

Sometimes you don’t want a file — you want the SVG markup itself, ready to paste into Figma, a component, or a code editor. Here are two ways to copy SVG code from any website.

Method 1: Copy it with inspect element

Every browser can do this without an extension:

  1. Right-click the icon or graphic and choose Inspect.
  2. In the Elements panel, find the <svg> element (you may need to expand a wrapper).
  3. Right-click the <svg> tag and choose Copy → Outer HTML.
  4. Paste the markup wherever you need it.

The catch is styling. Inline SVGs frequently pull their fill, size, and other properties from CSS elsewhere on the page. Copy just the element and you can end up with markup that renders black, oversized, or blank.

Method 2: Copy clean code with SVG Export

SVG Export skips the DOM-digging entirely. Open the page, click the extension, and every SVG on the page is listed for you. Hit copy and you get the SVG code with its styles already inlined — so it looks right the moment you paste it.

Copying ready-to-paste SVG code from SVG Export
Copy ready-to-paste SVG code, or download the file — no inspecting required.

That makes it ideal for dropping vectors straight into:

Copy vs. download — which do you need?

Copy the code when you’re pasting into a design tool or source file and want it inline. Download the file when you need a standalone .svg (or a PNG/JPG). SVG Export does both from the same panel, so you don’t have to decide up front.

Frequently asked questions

How do I copy SVG code using inspect element?
Right-click the graphic and choose Inspect, find the <svg> element in the Elements panel, then right-click it and choose Copy → Outer HTML. Paste the result wherever you need it.
Why is the SVG code I copied broken or black?
Inline SVGs often get their colors and sizing from external CSS. When you copy just the <svg> markup, those styles are left behind. SVG Export inlines the styles for you, so the copied code renders correctly on its own.
Can I paste SVG code straight into Figma?
Yes. Copy the SVG markup and paste it directly onto the Figma canvas — it comes in as editable vector layers. The same works for most design tools and code editors.
How do I copy all the SVGs on a page?
Inspect element copies one element at a time. SVG Export lists every SVG on the page, so you can copy or download any of them without hunting through the DOM.

Download SVGs the easy way

Extract every SVG on any page and export to SVG, PNG, or JPG — free, for Chrome, Firefox, and Edge.

Chrome Add to Chrome

Related guides

The Best SVG Downloader Extensions (Chrome, Firefox & Edge)

What to look for in an SVG downloader browser extension, how the popular options compare, and how to pick the right one for grabbing SVGs from any website.

How to Convert an SVG to PNG (or JPG) from a Website

The easiest ways to save or convert an SVG from a website to PNG or JPG — including a one-click method that resizes and exports at any resolution.