Skip to content

Repository files navigation

Web to SVG

Click any element on a webpage and export it as a clean SVG or PNG.
A Chrome Extension for visually picking elements, previewing SVG output, and downloading or copying — with text outlining, Figma optimization, and PNG export.

Website · Install · Contributing

License: MIT

Demo of Web to SVG

Install

Currently awaiting chrome webstore listing

Meanwhile, install manually from the latest release:

  1. Download and unzip the release
  2. Open chrome://extensions/ and enable Developer Mode
  3. Click "Load unpacked" and select the unzipped folder

Development

git clone https://github.com/markusevanger/to-svg.git
cd to-svg
pnpm install
pnpm dev:extension

Then load the extension:

  1. Open chrome://extensions/ and enable Developer Mode
  2. Click "Load unpacked" and select apps/extension/dist/

Features

  • Element picker — hover and click to select any DOM element
  • SVG export — converts elements to clean SVG, including <img>, <canvas>, and <video>
  • PNG export — configurable scale factor
  • Text outlining — converts text to paths via opentype.js
  • Figma optimization — collapses groups, converts paths to rects, normalizes coordinates
  • Copy to clipboard — one-click SVG/PNG copy

Project Structure

Directory What it is
apps/extension/ Chrome Extension (Manifest V3)
packages/svg-engine/ Shared SVG conversion engine
apps/web/ webtosvg.com — landing page
apps/studio/ Sanity Studio for site content

Contributing

Contributions to the extension are welcome! See CONTRIBUTING.md for setup and guidelines.

License

MIT

By markusevanger.no

About

Chrome extension to convert any HTML element to SVG

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages