跳到主要内容

SVG to PNG Online

Export SVG as PNG. Choose 1×, 2×, 3×, or a width in pixels, and a transparent, white, or custom background. Up to about 10 files, with a ZIP download. Nothing is uploaded.

For a raster PDF of the same drawing, use SVG to PDF. For both directions, use the SVG converter. Keep editing the vector in the SVG editor, or turn the bitmap into JPG or WebP with the image converter.

No image? Try a sample

Output size
Export scale

This page exports PNG. Transparent is the default. White or a custom color flattens the pixels. Scale or a custom width sets the canvas.

The long edge stays at or below 4096 pixels. A larger request is reduced in proportion, and the file card says so.

External images, scripts, and foreignObject are removed. Fonts may fall back, and animation or filters may not survive. Scale is not print DPI.

Background

What is SVG to PNG?

This page draws an SVG into a PNG at a size you choose. Drop a file, pick one from disk, or paste <svg text when an icon or interface graphic needs a bitmap. Conversion stays in the browser. Files are not uploaded.

Size is a scale (1×, 2×, or 3×) or a custom width in pixels. Height follows the aspect ratio. If the long edge would pass 4096 pixels, the export shrinks in proportion and the file card says so. The default background is transparent. White or a custom color flattens the pixels. You can process about 10 files and download them as a ZIP. For a PDF of the same drawing, use SVG to PDF. That PDF embeds a raster image. It is not a vector PDF.

When it fits

  • An SVG from a design file has to land in slides, email, or an older tool that only accepts PNG
  • An icon needs a bitmap with a transparent background, not a white plate
  • The file has no width or height, but it does have a viewBox, and you want the artwork's own ratio

To edit paths and colors, use the SVG editor. If the file is already a bitmap and you want JPG or WebP, use the image converter. To shrink the PNG afterward, use Tiny Image.

How it works

Export paints pixels. It does not rewrite paths. Three steps run in the browser:

  1. Sanitize. Scripts, javascript: URLs, external images, and foreignObject are removed. The cleaned markup is loaded from a blob URL in an <img>. MDN's img element describes that mode: scripts do not run.
  2. Render to canvas. The image is drawn at the pixel size you chose. Transparent is the default. White or a custom color is painted underneath when you flatten.
  3. Scale. 1×, 2×, and 3× multiply the SVG's own size. A custom width sets the width in pixels and keeps the ratio. If the long edge would pass 4096 pixels, both sides shrink together.

This page does not trace bitmaps. Tracing on the other SVG pages quantizes colors and fits curves, and it scales the long edge to 1024 pixels first.

Privacy

The SVG never leaves your browser. A drop or paste is read with the local File API. Sanitizing, the canvas, and the ZIP stay on this device. There is no upload and no account.

Limits

  • Export is PNG. PNG can carry an alpha channel, as defined in the W3C PNG specification. Transparent is the default. White and a custom color paint a background first.
  • Preview and rasterizing both load a blob URL in an <img>. MDN's img element reference describes that mode: scripts inside an SVG used as an image do not run.
  • External images, javascript: URLs, scripts, and foreignObject are removed before export. @font-face and page fonts are unreliable when SVG is loaded as an image, so type may fall back.
  • Animation, filters, and HTML inside foreignObject can disappear. Scale is a pixel multiplier, not print DPI.
  • Each file must be 8 MB or smaller. The export long edge stays at or below 4096 pixels. Tracing pages use a separate 1024-pixel edge before they fit curves.

References