SVG to Vue Component

Turn any SVG into a Vue 3 single-file component.

or drop a file / paste code below

Output is a Vue 3 script-setup SFC; attributes pass through to the root SVG.

Vue 3 SFC
Output appears here

How it works

  1. 1Paste SVG code or drop an .svg file.
  2. 2The tool wraps it into a Vue 3 SFC with attribute passthrough.
  3. 3Copy the .vue file content into your project.

Free, no signup, no watermark — everything runs locally in your browser, so your files never leave your machine.

Frequently asked questions

Vue 2 or Vue 3?

Output targets Vue 3 script-setup SFCs, which also work in Vue 2.7 projects.

Related tools