Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>SVGLens: Live SVG Previewer, Optimizer & React/JSX Converter Pro ✨New to Visual Studio Code? Get it now.
SVGLens: Live SVG Previewer, Optimizer & React/JSX Converter Pro ✨

SVGLens: Live SVG Previewer, Optimizer & React/JSX Converter Pro ✨

PirapaakaranPirathapan

|
1 install
| (0) | Free
| Sponsor
Live SVG visual previewer with checkered/dark/light canvas, lossless SVG minifier, CSS Data URI exporter, and 1-click React/TSX component converter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SVGLens: Live SVG Previewer, Optimizer & React/JSX Converter Pro ✨

Sponsor Publisher License: MIT

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

  1. Right-click any .svg file in the Explorer or Editor.
  2. Choose SVGLens: Open Live SVG Preview Studio, SVGLens: Optimize & Minify SVG, or SVGLens: Convert SVG to React TSX Component.

💖 Support & Sponsor

If you love SVGLens, please consider sponsoring ongoing development: 👉 Sponsor Pirapaakaran on GitHub

Connect on LinkedIn: Pirapaakaran Pirathapan


📄 License

MIT © Pirapaakaran Pirathapan

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft