How to convert SVG to PNG
- 1Paste your SVG code into the SVG Source editor, or drop an .svg file in the Or Drop SVG area. Click Load Sample to try it with an example icon.
- 2Set the output Width and Height. Dropped files start at 4x the SVG's own size, and the link button keeps the aspect ratio locked to the SVG's viewBox.
- 3Choose PNG, JPEG or WebP. For JPEG and WebP, a quality slider appears.
- 4Check the Preview, then click Download to save the image.
Rasterizing SVG: what to know
An SVG describes shapes mathematically, so it has no fixed pixel size. To rasterize SVG, you pick a pixel grid and ask the browser to paint the shapes onto it. Because the shapes are redrawn at the target size, a 24x24 icon exported at 512x512 stays perfectly sharp. That's the opposite of enlarging a PNG, which can only stretch the pixels it already has. So when you convert SVG to PNG, high resolution costs nothing in sharpness, only in file size. One SVG can feed every density an app needs.
The viewBox attribute defines the SVG's internal coordinate system and aspect ratio. This tool reads it to work out the native size and to keep width and height proportional when the aspect lock is on. If your SVG has no viewBox, it falls back to the width and height attributes. Exporting at a different ratio will stretch the drawing.
PNG is usually the right output for icons and logos: it's lossless and keeps transparent backgrounds. JPEG has no transparency, so anything see-through is filled with white. That makes SVG to JPG a poor choice for most icons, though it's fine for diagrams or illustrations on a solid white background. SVG to WebP gives you transparency at a smaller size if your target supports it. For pixel-precise icons, export at whole multiples of the viewBox size, such as 2x or 3x, so edges line up with the pixel grid.
Rendering uses the browser's own SVG engine, so the result matches what you'd see on a web page. One catch: SVG loaded as an image can't fetch external resources. Web fonts, linked images or stylesheets referenced by URL won't load, so convert text to paths or embed assets before exporting. Nothing is uploaded at any point.
When developers reach for it
Exporting @2x and @3x assets
Render one SVG icon at several sizes for iOS, Android or retina web assets that need raster files.
Making app icons and favicons
Export a vector logo at 512x512 or 1024x1024 as a source image for app stores and favicon generators.
Sharing graphics where SVG isn't accepted
Export SVG as PNG for slides, docs, chat apps and social posts that won't accept vector files.
Previewing SVG code
Paste markup from a design tool or icon library to see exactly how it renders before you ship it.
Frequently asked questions
How do I convert SVG to a high-resolution PNG?
+
Enter a larger Width and Height before downloading. SVG is redrawn at the size you choose, so a 2048-pixel export is just as sharp as a small one.
Does the PNG keep a transparent background?
+
Yes. PNG and WebP keep transparency. JPEG doesn't support it, so transparent areas are filled with white.
Why are my fonts or embedded images missing?
+
When an SVG is loaded as an image, browsers block external resources such as web fonts and linked files. Convert text to outlines or embed images as data URLs in the SVG first.
Why does my output look stretched?
+
The width and height don't match the SVG's aspect ratio. Turn on the aspect lock and re-enter one dimension to restore the correct proportions.
Is my SVG uploaded anywhere?
+
No. The SVG is rendered and encoded by your browser, and nothing is sent to a server.
Related tools
SVG Sprite Generator
Combine multiple SVGs and raster images into a single SVG sprite. Editable per-icon names, WebP compression for raster inputs, live HTML / React usage snippets, and a local browser library for saving sprites for later.
Image Resizer
Resize images to exact pixel dimensions or a percentage of the original, with optional aspect-ratio lock. Export as WebP, JPG, or PNG at any quality.
Image Converter — WebP, PNG & JPG
Convert PNG, JPG, WebP, GIF, and BMP images to WebP, JPEG, or PNG with an adjustable quality slider. Batch-convert multiple files at once with live size comparison. Everything runs in your browser — no uploads, no size limits.
HEX to RGB Color Converter
Convert colors between HEX, RGB and HSL in both directions, including 8-digit hex and alpha. Color picker, RGB sliders, CSS Color 4 syntax and a WCAG contrast check against white and black.