Skip to content
cliplimeClipLime

Convert SVG to PNG

Sharp PNG files from vector art at the size you need, made in your browser.

Runs on your device, nothing is uploaded

or drop files here

SVG files · add as many as you like · nothing is uploaded

At a glance

What it does
Draws SVG files as PNG pictures at a width you choose: the SVG's own size, 512, 1024, 2048 or 4096 pixels.
Transparency
Kept. Empty areas of the SVG become transparent PNG pixels, including rounded corners.
Sharpness
The SVG is drawn fresh at the size you pick, so lines and text are sharp at that size. In our test, shapes on whole pixel boundaries came out pixel for pixel exact.
Default size
The SVG's own size. A drawing with only a viewBox of 48 comes out 48 pixels wide, so pick a bigger width for icons.
Safety
Scripts in an SVG do not run, and nothing it links to is fetched. In our test an SVG with a script and a remote picture made no request.
Limit
Up to 100 megapixels per picture.
Privacy
Files are drawn in your browser and never uploaded.

How to do it

  1. 1

    Add your SVG files

    Choose or drop one or many. Each row shows the size the SVG declares.

  2. 2

    Pick the width

    Open Width for SVG files. The height follows the shape of the drawing. Leave it on the SVG's own size only if that is the size you want.

  3. 3

    Check the options

    PNG is preselected and the optimiser is on. Nothing else needs changing for a normal logo.

  4. 4

    Convert and download

    Press the button and download each PNG or a ZIP.

Choosing the width, the one decision that matters

An SVG describes shapes, not pixels, so it has no resolution of its own. The width you choose becomes the width of the PNG. The height follows the drawing's shape.

  • Own size. The tool reads the width and height written in the SVG, or its viewBox when there are none. Units are converted at 96 pixels to the inch, so a drawing 40 mm wide comes out 151 pixels wide. Many icons are drawn on a 16, 24 or 48 unit grid, and they come out 16, 24 or 48 pixels wide. That is rarely what you want.
  • 512 to 4096. For a logo on a web page, 2 times the display width keeps it sharp on high density screens. For a print or a slide, ask for the width you need in pixels, or the size in inches times the resolution of the print.
  • Nothing declared. An SVG with no width, height or viewBox is drawn 1024 pixels wide.

If an SVG declares a huge size, such as 20,000 pixels wide, the own-size setting is refused above 100 megapixels. Pick a smaller width and convert it again.

What the browser draws, and what it does not

The page hands your SVG to the browser as an image. That is the same safe route a browser uses for an SVG in an img tag, so the rules are the same.

  • Scripts do not run. An SVG containing a script drew normally, and the script's side effects did not happen.
  • Nothing is fetched. A picture linked from another address is not loaded, so it is missing in the result. Embed pictures in the SVG as data instead.
  • Text uses fonts on your device. The test SVG asked for Georgia, Courier New and a font that does not exist. The first two were drawn with those fonts, and the missing one was replaced by a default serif font. A font that is stored on a web server is not loaded, so convert text to outlines in your editor if the lettering must be identical everywhere.
  • Features depend on your browser. Gradients and clipping are widely supported. Very new CSS or unusual filters may not draw.

Transparency and edges

A PNG can hold 256 levels of transparency, so smooth anti-aliased edges and soft shadows survive. A rounded rectangle in an SVG gave transparent corners and solid inside pixels, and a shape at half opacity gave pixels at half transparency, exactly as the SVG describes.

A transparent PNG looks right on any background, but a dark logo can disappear on a dark page. If you need a solid background, choose SVG to JPG or add the background in the SVG itself.

When to keep the SVG

Keep the SVG for anything that has to scale: logos on websites, icons, diagrams. A PNG made from it is fixed at one size and gets blurry when enlarged. Make a PNG when a program or site will not take SVG, such as many upload forms, email programs and presentation tools.

For a website icon set, the Favicon Generator draws an SVG at every size it needs, which stays sharper than resizing one PNG.

Questions people ask

What size will my PNG be?

Whatever width you pick, with the height following the drawing. With "Same as the SVG file" it is the size the SVG declares, or its viewBox. A drawing with only a small viewBox gives a small PNG, so choose a wider setting for icons.

Will the PNG be transparent?

Yes. Parts of the SVG that are empty become transparent pixels. Parts you fill with a colour stay solid, and partly transparent shapes stay partly transparent.

Why does my text look different?

Text is drawn with the fonts installed on your device. A font the SVG names but your device does not have is replaced by a default one. Convert the text to outlines in your SVG editor to make it identical everywhere.

Are scripts and external links in my SVG a risk?

No. Scripts do not run and linked files are not fetched, because the SVG is drawn as an image. A linked picture will therefore be missing from the PNG.

Can I make a very large PNG?

Up to 100 megapixels. The widest preset is 4096 pixels, and a 4096 by 4096 picture is about 17 megapixels. Very large PNG files skip the optimiser, so they are bigger than they could be.

Is my SVG uploaded?

No. The SVG is read and drawn in your browser.

Guides that help

All Images guides →