svgsaver crowbar
svgsaver Crowbar is a bookmarklet that extracts inline SVG images and their associated styles from an HTML page, converting them into downloadable SVG or PNG files. It traverses the document to collect SVG elements, applies a whitelist of CSS properties and attributes to ensure fidelity, and generates a clean SVG file. The tool also supports saving as PNG via canvas rendering. The example demonstrates how a lightweight bookmarklet can programmatically serialize and export vector graphics embedded in web pages, preserving visual styling while offering format flexibility.
AI-generated descriptionA bookmarklet that extracts SVG images and accompanying styles from an HTML document and downloads them as an SVG or PNG file.
The Bookmarklet
<a class="bookmarklet" href="javascript: (function () { var e = document.createElement('script'); e.setAttribute('src', 'https://cdn.rawgit.com/Hypercubed/3d59b6fbc3312f4d82a7/raw/af0e50acc3df834524f1bce8cd57d723899de647/browser.min.js'); e.setAttribute('class', 'svg-crowbar'); document.body.appendChild(e); })();">svgsaver Crowbar</a> <span>← Drag this to your bookmarks bar.</span>