How the size is worked out
An SVG's own size comes from its width and height attributes. When one is missing, the other side follows the viewBox proportions; when both are missing, the viewBox size is used, and with no viewBox either, browsers use 300 × 150. Units such as pt, mm and in are converted at 96 pixels per inch.
Scale multiplies that size, so a 24 × 24 icon at 4× becomes 96 × 96. Width or Height sets one side in pixels and keeps the proportions.
How to use the SVG to PNG Converter
- Choose or drop SVG files, paste SVG code, or press Sample.
- Pick a scale, or set a width or height in pixels.
- Keep the background transparent or choose a colour; pick PNG, WebP or JPEG.
- Download each image, or all of them as a ZIP.
Examples
A 24 × 24 icon at 4×
<svg width="24" height="24" viewBox="0 0 24 24">PNG, 96 × 96A logo with only a viewBox, 600 pixels wide
<svg viewBox="0 0 120 40">PNG, 600 × 200Without width and height, the viewBox gives the proportions: 120 × 40 is 3:1.
Sizes in inches
<svg width="2in" height="1in" viewBox="0 0 200 100">JPEG, 192 × 962 inches at 96 pixels per inch. JPEG has no transparency, so the background is filled (white unless you pick a colour).
No size at all
<svg xmlns="http://www.w3.org/2000/svg">PNG, 300 × 150The default size browsers use. Add a viewBox to SVGs you export.
Sharp at any size
Scaling a small PNG up makes it blurry. Here the SVG itself is drawn at the output size, so a 16-pixel icon exported at 1024 pixels is as sharp as one designed at that size. Export the largest size you need from the SVG rather than resizing a PNG.
Options
- Size by
- Scale (1× to 4×), or a width or height in pixels with the other side in proportion. Up to 16,384 pixels a side.
- Format
- PNG (lossless, default), WebP or JPEG.
- Transparent background
- On by default for PNG and WebP. Turn off to fill with a colour; JPEG always has one.
- Quality
- For WebP and JPEG, 1–100.
Limitations
- SVGs that load external images, fonts or stylesheets render without them: browsers block outside resources when drawing an SVG as an image. Embed them, or convert text to paths.
- Scripts and animations don't run; the first frame is drawn.
- Output up to 16,384 pixels a side and 50 megapixels.
- Rendering may differ very slightly between browsers, especially for text.
Frequently asked questions
How do I convert SVG to PNG with a transparent background?
Keep Transparent background on and choose PNG or WebP. Areas the SVG doesn't paint stay transparent.
How do I get a high-quality PNG?
Choose a larger scale or width. The SVG is drawn at that size as vectors, so it stays sharp; don't upscale a small PNG afterwards.
Why is the text in my PNG in a different font?
Fonts that the SVG loads from the web or that aren't installed on your device can't be used. Convert text to outlines in your design tool before exporting.
Are my files uploaded?
No. Your browser draws the SVG and the image is encoded on your device.