SVG to Svelte

Convert SVG markup into a reusable Svelte component

Svelte TypeScript? Svelte TypeScriptSvelte SFC? Svelte SFC

FAQ

Quick answers

How do I convert an SVG into a Svelte component?
Paste the SVG and click Convert to Svelte. Copy the component output for your project.
Do you support TypeScript Svelte components?
Yes. Open SVG to Svelte TypeScript for typed .svelte output.
Can I target a single-file Svelte component structure?
Use SVG to Svelte Single File Component for SFC-oriented output.
Is SVG to Svelte conversion free without uploading?
Yes. Free browser tool.
Svelte TypeScript → Svelte SFC → Icon to Svelte → SVG to SvelteKit →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina