Swelıty
Tools for everyone

Free Online SVG to PNG

Turn SVG files or pasted SVG code into sharp PNGs at the size you choose, with a transparent or coloured background.

Add SVG files

Drag SVG files here, or choose them. You can add several at once.

How to use

  1. Add SVG files, or open Paste SVG code instead and paste the markup.

  2. Choose Scale, Width or Height. Scale goes from 1x to 8x. With Width or Height the other side follows the shape of each drawing.

  3. Choose a transparent, white or coloured background, and the format to save as.

  4. Check the preview and the size in pixels and KB under each file. A notice appears if an SVG uses something a browser cannot draw.

  5. Download one picture, or press Download all as zip when you added several.

Why use this tool

  • Sharp at any size

    The SVG is drawn again at the size you pick, so a 4x PNG has real detail instead of a blurry enlargement.

  • Size by width, height or scale

    Set a width in pixels, a height, or a scale from 1x to 8x. The shape is kept, and the final size in pixels is shown for every file before you download.

  • Transparent, white or any colour

    Keep the see-through background, or put a white or coloured one behind the drawing. JPG cannot be see-through, so it always gets a colour.

  • Several files and a zip

    Add many SVGs, apply one size and background to all, and download them together as a zip. Files with the same name are numbered so none overwrite another.

  • Plain warnings

    If an SVG links to a picture, a font file or an outside style sheet, uses a shape from another file, or holds HTML in a foreignObject, you are told which one and what will be missing.

  • Scripts never run

    The SVG is drawn only as a picture. A script inside it is not run and is never put into the page. You are told when a file has one.

  • Honest about formats

    JPG is always offered. WebP appears only if your browser can really save it. A file is never saved under a format it is not.

  • Safe size limit

    A picture can be at most 16,384 px on a side and 100 megapixels. Above that you get a clear message instead of a frozen tab.

About this tool

SVG to PNG turns an SVG drawing into a PNG picture at the size you choose. Add one SVG or many, or paste SVG code, then set the size by width, height or scale from 1x to 8x. The aspect ratio stays locked. Choose a transparent, white or coloured background and save as PNG, or as JPG or WebP where your browser can make them. The drawing is redrawn at the new size, not enlarged, so edges stay sharp. It runs in your browser. Because your browser does the drawing, an SVG that needs other files (linked pictures, font files, outside style sheets or HTML inside it) will not look complete, and the tool tells you when that is the case.

Frequently asked questions

In your browser, which reads the file, draws it and makes the PNG.

A browser draws an SVG as a picture without loading anything else. Pictures that are linked rather than embedded, font files, outside style sheets and HTML inside a foreignObject are left out. The tool names what it found. To fix it, embed the picture as a data URI, convert the text to outlines in your design app, or put the styles inside the SVG.

No. The SVG is drawn only through an image, and a browser never runs scripts there. The SVG code is not put into the page either. A script that changes the drawing will not have any effect on the PNG.

It is the size of the SVG times the scale, or the width or height you type. The size comes from the width and height in the SVG, or from its viewBox when those are missing. If the file has neither, 300 by 150 pixels is assumed and the page says so.

Browsers run out of memory on very large pictures. The limit is 16,384 pixels on a side and 100 megapixels in all. A scale-up that goes over it is refused with a message instead of crashing the tab.

Some browsers, mostly older Safari versions, cannot save WebP from a canvas. The option is hidden there rather than saving a different format under a WebP name. PNG and JPG always work.

JPG has no transparency. A transparent background becomes white, or the colour you choose. For a see-through result save as PNG or WebP.

Only if the font is installed on your device or is embedded in the SVG as data. A font that the SVG loads from a file or a web address is not loaded, and the browser falls back to a system font.