How to convert SVG to PNG
An SVG is a drawing described in text: shapes, curves and colours that the computer paints at whatever size is asked. A PNG is a fixed grid of pixels. You convert SVG to PNG when the place you want to use the picture does not understand SVG: a social media post, a slide, a chat message, an email signature, an app store listing, a document template, or a website upload that only takes PNG or JPG.
The important choice is size. Because an SVG has no pixels of its own, you decide how many the PNG gets, and a PNG cannot be enlarged later without blur. So choose the biggest size you expect to need. This tool lets you scale by 1x, 2x, 3x or 4x, or set an exact Width in pixels, and the height follows the proportions of the drawing. The background can stay Transparent or take a Solid colour.
The conversion runs in your browser. The SVG is drawn by the page onto a canvas and saved as PNG, with no upload, no account and no watermark. Batches work too, with a ZIP at the end. Since the file is drawn as an image, scripts inside the SVG do not run and it cannot fetch anything from the network.
Steps to turn an SVG into a PNG
- Click Add files, drag your
.svgfiles anywhere on the page, or pick them from your device. An example SVG is loaded first. - Under Size by, choose Scale for a multiplier (1x, 2x, 3x or 4x of the drawing's own size) or Width in pixels for an exact width. The height is calculated from the proportions.
- Under Background, keep Transparent to preserve see-through areas, or choose Solid colour and pick the Colour, which is useful when the destination does not handle transparency.
- Click Convert to PNG. The result shows its final dimensions.
- Download each PNG, or Download all as ZIP.
logo.svgbecomeslogo.png.
Examples
A logo for a social media profile
logo.svg with a viewBox of 100 × 100. A profile picture often needs around 400 pixels, so set Width in pixels to 800 for a sharp result on high-density screens. Output logo.png, 800 × 800, transparent corners.
Icon for an app listing
icon.svg, 64 × 64, converted at Scale 4x gives icon.png, 256 × 256. If the store requires an opaque square, set Solid colour to the brand colour.
A diagram for a slide
flow.svg, 1200 × 600. At 2x you get 2400 × 1200, enough to look crisp when projected. At 1x the same diagram would look soft on a large screen.
An SVG exported from a design tool with text
banner.svg uses a font that is not installed on your device. Text inside an SVG is drawn with fonts available on the device, so it can change. Before converting, convert the text to outlines (paths) in your design tool so it looks the same everywhere.
Common errors and how to fix them
- "This SVG has no width, height or viewBox, so the size is unknown.": the file does not say how big it is. Open it in a text editor and add a
viewBoxto thesvgelement, for exampleviewBox="0 0 100 100", then try again. - "The picture would be bigger than 8192 px on one side. Choose a smaller size.": that limit protects your browser's memory. Lower the scale or the width.
- External images, fonts and links do not appear: they are not loaded, so that nothing leaves your device. Embed them in the SVG (as data inside the file) if you need them.
- "This SVG could not be drawn. Check that the file is valid SVG (it must start with <svg> and have no broken tags).": the file is not valid SVG, or is damaged. Open it in a browser or vector editor to see where it breaks.
- The edges look soft: the PNG is too small for where it is used. Convert again with a bigger scale or width.
- Text looks different from the original: the font was not available. Convert the text to outlines first.
SVG or PNG, which to use
What is the difference between SVG and PNG?
SVG is vector: it stays sharp at any size and is usually tiny for logos and icons. PNG is raster: a fixed grid of pixels that gets blurry if enlarged. Use SVG on websites when you can, and PNG where SVG is not accepted.
What size should I choose?
Think about where it will be displayed, and double it for high-density screens. For something that will be printed or may be enlarged, go bigger, up to the 8192 pixel limit.
Does the PNG keep a transparent background?
Yes, as long as Transparent is selected. If the destination does not support transparency, choose Solid colour to avoid unexpected black areas.
Can I convert the PNG back to SVG?
Only by tracing, which creates an approximation. Use PNG/JPG to SVG for flat artwork such as logos. It is not the same as getting your original drawing back.
Is my file uploaded?
No. The drawing and encoding happen in your browser.
Can I make a favicon from my SVG?
Yes. Convert it here at a large size, then use Favicon generator to create the sizes a site needs. To change dimensions afterwards, there is Resize image.