About the SVG to Component Converter
Paste a raw SVG and get a ready component in React (JSX or TSX) or Vue 3. The tool cleans the code, converts attributes to each framework's format (camelCase and className in JSX), can replace colors with currentColor and remove dimensions so the icon scales via CSS. Ideal for building internal icon systems. Everything runs locally in your browser. To shrink the code, use our Minifier.
How to convert in 3 steps
- 1Paste the SVG code into the input field.
- 2Choose the framework (React JSX/TSX or Vue 3) and the component name.
- 3Copy or download the component, generated instantly as you edit.