SVG to PNG Converter

Rasterize SVG icons, logos, and diagrams to crisp PNGs at custom dimensions or 1x–4x scale—with automatic script sanitization, transparency support, and batch ZIP export.

Security-First Browser-Local SVG Rasterization

SVG is an XML format that can embed JavaScript, inline event handlers, foreignObject HTML, or external network references. Before rendering any SVG, KBLimit parses it with DOMParser (never innerHTML), strips disallowed elements and event attributes, blocks external URLs and CSS @import rules, and reports any neutralized security findings directly in the interface.

Normal vector paths, shapes, linear/radial gradients, masks, clipPaths, fills, strokes, and alpha transparency are preserved cleanly at any target pixel size up to 8192×8192 (within a 48-megapixel browser memory cap).

  • Custom width & height with optional aspect-ratio lock and 1x / 2x / 3x / 4x scale presets.
  • Transparent PNG output by default, or selectable solid background color matte.
  • Multi-file batch conversion with individual PNG downloads and single-click ZIP export.
  • Graceful error reporting for malformed XML or non-SVG files.

Frequently Asked Questions

Can a malicious SVG execute JavaScript during conversion?

No. KBLimit sanitizes every SVG before rendering by removing <script>, <foreignObject>, inline on* event handlers, and external URLs, and renders strictly through an isolated image Blob without inserting raw SVG into the page DOM.

Does SVG to PNG preserve transparent backgrounds?

Yes. Transparent Background is enabled by default so icons and logos export with crisp alpha transparency. You can also uncheck it to fill a solid hex background color.

Related KBLimit Tools