SVG to PNG/JPG Converter
Convert an SVG vector file into a raster PNG or JPG image. Runs entirely in your browser.
Click to upload or drag and drop
Select an .svg file
How it works
Choose PNG or JPG first, then select an .svg file; it converts as soon as the file loads, and changing the format afterwards needs the file to be selected again. The SVG is drawn onto a canvas at its own declared width and height and saved as an image. PNG keeps transparent areas; JPG fills them with white.
Output size
The size comes from the SVG's width and height attributes. An SVG that only has a viewBox comes out at the browser's default size — 300 × 150 pixels in Chrome-based browsers — so add width and height attributes (for example width="1200" height="800") before converting if you need a specific resolution.
Limits
The SVG is drawn the way a browser draws an image: scripts don't run, and external images, fonts and stylesheets are not loaded, so text in a font that isn't installed on your device falls back to a default. The download is named converted.png or converted.jpg, and files over 50 MB are rejected. A declared size above 16,384 pixels on a side, or above 268,435,456 pixels in total, is refused with a message that quotes the size, and any failure while drawing or saving also shows a message instead of failing silently.
A worked example
An SVG declared as width="1200" height="800" is drawn onto a 1200 × 800 canvas. As PNG it downloads as converted.png with transparent areas preserved. The same file as JPG downloads as converted.jpg, with the canvas first filled white and the result saved at 92% quality. If the browser reports no width at all for the SVG, the tool falls back to 800 × 600 pixels.
Getting a larger picture
The raster size is the SVG's own declared size, so the way to a sharper or bigger image is to edit the width and height attributes before converting. An icon declared at 400 × 300 produces a 400 × 300 image, while changing the attributes to 1600 × 1200 produces four times the width and height, and sixteen times the pixels.
Order of steps and accepted files
The format is read at the moment the file is chosen, so to switch from PNG to JPG, set the menu and select the file again. A file is accepted if its name ends in .svg or its type is image/svg+xml, and up to 50 MB is allowed. Anything else shows "Please choose an .svg file." An SVG the browser cannot draw shows a message that it may be invalid or use external resources.
Frequently asked questions
Why did my SVG fail to convert?
SVGs that reference external images, fonts, or resources may not render correctly, since nothing is fetched from a server during conversion.
How do I get a higher-resolution PNG from my SVG?
Open the SVG in a text editor and increase the width and height attributes on the opening svg tag, keeping the same proportions, then convert it again. The output size follows those numbers.
Why does the JPG have a white background?
JPG cannot store transparency, so the canvas is filled with white before the SVG is drawn. Choose PNG if you need the transparent areas kept.
I changed the format after choosing my file and nothing changed. Why?
The conversion runs as soon as the file is selected, using the format chosen at that moment. Select the file again after changing PNG or JPG.