Vector graphics stay sharp at any size, but social networks, email clients and many apps only accept bitmaps. Drop in SVG files or paste SVG code, pick a scale or an exact pixel width, and get clean PNG, WebP or JPG images rendered by your own browser.
Processing locally on your device
Overview
An SVG file is a set of drawing instructions written in XML: paths, shapes, gradients and text. A PNG is a fixed grid of pixels. Turning one into the other is called rasterization, and the key decision is output size. Because the SVG has no fixed pixel count, a 24 × 24 icon can become a 24 px PNG or a 2400 px PNG with equally clean edges, as long as it is drawn at the target size rather than enlarged afterwards.
This converter reads the root svg element to work out the drawing’s natural size. Explicit width and height win, and units such as pt, mm, cm and in are converted at the CSS standard of 96 px per inch. If the file only has a viewBox, as most icon sets do, the viewBox size is used, and if there is nothing at all it falls back to 1024 px. The tool then pins the width and height to your output size (adding a viewBox when one is missing so the artwork scales), loads the markup into an image element from a local object URL and draws it onto a canvas at exactly that resolution.
Choose a multiplier of 1×, 2×, 3× or 4× for retina-ready assets, or type an exact width and the height follows the aspect ratio. PNG keeps the alpha channel, so transparent areas stay transparent. WebP also keeps transparency at a smaller size, and JPG is available for places that need it; because JPG can’t store transparency, it always gets a solid background colour, which you can also add to PNG and WebP.
A few SVG features need care. Browsers render an SVG used as an image in a locked-down mode, so web fonts and pictures linked by URL won’t load, and CSS animations are captured at their first frame. Convert text to outlines or embed fonts for an exact match. Markup copied from HTML often lacks the SVG namespace; the tool adds it so the paste still renders, and files with syntax errors get a clear message instead of a blank image.
| Display size | 1× (standard) | 2× (retina) | 3× (high-DPI phones) |
|---|---|---|---|
| Small icon | 24 px | 48 px | 72 px |
| Toolbar or nav icon | 32 px | 64 px | 96 px |
| Email signature logo | 150 px | 300 px | 450 px |
| Website header logo | 240 px | 480 px | 720 px |
| Social profile logo | 400 px | 800 px | 1200 px |
Drop one or more .svg files, or click “Or paste SVG code” and paste markup.
Choose Scale (1×, 2×, 3× or 4×) or Exact width in pixels.
Pick PNG, WebP or JPG, and a quality level for WebP or JPG.
Keep the background transparent or fill it with white, black or any colour.
Check the thumbnails and sizes, then download each image or a ZIP of all.
Use cases
Social networks don’t accept SVG uploads. Render your logo at 800 or 1000 px wide so it stays crisp after the platform shrinks and compresses it.
Generate @1x, @2x and @3x PNG versions of an icon in one pass for platforms, email templates or app stores that need bitmap fallbacks.
Some office apps render SVGs inconsistently or not at all. A high-resolution PNG looks the same in every viewer and prints cleanly.
Most email clients block or mangle SVG. A small PNG logo exported at 2× its display size looks sharp on retina screens and stays only a few kilobytes.
Pro tips
Answers to common questions about the svg to png.
No. The SVG is re-drawn at the target size, so a 4000 px export is as sharp as a 40 px one. Blurriness only appears when you enlarge an existing bitmap, which this tool never does.
The viewBox is used as the natural size, so a viewBox of 0 0 24 24 renders at 24 px at 1×, 48 px at 2× and so on. If you need a specific size, switch to Exact width. With no size information at all, the default is 1024 px.
An SVG drawn as an image can’t fetch external resources, so a web font referenced by URL is replaced with a default font. Embed the font in the SVG or convert the text to outlines first.
The JPG format has no alpha channel, so transparent areas would turn black. The tool fills them with your chosen colour instead; pick PNG or WebP to keep transparency.
Yes. Paste the markup into the code box and click Add SVG. If the snippet is missing the SVG namespace, which is common for inline SVG in HTML, it is added automatically.
No. ToolEnhancer processes files on your own device inside the browser. They are never sent to, stored on or seen by our servers.
Yes. The svg to png is free to use with no sign-up, no watermarks and no daily limits.
Shrink JPG, PNG and WebP files without visible loss.
Convert between JPG, PNG, WebP, AVIF and more.
Convert iPhone HEIC photos to JPG.
Trace raster images into vectors.
Combine images into a single PDF.
Export PDF pages as PNG or JPG.