SVG → JSX / TSX
SvgComponent · TSX · forwardRef
Turn an SVG into paste-ready React component code with a sandboxed preview. Runs 100% in your browser — your markup never leaves your device.
Input (SVG)
Output (TSX)✓ valid SVG
Preview
Rendered from the source SVG in a sandboxed frame (no scripts, no network), so the preview matches what the component renders without executing untrusted markup.
Options
Show SVGR config
The equivalent @svgr/core config that reproduces this output in your own toolchain:
{
typescript: true,
icon: false,
titleProp: true,
ref: true,
memo: false,
exportType: 'named',
replaceAttrValues: { '#000': 'currentColor' },
}Your files stay on your computer. Dad promised.