SVG to PNG — How to Convert Vector Graphics to Raster Images
SVG is the better format for the web. But the world doesn't only run on web browsers — and sometimes you need a PNG. Here's when to convert, what resolution to pick, and how to avoid the common gotchas.
SVG files describe graphics as mathematical shapes — paths, curves, fills. They scale to any size without quality loss, render crisply on Retina screens, and weigh almost nothing compared to their raster equivalents. In a perfect world, you'd use SVG everywhere.
Try it free: SVG to PNG Converter — Convert SVG files to high-resolution PNG images. Runs in your browser, no signup needed.
But email clients don't support SVG. Most social media platforms reject it. App stores want PNG or JPEG. Presentation software chokes on it. CMS image fields often require raster formats. And some legacy systems simply don't know what to do with a vector file. So you convert — and the conversion decisions determine whether your PNG looks sharp or soft.
The SVG to PNG converter handles this in the browser: upload an SVG file (or paste the code), pick a scale or exact dimensions, choose your background, and download the PNG. Batch processing handles multiple files at once.
When SVG, When PNG
The choice isn't about which format is "better" — it's about where the image is going.
Keep as SVG for websites (inline or as image files), web apps, documentation sites, icon systems, anything rendered by a browser. SVG scales perfectly, supports CSS styling and animation, and produces smaller file sizes for geometric graphics. A logo that's 3KB as SVG might be 15KB as PNG at a single size — and you'd need multiple PNG sizes for different screen densities.
Convert to PNG when the destination doesn't support SVG: email signatures and newsletters (most clients block SVG), social media posts and profile images, app store listings (iOS requires 1024×1024 PNG), presentation slides (PowerPoint handles PNG better than SVG), print materials (print workflows expect raster at 300+ DPI), and anywhere a CMS or upload form only accepts raster formats.
If your image is a photograph or has millions of colors, SVG was never the right format — use the Format Converter to convert between raster formats like JPEG, PNG, and WebP instead.
Resolution: Getting the Right Pixel Count
An SVG has no inherent pixel dimensions — it's defined by a viewBox (logical coordinates) and can render at any size. When you convert to PNG, you freeze it at specific pixel dimensions. Picking the right ones matters.
1x scale — matches the SVG's viewBox dimensions directly. A 200×200 viewBox produces a 200×200 PNG. Use this for standard-resolution screens and when file size is the priority.
2x scale — doubles both dimensions. That 200×200 viewBox becomes 400×400 pixels. This is the standard for Retina and HiDPI displays, where each CSS pixel maps to 2×2 physical pixels. If your PNG will appear on a webpage at 200×200 CSS pixels, the 2x version stays sharp on a MacBook or modern phone screen.
3x–4x scale — for ultra-high-density screens (iPhone Pro displays run at 3x), print use, or when you need extra resolution headroom. Files get proportionally larger.
Custom dimensions — type exact pixel values when you have a specific requirement. App store icon at 1024×1024. Favicon source at 512×512. The Favicon Generator can take that PNG and produce every browser icon size automatically. Social media profile at 400×400. The converter respects the SVG's aspect ratio and centers the graphic within the target dimensions.
For print work, the calculation is: physical size in inches × DPI = pixels needed. A 3-inch-wide illustration at 300 DPI needs 900 pixels wide. Set custom dimensions accordingly. The DPI Checker can verify your PNG meets the target resolution after conversion.
Convert vector SVG to raster PNG at custom resolution. Transparency preserved. Batch support.
Convert SVG to PNG →Transparency and Backgrounds
SVG graphics often have transparent backgrounds — the shapes float on nothing. PNG supports full alpha-channel transparency, so by default the converter preserves those transparent areas. The preview shows a checkerboard pattern behind transparent pixels so you can verify what's transparent versus what's white.
Sometimes you need an opaque image. Email clients often render transparency as black. Social media platforms may fill it with an unpredictable background. Some print workflows need a solid background. The converter lets you set any background color — white, brand color, whatever fits your use case — applied behind the SVG before rasterization.
If you're converting icons for an app, iOS applies its own rounded corners and background, so keep your icon background opaque and fill it with your brand color. Android lets you use transparency in adaptive icons, but the masked area behind should still have a solid fill.
The External Resource Problem
The most common conversion issue: the PNG looks different from the SVG. Text is wrong, colors are off, parts are missing. Almost always, this is because the SVG references external resources.
An SVG can reference external fonts (via @font-face with a URL), external CSS stylesheets, and external images (via <image href="...">). When the converter renders the SVG to a canvas, the browser may not load these external files — especially if they're on a different domain or behind authentication. The result: fallback fonts, missing styles, broken images.
The fix is to inline everything before converting. Embed fonts as base64 within the SVG. Move external CSS into inline style attributes or a <style> block inside the SVG. Convert linked images to embedded base64 data URIs. Most design tools (Figma, Illustrator, Inkscape) have export options that inline resources automatically — look for "Outline fonts" or "Embed images" in the export dialog.
The paste-code option in the converter is useful for debugging this: paste your SVG markup, see the preview, and check if anything is missing before downloading. If the preview looks right, the PNG will match.
Batch Conversion
If you have a set of SVG icons or illustrations to convert — say, an icon library of 50 files — the converter handles batch processing. Upload multiple files and they appear as tabs. All files convert at the same scale and background settings. Download each individually or use the batch download.
This is common in design-to-development handoffs. Designers export SVGs from Figma or Sketch. Developers need PNG versions for email templates, app assets, or legacy platform support. Batch convert the entire export folder in one pass. If the PNGs need further resizing for specific contexts (app icons at multiple sizes, for example), the Image Resizer handles that next step.
SVG Code Paste
You don't always have an SVG file. Sometimes the graphic lives as inline SVG in an HTML page, a code snippet in documentation, or markup in a design system component. The converter accepts raw SVG code — paste it directly, no need to save as a file first.
This is particularly useful for developers: copy the SVG from your HTML source, paste it into the converter, and get a PNG for documentation screenshots, email templates, or Slack messages. It's also a quick way to test SVG changes — modify the code, paste, preview, and verify the visual output without reloading a page.
Common Questions
What scale should I use? 1x for standard screens. 2x for Retina/HiDPI. Custom dimensions for specific requirements (app icons, print). When in doubt, use 2x — it covers most use cases and the file size increase is modest. If the resulting PNG is too large, the Image Compressor can reduce it further.
Why does my PNG look different from the SVG? External resources — linked fonts, CSS, or images that don't load during conversion. Inline everything in the SVG before converting. The paste-code preview helps you spot missing elements.
Can I keep transparency? Yes. PNG supports full alpha transparency, and it's preserved by default. Set a background color if you need an opaque result for email or social media.
SVG or PNG for my website? SVG for icons, logos, and geometric graphics — smaller files, perfect scaling. PNG for photographs with transparency, screenshots, and when a CMS requires raster. On a website, SVG is almost always the better choice for non-photographic graphics.
Vectors In, Pixels Out
SVG-to-PNG conversion is a one-way trip: you're freezing a resolution-independent graphic at a specific pixel size. Pick the right scale for the destination, handle transparency according to the platform's requirements, and inline your resources before converting. The SVG to PNG converter handles the rasterization entirely in your browser — your files stay on your device, and the output matches what you see in the preview.