SVGLens: Live SVG Previewer, Optimizer & React/JSX Converter Pro ✨
Live SVG visual previewer with checkered/dark/light canvas, lossless SVG minifier, CSS Base64 Data URI exporter, and 1-click typed React TSX Component converter directly inside VS Code.
✨ Features
👁️ Interactive SVG Preview Studio: Inspect .svg assets with Checkerboard, Dark, and Light backgrounds plus live 50%–350% zoom controls.
⚛️ 1-Click React TSX Converter: Automatically transforms hyphenated SVG attributes (stroke-width, fill-rule, class, clip-path) into clean JSX camelCase (strokeWidth, fillRule, className, clipPath) wrapped in a typed React.SVGProps<SVGSVGElement> component.
🗜️ Lossless SVG Optimizer: Strips XML prologs, comments, <metadata>, Inkscape/Sketch bloat, and redundant whitespace with instant byte-saving metrics.
🔗 CSS Base64 Data URI: Generate and copy data:image/svg+xml;base64,... strings ready for CSS backgrounds or inline <img> tags.
🛠️ Usage
Right-click any .svg file in the Explorer or Editor.
Choose SVGLens: Open Live SVG Preview Studio, SVGLens: Optimize & Minify SVG, or SVGLens: Convert SVG to React TSX Component.