HeyDreaming

Free · runs in your browser · free account to save the PNG

Convert SVG to PNG

Loading the tool…

An SVG is a set of drawing instructions; a PNG is a finished grid of pixels. Drop the .svg file in and your browser draws it once and saves that as a PNG, transparency included, without uploading the file.

How do I convert an SVG file to PNG?

Drag the .svg file into the box above and it converts right away. The browser draws the vector on a canvas at the pixel size set by the file's width and height attributes, then writes those pixels out as a PNG. PNG has no quality setting, so there is nothing to choose, and transparent areas stay transparent. The result line shows both file sizes; download the PNG, which keeps your file name and ends in .png.

How it works

01

Add the SVG file

Drag one .svg file into the box or click to choose it. This page takes one file at a time, and files up to 50 MB are accepted.

02

Set the size in the file, if you need one

The PNG takes its size from the width and height attributes on the opening <svg> tag. Use plain pixel numbers: to get 512 × 512, write width="512" height="512". Values in mm, pt or other units are converted to pixels (96 per inch), and a percentage width counts as no size. If the tag has no viewBox, add one that covers the old size (viewBox="0 0 300 200" for a 300 × 200 drawing), or the artwork keeps its old pixel size inside a bigger or smaller canvas instead of scaling. A missing number is a trap: when neither width nor height can be read, the tool falls back to 1024 × 1024, so a wide logo comes out square with empty space above and below. This page does not resize.

03

Let it convert

It starts as soon as the file is added, with nothing to configure. PNG is lossless and has no quality slider, so the browser renders the drawing and writes the pixels straight out.

04

Compare the sizes, then download

The result line prints the SVG size, the PNG size and the change; a PNG is usually the much bigger file. Download it, and your .svg is left as it was.

Why turn an SVG into a PNG

SVG is the best way to send a logo, icon or diagram to a website: a few lines of text, sharp at any zoom, recolorable with one CSS rule. Plenty of other places will not take it. Slide decks, documents, email signatures, forum and chat avatars, app icon uploads and most marketplace forms ask for a flat image, and some site builders refuse SVG outright because a vector file can carry code as well as shapes.

PNG answers that handshake. Every viewer, editor and upload form reads it, and unlike JPG it keeps a transparent background, so a logo sits on a colored page without a white box around it. Treat the conversion as a one-way export: keep the SVG as your source file and hand the PNG to whoever asked for an image.

What changes when a drawing becomes pixels

The browser renders the file once, at its declared pixel size, and the PNG stores that single result. Every curve arrives with its soft anti-aliased edge already baked in. Text becomes pixels too, so it is no longer selectable or editable. If the drawing asks for a typeface this device does not have, the browser substitutes a similar face and that substitution is permanent. Nothing structural survives: groups, layers, path data and styling rules are gone, replaced by a flat grid of color and alpha.

Two things do carry over. Transparency is one: PNG has an alpha channel, so areas that were fully or partly transparent stay that way. Color is written the way the browser's canvas holds it, which is standard 8-bit sRGB.

The file usually grows a lot, and that is expected. A logo can be 2 KB of text as an SVG and several tens of kilobytes as a PNG, because a raster describes every pixel instead of describing shapes. The result line prints both sizes and the percentage change before you download.

Limits worth knowing first

The file decides the output size, not this page: no width box, no DPI field. The size comes from the width and height attributes on the opening <svg> tag. Use plain pixel numbers; mm or pt values convert at 96 pixels per inch, and a percentage counts as no size. With only a viewBox, or only percentages, nothing can be read, so the tool falls back to 1024 × 1024 and the PNG comes out square. If the ratio differs from the viewBox, the drawing sits centered with transparent margins. Without a viewBox nothing scales: the drawing keeps its old size and the canvas gains margins or clips edges.

Rendering also happens in isolation. The file is loaded as an image, so a linked stylesheet, a web font or an external image referenced by URL is not fetched, scripts do not run, and an animated SVG produces one still frame. Inline what the drawing needs before you convert. Nothing caps the pixel size, so a file that declares several thousand pixels per side can fail to draw, most often on a phone. On input: one file at a time, plain .svg (decompress a gzipped .svgz first), up to 50 MB, and a file that will not render shows an error line rather than a download.

What this tool does not do

It does not let you type in an output size, keep the drawing editable, load fonts or images the SVG only points at, save an animation as moving frames, or make the file smaller: a flat PNG is nearly always bigger than the SVG it came from.

See all free tools

Keep exploring

Related free tools

Questions

SVG to PNG: FAQ

Is the SVG file uploaded?

No. Rendering and saving happen in your browser, so the file stays on your device. The page records usage events in Google Analytics, such as which tool ran and how many files, but never the file itself.

Does the PNG keep the transparent background?

Yes. PNG stores an alpha channel and this tool does not flatten it, so transparent and partly transparent areas stay as they are. The SVG to JPG conversion would fill them with white instead.

Can I ask for a specific size, like 512 × 512?

Not from this page. The PNG takes its size from the width and height attributes in the SVG, in plain pixel numbers, so change those two numbers in the file and convert again. Values in mm or pt are converted to pixels (96 per inch), and a percentage counts as no size. The tag also needs a viewBox covering the old size, or the artwork keeps its old size inside the new canvas instead of scaling up. A file with only a viewBox has no usable size, so it is drawn into a 1024 × 1024 box and the PNG comes out square. Re-rendering the vector at the size you want stays sharp; scaling the finished PNG resamples pixels and blurs edges, and this page has no resizer.

Why is the PNG so much bigger than my SVG?

An SVG is text that describes shapes, and one shape can cover a large area. A PNG describes every pixel in that area, so a small logo can grow by a factor of fifty. If the PNG is too big, lower the declared size in the SVG and convert again. Saving the same picture as WebP is the other route: photos shrink a lot, flat logos often do not, and it needs Chrome, Edge or Firefox because Safari cannot write WebP.

The lettering in the PNG looks different from the SVG. Why?

The renderer can only use fonts this device has. When the font named in the file is missing, a substitute face is drawn and baked into the pixels. Install the font, or convert the text to outlines in your vector editor, then convert again.

My SVG has an animation or a linked image. What happens?

The file is drawn as a single still image: scripts do not run, resources referenced by URL are not fetched, and you get one frame. Inline the images and fonts, or flatten the artwork, before converting.

Can I convert several SVG files at once?

Not here. This page handles one file at a time, so convert, download, then add the next file.