{"id":373,"date":"2026-07-22T12:48:00","date_gmt":"2026-07-22T10:48:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=373"},"modified":"2026-10-24T00:50:00","modified_gmt":"2026-10-23T22:50:00","slug":"tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/","title":{"rendered":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives"},"content":{"rendered":"<p>An SVG can be embedded directly in HTML or loaded as a separate file. Copying an inline SVG often omits CSS rules from the surrounding page, changing colors or outlines. This method copies selected computed styles for simple, static SVG graphics.<\/p>\n<h2>1. Find the appropriate source<\/h2>\n<p>Developer tools commonly open with F12 or Ctrl+Shift+I. Inspection in the Elements panel distinguishes an actual <code>&lt;svg&gt;<\/code> from an <code>&lt;img&gt;<\/code> or CSS background. An external SVG can be saved from its resource URL; searching for \u201csvg\u201d in the Network panel helps. The Img filter does not cover every loading method.<\/p>\n<p>For inline SVG, Copy outerHTML captures the structure. CSS rules outside the copied node are not included. Inline SVG may originally have come from a file; the embedded representation simply need not have a separate download URL.<\/p>\n<figure class=\"lw-diagram\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/quality-373-20261024.png\" width=\"1120\" height=\"560\" alt=\"Inline SVG export through a precise selector, cloning, selected styles and standalone validation\"><figcaption>Inline SVG can be copied from the document. Selected styles improve a static export; external dependencies still need checking.<\/figcaption><\/figure>\n<h2>2. Export a static copy<\/h2>\n<p>The console example selects the first inline SVG. The selector should first be narrowed to the intended graphic, for example <code>svg#logo<\/code>. Chrome&#8217;s <code>$0<\/code> refers to the most recently inspected element; that selection must be the SVG root. The code is intended for trusted, simple graphics and is not an SVG sanitizer.<\/p>\n<pre class=\"wp-block-code\"><code>(() =&gt; {\n  const source = document.querySelector(&quot;svg&quot;);\n  if (!source) throw new Error(&quot;No inline SVG found&quot;);\n  const copy = source.cloneNode(true);\n  const originals = [source, ...source.querySelectorAll(&quot;*&quot;)];\n  const copies = [copy, ...copy.querySelectorAll(&quot;*&quot;)];\n  const properties = [\n    &quot;fill&quot;, &quot;fill-opacity&quot;, &quot;fill-rule&quot;, &quot;stroke&quot;, &quot;stroke-width&quot;,\n    &quot;stroke-opacity&quot;, &quot;stroke-linecap&quot;, &quot;stroke-linejoin&quot;,\n    &quot;stroke-dasharray&quot;, &quot;stroke-dashoffset&quot;, &quot;color&quot;, &quot;opacity&quot;,\n    &quot;visibility&quot;, &quot;display&quot;, &quot;font-family&quot;, &quot;font-size&quot;, &quot;font-weight&quot;,\n    &quot;font-style&quot;, &quot;text-anchor&quot;, &quot;letter-spacing&quot;, &quot;stop-color&quot;, &quot;stop-opacity&quot;\n  ];\n  originals.forEach((element, index) =&gt; {\n    const styles = getComputedStyle(element);\n    for (const property of properties) {\n      copies[index].style.setProperty(property, styles.getPropertyValue(property));\n    }\n  });\n  const rootStyle = getComputedStyle(source);\n  copy.setAttribute(&quot;xmlns&quot;, &quot;http:\/\/www.w3.org\/2000\/svg&quot;);\n  copy.setAttribute(&quot;width&quot;, rootStyle.width);\n  copy.setAttribute(&quot;height&quot;, rootStyle.height);\n  copy.style.width = rootStyle.width;\n  copy.style.height = rootStyle.height;\n  const xml = new XMLSerializer().serializeToString(copy);\n  const url = URL.createObjectURL(new Blob([xml], { type: &quot;image\/svg+xml&quot; }));\n  const link = document.createElement(&quot;a&quot;);\n  link.href = url;\n  link.download = &quot;exported.svg&quot;;\n  document.body.append(link);\n  link.click();\n  link.remove();\n  setTimeout(() =&gt; URL.revokeObjectURL(url), 1000);\n})();<\/code><\/pre>\n<p>The copy includes the root and all descendants. Colors, opacity, stroke width and selected text styles are fixed, and the current CSS dimensions are retained. The original graphic remains unchanged. The block can run again without colliding with earlier console variable declarations. The temporary object URL is released afterwards.<\/p>\n<h2>3. Check the result and its limits<\/h2>\n<p>The saved file should be opened separately and compared with the original. The property list does not copy every CSS feature. Animations, CSS transforms, complex filters, external fonts, raster images and references to definitions outside the SVG can require further work. A <code>&lt;use&gt;<\/code> reference only works if its target is included or accessible in the intended context.<\/p>\n<p>A main-document query does not cross iframe documents or shadow roots. The relevant document or component source needs separate inspection. A cloned SVG can also contain existing scripts, event attributes and external references; these need a separate review before embedding.<\/p>\n<h2>4. Use the file as a favicon<\/h2>\n<p>A self-contained SVG can be declared as an icon in the HTML head. An additional ICO file provides a fallback. Vector artwork still needs a recognizable design at small sizes.<\/p>\n<pre class=\"wp-block-code\"><code>&lt;link rel=&quot;icon&quot; href=&quot;\/favicon.ico&quot; sizes=&quot;any&quot;&gt;\n&lt;link rel=&quot;icon&quot; href=&quot;\/favicon.svg&quot; type=&quot;image\/svg+xml&quot;&gt;<\/code><\/pre>\n<div class=\"lw-faq\">\n<h2>Questions and answers<\/h2>\n<h3>Why can colors still be missing?<\/h3>\n<p>Definitions or resources may lie outside the copy, such as a gradient defined in another SVG. Computed styles do not automatically resolve every dependency. CSS properties outside the copied list can also affect rendering.<\/p>\n<h3>How can a favicon support dark mode?<\/h3>\n<p>An internal style block can change colors through <code>prefers-color-scheme<\/code>. Fixed inline colors need removal or suitable reworking so the relevant rules can apply. The result needs testing in the intended browser.<\/p>\n<h3>Can an extension capture every graphic automatically?<\/h3>\n<p>No. Access to frames, components and external resources depends on permissions and implementation. Developer tools are often enough for a single graphic; an extension is not required.<\/p>\n<\/div>\n<div class=\"lw-quellen\">\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\" target=\"_blank\" rel=\"noopener noreferrer\">MDN Web Docs<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Window\/getComputedStyle\" target=\"_blank\" rel=\"noopener noreferrer\">getComputedStyle<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Node\/cloneNode\" target=\"_blank\" rel=\"noopener noreferrer\">cloneNode<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/URL\/revokeObjectURL_static\" target=\"_blank\" rel=\"noopener noreferrer\">revokeObjectURL_static<\/a><\/li>\n<li><a href=\"https:\/\/developer.chrome.com\/docs\/devtools\/console\/utilities\" target=\"_blank\" rel=\"noopener noreferrer\">utilities<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/SVG\/Guides\/SVG_as_an_image\" target=\"_blank\" rel=\"noopener noreferrer\">SVG_as_an_image<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon. The FAQs cover lost colors, selecting the correct element and favicon color adaptation.<\/p>\n","protected":false},"author":1,"featured_media":13752,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[91106,91312,91219,91315],"class_list":["post-373","post","type-post","status-publish","format-standard","hentry","category-tutorials-en-web-development","tag-automation","tag-javascript","tag-tutorial","tag-web-performance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-22T10:48:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-23T22:50:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives\",\"datePublished\":\"2026-07-22T10:48:00+00:00\",\"dateModified\":\"2026-10-23T22:50:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/\"},\"wordCount\":530,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-373-tutorial-extracting-svg-graphics-fro-g.png\",\"keywords\":[\"Automation\",\"JavaScript\",\"Tutorial\",\"Web Performance\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/\",\"name\":\"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-373-tutorial-extracting-svg-graphics-fro-g.png\",\"datePublished\":\"2026-07-22T10:48:00+00:00\",\"dateModified\":\"2026-10-23T22:50:00+00:00\",\"description\":\"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-373-tutorial-extracting-svg-graphics-fro-g.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-373-tutorial-extracting-svg-graphics-fro-g.png\",\"width\":1200,\"height\":630,\"caption\":\"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/web-development\\\/tutorials-en-web-development\\\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik","description":"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/","og_locale":"en_US","og_type":"article","og_title":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik","og_description":"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-22T10:48:00+00:00","article_modified_time":"2026-10-23T22:50:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives","datePublished":"2026-07-22T10:48:00+00:00","dateModified":"2026-10-23T22:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/"},"wordCount":530,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png","keywords":["Automation","JavaScript","Tutorial","Web Performance"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/","name":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png","datePublished":"2026-07-22T10:48:00+00:00","dateModified":"2026-10-23T22:50:00+00:00","description":"Export SVG graphics through the browser console: preserve CSS styles, compare alternative methods and use the result as a favicon.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-373-tutorial-extracting-svg-graphics-fro-g.png","width":1200,"height":630,"caption":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/web-development\/tutorials-en-web-development\/tutorial-extracting-svg-graphics-from-websites-the-console-method-and-alternatives\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorial: Extracting SVG Graphics from Websites: The Console Method and Alternatives"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=373"}],"version-history":[{"count":4,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":22874,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/373\/revisions\/22874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/13752"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}