SVG to PNG Converter

Rasterize one self-contained SVG into a real PNG after strict active-content, external-resource, and complexity checks.

Category: conversion · Priority: P0

Self-contained SVG only · up to 5 MiB · 40 megapixels

Raw SVG is never inserted into the page

Output: 1 × 1 pixels

PNG background
Choose a self-contained SVG to begin.

How conversion works

Choose a self-contained SVG, select scale or dimensions and a background, then rasterize and download the verified PNG.

SVG vs PNG

SVG describes scalable vector content; PNG stores a fixed pixel grid. Rasterization makes the result broadly compatible but it no longer scales without resampling.

Output dimensions

Intrinsic width and height or viewBox determine the aspect ratio. Choose presets or custom dimensions within the 40 megapixel cap.

Scale factors

The 1× through 4× presets multiply the SVG's intrinsic dimensions while preserving its aspect ratio and enforcing the output pixel limit.

viewBox and intrinsic size

A valid width and height define the base size. When those are absent, a finite positive viewBox supplies the aspect ratio and raster dimensions.

Transparency and backgrounds

PNG alpha is preserved by default, or pixels can be composited over an explicit custom color.

SVG safety boundary

DOCTYPE, entities, scripts, event handlers, embedded documents, external URLs, CSS imports, and non-local resource references are rejected before any preview or rendering.

External-resource limitations

Remote images, fonts, styles, protocol-relative URLs, data or blob resources, and non-fragment references are rejected. The SVG must be fully self-contained.

Rasterization and quality

Choose enough output pixels for the intended display size. Enlarging the PNG later cannot recover the source SVG's vector sharpness.

Browser-local processing

Parsing, sanitizing, previewing, rasterizing, encoding, and downloading happen in the browser without an image upload or external resource request.

Limitations

Only static, self-contained SVG is accepted. External fonts, images, styles, scripts, embedded HTML, animation workflows, and server rendering are outside this tool.

Frequently asked questions

Is raw SVG inserted into the page?

No. It is parsed and rejected on unsafe constructs; only the validated serialized SVG receives a local preview URL.

Can the SVG load an external image or font?

No. External and data URLs, CSS imports, and non-fragment references are rejected.

How large can the PNG be?

The output is capped at 40 megapixels, with scale presets from 1× to 4× and custom dimensions.

Is the SVG uploaded?

No. Validation, preview, rendering, and encoding happen locally.

Need another lossless PNG conversion? Open WebP to PNG