FILEImages & Filesnew suite

SVG Optimizer, Sanitizer & React JSX Exporter

Clean SVG markup, strip editor junk, convert SVG to React/Next.js JSX component, and generate data URI with live transparent/dark preview.

tool id:svg-optimizer
svg viewer & optimizer
Presets:
279 bytes-1% (4 bytes saved)
Visual Rendering
100%
viewBox: 0 0 24 24Size: 64 × 64Shapes: 2 elements
React / Next.js Component
Component Name:
import React from "react";

export function TerminalIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#e05244" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"> <polyline points="4 17 10 11 4 5"></polyline> <line x1="12" y1="19" x2="20" y2="19"></line>
</svg>
  );
}

export default TerminalIcon;
Optimized Raw SVG
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#e05244" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <polyline points="4 17 10 11 4 5"></polyline> <line x1="12" y1="19" x2="20" y2="19"></line>
</svg>