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
- Paste the SVG code into the input field.
- Choose the framework (React JSX/TSX or Vue 3) and the component name.
- Click Convert and copy or download the component.