Skip to content

SVG to Component Converter

About the SVG to React, Vue, Svelte, Blazor and Android Converter

Convert any SVG to a React, Vue, Svelte, Angular, Astro, Blazor or React Native component, an Android Vector Drawable, CSS mask or data URI. Runs in your browser.

How to use it

Examples

Questions

Is my SVG uploaded?
No. Parsing, sanitizing and code generation all run in your browser.
Why was part of my SVG removed?
Scripts, event handlers, external images, fonts and foreign content are removed because they are unsafe in components. The tool lists what it removed.
Why can’t I convert an SVG with a <style> block?
Components cannot carry CSS selectors. Inline the styles first, then convert.
Does it keep multiple colors?
Yes. A color prop is added only for single-color icons; other icons keep their own colors.

Free and runs in your browser. Sign in only if you want to save your work.