Vector versus raster: what changes
To convert SVG to PNG, drop your SVG file into the converter above and download the PNG: a lossless format that keeps transparency and every pixel exactly. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
An SVG is a vector graphic. Instead of storing a grid of pixels, it stores mathematical descriptions of shapes, paths, and text, which means it can scale to any size without ever becoming blurry. That makes SVG ideal for logos and icons, but it also means many everyday tools cannot use it. Social media platforms, presentation software, image editors, and messaging apps frequently reject SVG files.
Converting to PNG turns those instructions into a fixed grid of pixels, a process called rasterization. The resulting PNG is a normal image that opens anywhere. The catch is that a raster image has a fixed resolution, so unlike the original SVG it will lose sharpness if you enlarge it far beyond its rendered size.
PNG is the natural target for SVG because it is lossless and supports transparency. The clean edges and transparent backgrounds that make SVG logos so useful are preserved in the PNG output.
How rasterization works here
This tool loads your SVG in the browser, renders it onto an HTML canvas at the pixel dimensions defined by the SVG's own width and height, and then exports that canvas as a PNG. If your SVG specifies a size of 512 by 512, you get a 512 by 512 PNG. Everything runs locally with no upload to any server.
Because the output resolution follows the SVG's declared dimensions, it is a good idea to make sure your SVG has an explicit width and height set to the size you actually want. An SVG scales infinitely, but the PNG snapshot is taken at one specific resolution.
Transparent areas in the SVG remain transparent in the PNG thanks to PNG's alpha channel, so exported icons drop cleanly onto any background. There is no signup, no watermark, and the tool runs the same on phones and computers.
SVG vs PNG: technical differences
The output size comes from the SVG's own width and height attributes, read the way a browser reads them. Physical units are converted at the CSS rate of 96 pixels per inch. That means width="210mm" renders about 794 px wide and width="2in" gives 192 px. Many SVGs exported from Figma, Illustrator or icon libraries declare small sizes such as 24 × 24 or 48 × 48, which is why a PNG of an icon often comes out tiny. When an SVG has only a viewBox and no width or height, it has no intrinsic size, so Pixohub sizes it from the viewBox, scaled so the long side is at least 1024 px (viewBox 0 0 24 24 becomes 1024 × 1024).
The SVG is rendered as an image, not as a live web page. Scripts don't run, and external resources are blocked: linked bitmaps, web fonts pulled in with @import or a link element, and external stylesheets. Text set in a web font that isn't installed on your device falls back to a default font. Colours written as currentColor (used by Heroicons, Feather, Lucide and many other icon sets) resolve to the default text colour, which is black, because there is no surrounding page to inherit from.
Size changes in an unusual direction. A 3 KB logo SVG can become a 40–150 KB PNG at 1024 px, because PNG stores every pixel while the SVG stored a few path commands. Flat-colour artwork compresses well in PNG; gradients, blur filters and drop shadows compress less well and make larger PNGs.
| SVG (Scalable Vector Graphics) | PNG (Portable Network Graphics) | |
|---|---|---|
| Compression | Not applicable — XML text describing shapes (gzip as .svgz) | Lossless (DEFLATE with per-row prediction filters) |
| Colour depth | Resolution-independent vector colours | 1–16 bits per channel; truecolor, greyscale or 256-colour palette |
| Transparency | Yes (opacity on any element) | Full 8/16-bit alpha channel |
| Animation | Yes (SMIL or CSS) | Only via the APNG extension |
| Metadata | Title, description and arbitrary XML metadata | Text chunks, ICC profile, gamma; EXIF via the newer eXIf chunk |
| Typical file size | Tiny for logos and icons; grows with path complexity | Large for photos (often 2–3× a JPG); tiny for flat graphics |
| Support | All browsers; vector editors such as Illustrator, Inkscape, Figma | Universal — every browser, OS and editor |
When to convert SVG to PNG
Logos for social profiles and email signatures
Instagram, LinkedIn, Facebook and most email clients (Gmail and Outlook included) won't accept or reliably display SVG. A PNG at 2–4× the display size keeps the logo crisp on high-density screens and keeps its transparent background.
Icons for slide decks and documents
PowerPoint and Google Slides handle PNG everywhere, while SVG support varies by version and by viewer. Exporting icon-set SVGs to PNG avoids icons that vanish or turn black when someone opens the deck on another machine.
App store and marketplace graphics
Store listings, plugin directories and marketplace uploaders want fixed-size PNGs, such as a 512 × 512 app icon. Set the SVG's width and height to the required size and the PNG comes out exactly right.
Freezing a complex illustration
SVGs with thousands of paths or heavy blur filters can be slow to render, especially on phones. A PNG snapshot displays instantly and looks identical at its intended size.
What converting SVG to PNG keeps and loses
What you keep
- Transparent background and partial transparency (opacity, soft shadows) through PNG's alpha channel
- Exact colours of fills, strokes and gradients, rendered losslessly
- Smooth anti-aliased edges at the rendered size
- Text, as long as the font is installed or the text has been converted to outlines
What you lose
- Resolution independence: the PNG is fixed at the SVG's intrinsic pixel size
- Editable paths, shapes, layers/groups and live text
- Animation (CSS or SMIL) and interactivity; you get a single still frame
- Externally linked images and web fonts, which are blocked during rendering
- Title, description and metadata elements
Our test: SVG to PNG on two real files
Our 1 KB test SVG rendered to an 800 × 600 PNG of 342 KB, about 275 times larger, because the PNG stores every pixel of the gradients and blurred shadow that the SVG described in a few lines. Transparency was kept.
Against our reference render, PSNR was 62.05 dB and the largest difference was 14 levels. That isn't compression: PNG is lossless. Different renderers rasterise gradients and blur filters with slightly different rounding, and the differences sat in those areas, while the text matched our reference exactly. The conversion took 956 ms.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | SVG in | PNG out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Graphic, 800 × 600, transparent | 1 KB | 342 KB (276× larger) | SSIM 1.000 · 62.0 dB | Kept | None in source | 1.0 s |
Last updated
Apps and sites that work with SVG and PNG
Figma, Illustrator and Inkscape
Each exports PNG directly at a chosen scale (Figma's 2x and 3x, Inkscape's export width or DPI), which saves editing the SVG's width and height by hand. Use this page when you only have the SVG file, such as an icon downloaded from a library.
Where SVG isn't accepted
Profile-picture uploaders, most email clients and many forum and marketplace upload forms take PNG but not SVG, and some CMSs strip SVG for security. A transparent PNG at two to three times the display size works in all of them, and it stays sharp on high-density phone screens.
Command-line alternatives
rsvg-convert -w 1024 icon.svg -o icon.png (librsvg) and inkscape icon.svg --export-type=png --export-width=1024 render at any width without editing the file. Their output can differ slightly from a browser render, especially for text and filters. They also work in build scripts, which is better than a browser page when the same icons are re-exported on every release.
Common SVG to PNG problems and fixes
Sorry, that image could not be loaded.
Pixohub shows this when the browser refuses to parse the SVG. We tested three common causes in Chrome and Firefox: an svg element without xmlns='http://www.w3.org/2000/svg', an HTML entity such as that XML doesn't know, and an xlink:href without the xlink namespace declared. Add the missing declaration, or replace with  .
The icon PNG is 1024 pixels, not 24
When an SVG has a viewBox but no width or height, Pixohub sizes it from the viewBox, scaled so the long side is at least 1024 px: viewBox='0 0 24 24' becomes a 1024 × 1024 PNG. That's sharp, but larger than a toolbar needs. For a specific size, add width and height to the root svg element, or shrink the PNG with the image resizer.
Embedded photos are missing
An image element that links to an external file (href='photo.jpg') renders as blank, because SVGs drawn as images can't load other files. In Inkscape, choose Embed when importing images, or replace the link with a data: URI, and convert again. Linked web fonts and external CSS fail the same way, so inline the styles too.
Tips for better SVG to PNG results
- Need a 2× or 3× version for retina screens? Multiply the width and height attributes in the SVG (for example 256 → 768) but leave the viewBox alone. The drawing scales up with no blur.
- If icons come out black, open the SVG in a text editor and replace currentColor with the hex colour you want before converting.
- Convert text to outlines in Illustrator, Inkscape or Figma before exporting, so the PNG doesn't depend on fonts installed on your computer.