Convert SVG to PNG Online

Convert SVG vector graphics to PNG in your browser: crisp rasterization with transparency preserved. Free, with no upload, no signup and no watermark.

How to use SVG to PNG

  1. 1Upload or drag your SVG file into the tool.
  2. 2The SVG is rendered onto a canvas at its native pixel size.
  3. 3Preview the rasterized image to confirm sharpness and size.
  4. 4Download the resulting PNG file.

Features

  • Renders crisp PNGs at the SVG's declared pixel dimensions.
  • Keeps transparent backgrounds using PNG's alpha channel.
  • Fully client-side rendering with no file uploads.
  • Free, no account, no watermark, and mobile compatible.

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)
CompressionNot applicable — XML text describing shapes (gzip as .svgz)Lossless (DEFLATE with per-row prediction filters)
Colour depthResolution-independent vector colours1–16 bits per channel; truecolor, greyscale or 256-colour palette
TransparencyYes (opacity on any element)Full 8/16-bit alpha channel
AnimationYes (SMIL or CSS)Only via the APNG extension
MetadataTitle, description and arbitrary XML metadataText chunks, ICC profile, gamma; EXIF via the newer eXIf chunk
Typical file sizeTiny for logos and icons; grows with path complexityLarge for photos (often 2–3× a JPG); tiny for flat graphics
SupportAll browsers; vector editors such as Illustrator, Inkscape, FigmaUniversal — 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 fileSVG inPNG outPixels vs originalTransparencyCamera EXIFTime
Graphic, 800 × 600, transparent1 KB342 KB (276× larger)SSIM 1.000 · 62.0 dBKeptNone in source1.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.

Frequently asked questions

Why does my PNG come out black or the wrong colour?

The SVG probably uses currentColor or relies on CSS from the web page it came from. When the SVG is rendered on its own there is nothing to inherit, so currentColor becomes black and external styles don't apply. Put explicit fill and stroke colours in the SVG before converting.

My SVG has no width or height, only a viewBox. What size will the PNG be?

Without width and height the SVG has no intrinsic size, so Pixohub uses the viewBox's proportions and scales the long side to at least 1024 px; a 24 × 24 viewBox gives a 1024 × 1024 PNG. Add width and height attributes to control the output exactly.

Can I convert a folder of SVG icons to PNG in one go?

Yes. <a href='/bulk-format-convert'>Bulk format convert</a> accepts SVG files and can output PNG, delivered as a zip. Each icon renders at its own declared size, so make sure the sizes are set in the files first.

Does an animated SVG export as an animation?

No. PNG here is a single still image, so you get one frame of the animation, usually its starting state. To capture a specific moment, edit the SVG so that pose is its static default.

Will the PNG keep my SVG's drop shadows and blur filters?

Yes. Filters such as feGaussianBlur and feDropShadow are rendered by the browser, and the semi-transparent shadow pixels are kept in PNG's alpha channel. Very large blur filters on big canvases can take a moment to render.

What resolution will my PNG be?

The PNG is rendered at the width and height declared inside the SVG. If you need a larger image, set a bigger width and height in the SVG before converting.

Will the PNG stay sharp if I scale it up later?

No. Once rasterized, the PNG has a fixed resolution and will blur if enlarged. The infinite scalability only exists in the original vector SVG.

Is transparency preserved?

Yes. PNG supports an alpha channel, so transparent regions in your SVG remain transparent in the output.

Are external fonts or images in the SVG supported?

The SVG is rendered by your browser, so system-available fonts and embedded assets render, but externally linked resources may not load for security reasons.

Does my file get uploaded?

No. The SVG is rendered locally on your device, and nothing is sent to a server.

Why does my exported PNG look small?

The output matches the SVG's own dimensions. If they are small, the PNG will be small too. Increase the SVG width and height for a larger result.

Can I use this on a phone?

Yes. The converter works in any modern mobile browser with no app required.

More converters

Batch: convert format many images at once

Same processing as above, run across a set of files. Pro returns the whole batch as one ZIP. Still entirely in your browser.

Free · up to 20

PRONeed more than 20 at a time?

Pro runs up to 150 images per batch as one ZIP, keeps your brand mark on every export, and lifts the file ceiling to 200 MB.

Unlock with Pro