Source
LiveRaw inline SVG input
Paste any inline SVG on the left. The right side stays live, keeps the last valid render in view, and can convert the markup into JSX.
Raw inline SVG input
Preview and optional React JSX
Attribute names are converted for React usage.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="lucide lucide-image-icon lucide-image">
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<circle cx="9" cy="9" r="2" />
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />
</svg>