Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>CX SVG to PNGNew to Visual Studio Code? Get it now.
CX SVG to PNG

CX SVG to PNG

fabioc-aloha

|
475 installs
| (0) | Free
Convert SVG to PNG with Rust rendering, transparent icon sets, batch output control, and banner generation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SVG to PNG

SVG to PNG Banner

Turn SVG source files into production-ready PNGs, transparent icon sets, and Marketplace banners with local Rust rendering.

VS Code Publisher


Right-click any .svg in the Explorer to convert it, export a transparent icon set, or process the workspace. The cross-platform resvg WASM renderer runs locally with no ImageMagick, Inkscape, or browser dependency.

Features

  • Right-click convert — Explorer context menu on any .svg file for instant conversion
  • Custom width — scale output to any pixel width while preserving aspect ratio
  • Transparent icon sets — export 16, 32, 48, 64, 128, 256, and 512 px PNGs from one SVG
  • Cancellable batch conversion — convert every SVG in the workspace and stop safely when needed
  • Output control — keep generated files beside each SVG or set an output directory that preserves workspace subfolders
  • Accurate rendering — Rust/resvg engine handles gradients, paths, and text correctly
  • System fonts — text in SVGs renders using your installed system fonts
  • Auto-open — converted PNG opens immediately in VS Code preview

Requirements

No installation required. The @resvg/resvg-wasm renderer is bundled with the extension — no platform-specific native binary, ImageMagick, or Inkscape is needed.

Usage

Single File

Right-click any .svg file in the Explorer → SVG to PNG: Convert SVG File

Custom Width

Right-click → SVG to PNG: Convert SVG at Custom Width → enter pixel width

Batch

Command Palette (Ctrl+Shift+P) → SVG to PNG: Convert All SVGs in Workspace

Transparent Icon Set

Right-click an SVG → SVG to PNG: Export Transparent Icon Set → choose a destination folder. The command writes a standard PNG size set with transparent backgrounds.

Commands

Command Description
SVG to PNG: Convert SVG File Convert the selected SVG to PNG
SVG to PNG: Convert SVG at Custom Width Convert at a custom pixel width
SVG to PNG: Convert All SVGs in Workspace Batch convert all SVGs in the workspace
SVG to PNG: Export Transparent Icon Set Export a transparent 16-512 px PNG icon set

Settings

Setting Default Description
svgToPng.defaultWidth 0 Output width in px (0 = natural SVG size)
svgToPng.loadSystemFonts true Load system fonts for text rendering
svgToPng.openAfterConvert true Open PNG in preview after conversion
svgToPng.outputDirectory `` Optional output directory; relative paths resolve from workspace root

Why resvg?

ImageMagick's SVG parser is incomplete and often mangles gradients, paths, and text. resvg-js uses a Rust implementation of the SVG rendering pipeline with no external application to install.


🔷 CX Tools Suite

Explore more tools from the same suite:

Extension Description Marketplace
AI Voice Reader Read files, selections, or documents aloud with Web Speech API Install ↗
Brandfetch Logo Fetcher Fetch and insert brand logos from any domain — SVG, PNG, or Markdown Install ↗
Dev Wellbeing Posture, eye-strain, and hydration reminders for long coding sessions Install ↗
Focus Timer Pomodoro-style focus and break timer with status bar countdown Install ↗
Gamma Slide Assistant Create presentations with local Marp export or optional Gamma generation Install ↗
Hook Studio Visual editor for VS Code hook conditions and automation rules Install ↗
Knowledge Decay Tracker Track staleness of documentation and flag overdue reviews Install ↗
Markdown to Word Convert Markdown + Mermaid diagrams to .docx via Pandoc Install ↗
MCP App Starter Scaffold Model Context Protocol servers in TypeScript, JavaScript, or Python Install ↗
Mermaid Diagram Pro Preview, export, and validate Mermaid diagrams in Markdown files Install ↗
PPTX Builder Generate PowerPoint presentations from Markdown using pptxgenjs Install ↗
Replicate Image Studio Generate images and videos with FLUX, SDXL, and WAN via Replicate API Install ↗
SecretGuard Scan workspaces and files for accidentally committed secrets and keys Install ↗
SVG to PNG (this) Convert SVG files to PNG using resvg-js (Rust renderer, no ImageMagick) Install ↗
SVG Toolkit Preview, copy as data URI, and validate SVG files in-editor Install ↗
Workspace Watchdog Monitor file health, detect stalled work, and surface hot files Install ↗

License

MIT

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