Convert SVG to PNG - At Exactly the Size You Need
An SVG has no fixed number of pixels. It is a set of drawing instructions, so the question a converter has to answer is not "what does this file contain" but "how big do you want it". This tool asks you that question up front: pick a scale, or type exact width and height, and see the resulting pixel size before anything is rendered. The drawing is re-rendered from the vector at whatever size you choose, so a 4× export is genuinely four times the detail rather than a blown-up copy. Everything happens on your own device - the file is read by your browser, drawn onto a canvas, and encoded to PNG without a single byte being uploaded.
How to use this tool
Drop in your SVG
Drag an SVG onto the box above, or click to browse. Files up to 5 MB are accepted, and you can add several at once. We check the file's actual contents rather than trusting the .svg on the end of its name, so an HTML page or a renamed PNG is turned away rather than half-rendered.
Check the size we found
Each file shows the source size we read out of it. If the SVG sets a width and height, those are used. If it only sets a viewBox - the usual output from Illustrator and Figma - we use the viewBox, which is the size the designer actually drew at. If it declares neither, we say so and fall back to 512 × 512.
Choose your output size
Switch between Scale and Exact size. Scale multiplies the source size by 1×, 2×, 4×, or any number you type. Exact size lets you set the width in pixels, with an aspect-ratio lock that works out the height for you. Unlock it if you deliberately want to stretch the drawing.
Decide about the background
PNG supports transparency and we keep it by default, so the areas your SVG never paints stay see-through. Untick the box to flatten the drawing onto a white background instead - useful when the PNG is headed somewhere that renders transparency as black, such as some older document templates.
Convert and download
Click Convert to PNG. Each file is drawn at your chosen size and encoded, with a progress bar per file. Download them one at a time, or grab everything as a single ZIP when you have converted more than one.
Frequently Asked Questions
What size PNG do I get if the SVG has no width or height?
We use the viewBox. An SVG with viewBox="0 0 200 50" and no width or height converts to a 200 × 50 PNG, because that is the coordinate space its author drew in. Browsers disagree: ask one and it reports 300 × 75, a leftover CSS default for elements with no intrinsic size. We read the file instead of asking the browser.
What if the SVG declares no size at all - not even a viewBox?
Then nothing in the file implies a size, and we use 512 × 512 while telling you that is what happened. It is a starting point, not a guess at your intent. Switch to Exact size and type the dimensions you actually want; the drawing is re-rendered at that size, so nothing is lost by overriding it.
Why does the text in my PNG look different from the SVG?
Because the font did not load. An SVG that names a font only references it; the glyphs are not inside the file. When your browser rasterizes it, any font you do not have installed silently falls back to a default face at a different width, which shifts and re-wraps the text. Convert your text to outlines in your editor before exporting, and it will match exactly.
Is transparency preserved?
Yes, by default. PNG carries a full alpha channel, so anywhere your SVG paints nothing stays genuinely transparent rather than turning white. Semi-transparent fills and soft shadows keep their partial opacity too. If you would rather have a solid background, untick the transparency box and the drawing is flattened onto white before encoding.
What happens to <script> tags and remote images inside the SVG?
They never run and never load. SVG can contain JavaScript, remote image references and remote fonts, which is why an SVG from an unknown source is worth being careful with. We scan every file and list anything of that kind we find, and the rendering method we use blocks all of it outright - no script executes and no request leaves your device.
Why is exporting at 2× better than enlarging the PNG afterwards?
Because the drawing is re-rendered, not resampled. Doubling the scale here redraws every curve at the higher resolution, so edges stay mathematically sharp. Enlarging a finished PNG can only interpolate between pixels that already exist, which softens every edge. This is the whole advantage of starting from vector, and it is most obvious on small icons and fine line work.
Is there a limit on how large I can render?
Yes - 32 megapixels, and no more than 16,384 pixels on a side. That is roughly 5600 × 5600, comfortably past print resolution for most artwork. The ceiling exists because browsers quietly return a blank image instead of an error when a canvas gets too big, and a silently empty download is worse than a clear refusal. Input files are capped at 5 MB.
When should I keep the SVG instead of converting it?
Any time the destination is a web page. An SVG logo stays sharp on every screen and every zoom level, usually weighs less than the PNG, and can be recoloured with CSS. Convert to PNG when the destination cannot read SVG: email clients, some marketplace and print portals, social media uploads, older desktop software, and app icon pipelines.
Are my files uploaded anywhere?
No. The conversion runs entirely in your browser using the same rendering engine that draws SVGs on any web page. Your file is never sent to a server, never stored, and never seen by us, which also means there is no queue and no wait - the only limit is your own device's speed.
You might also need
Something not working? Report a bug