Skip to content
LINEZOVA
LINEZOVA / Free tools

SVG to PNG Converter

Convert SVG artwork to transparent PNG at custom pixel dimensions locally.

Input & settings

What this tool does

SVG to PNG draws an accepted SVG onto a canvas and encodes a PNG at the width and height you choose. The canvas starts empty, so unused pixels stay transparent. The page keeps a fixed list of static elements and attributes. Anything else, including scripts, foreignObject, images, links, animation, event handlers, and URL references, is rejected. CSS escapes and comments are decoded before that check, including text inside style elements.

How to use it

  1. Paste markup or open an SVG file up to 2 MB.
  2. Set the PNG width and height, from 1 to 4096 pixels, within 12 million pixels total.
  3. Choose Convert to PNG, then download the image.

Practical example

The sample rectangle and label can be drawn at 960 by 480 pixels. The PNG is a raster image, so the original vectors are not preserved.

Tips

Fonts and filters can look different from a design tool. Rejecting dangerous markup is not a promise that every SVG is safe. Do not convert untrusted artwork on a signed-in site if you can avoid it. This page does not upload the file.

Questions

Will a script in the SVG run?

Script is not on the accepted element list, so it is rejected before rendering. foreignObject, images, links, and event attributes are rejected the same way.

Can the SVG load a remote image?

No remote fetch is intended. url(), imports, data, file, and http values are rejected after CSS comments and escapes are decoded, including inside style elements. A local url(#id) reference is also rejected.

Does the PNG keep transparency?

The canvas is not filled first, so areas the SVG does not paint remain transparent.

What size limits apply?

Each side must be a whole number from 1 to 4096, and the product must be at most 12 million pixels. The source text must be 2 MB or less.

Is every SVG compatible?

No. Malformed markup, unsupported elements, and some filters or fonts will fail or look different.

Related tools