SVG to Component Converter

The SVG is processed locally in your browser — nothing is sent to any server.
Converted to PascalCase. Used for the component and file name.

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

  1. Paste the SVG code into the input field.
  2. Choose the framework (React JSX/TSX or Vue 3) and the component name.
  3. Click Convert and copy or download the component.

Frequently asked questions