Skip to content

SVG to PNG converter

Paste SVG code or drop one or more .svg files, choose a scale (1× to 4×) or an exact width, and download a PNG with a transparent background, or JPG or WebP. The SVG is redrawn at the size you choose, so a 24 px icon at 4× comes out as a sharp 96 × 96 px PNG. The converter shows the size it reads from your SVG and warns when the viewBox or width is missing.

or drop one or more here
Size
Transparent
Format

Paste SVG code or drop .svg files to see the PNG here.

SVG size
24 × 24
Output
–
File size
–

How the size of an SVG is worked out

At 1× the PNG gets the size a browser gives the SVG in an <img> tag with no CSS. That size comes from the attributes on the root <svg> element, in this order. Unit conversions follow CSS Values and Units (96 px to the inch); the 300 × 150 fallback is the default size for replaced elements in CSS 2.

The SVG hasSize at 1×Example
width and height in px, or without a unitThose valueswidth="24" height="24" is 24 × 24
width and height in other unitsConverted at 96 px per inch1in = 96px, 1pt = 1.333px, 1cm = 37.8px, 1mm = 3.78px
Only a viewBoxThe viewBox width and heightviewBox="0 0 120 60" is 120 × 60
width only, plus a viewBoxHeight from the viewBox ratiowidth="200" viewBox="0 0 100 50" is 200 × 100
width="100%"The viewBox sizeA percentage has no size of its own
Nothing300 × 150The CSS default for an image without a size

Logo walls and image blocks you can install now

8 of 97 free, no account. All of them in UI Pro.

  • Logo strip (logos-01)01

    Logo strip

    logos-01 · Free. One centred line over seven client wordmarks set in type, in one grey row, with a case-study link.

    Open logos-01
  • Larchwood Joinery (gallery-04)02

    Larchwood Joinery

    gallery-04 · Free. Bespoke fitted furniture in Leeds.

    Open gallery-04
  • 03

    All free blocks

    Every one with a live preview, filtered to the ones you can use for free first.

    See them all

Questions

How do I convert SVG to PNG without losing quality?

Export at the size you will show it, or larger. An SVG is redrawn from its shapes at whatever size you ask for, so a 24 px icon exported at 4× is drawn fresh at 96 px, not enlarged from a small image. For screens use 2× the CSS size (3× for many phones); for print, multiply the size in inches by the printer's dpi.

Why is my PNG blank, cut off or the wrong size?

Usually the SVG has no viewBox, or no width and height. Without a viewBox the drawing does not scale, so a bigger PNG shows the same small drawing in a corner; the converter adds viewBox="0 0 width height" for you. With neither, browsers fall back to 300 × 150 px. The converter shows the size it read and a warning for each of these cases.

Why does the text in my PNG use a different font?

An SVG drawn as an image cannot load web fonts, external images or stylesheets, for privacy and security reasons, so text falls back to a font installed on your computer. Convert the text to outlines first (Object to Path in Inkscape, Outline stroke or Flatten in Figma, Create Outlines in Illustrator), or embed images as data: URLs.

Can I keep a transparent background?

Yes. PNG and WebP keep transparency, and the preview shows a checkerboard where the image is see-through. JPG has no transparency, so it always gets the background colour you pick, white by default.

What is the largest PNG I can make?

Up to 16,777,216 pixels per image, which is 4096 × 4096 for a square. Safari on iPhone and iPad has long capped canvases at that size, so the converter scales bigger requests down to fit and says so. You can type any width up to 16384 px.

Can I convert several SVG files at once?

Yes. Choose or drop several .svg files; they appear in a list, each with its own size. The scale, background and format apply to all of them, and "Download all as zip" saves every image in one file, named like logo@2x.png.

Is it free?

Yes. No sign-up, no limits, and nothing leaves your browser: your SVG is drawn by your own browser on a canvas in this page, never uploaded.

UI Pro

Build your next site from finished blocks

Every block, page template and website theme from €199, paid once, with every update and everything we add later. Not ready? The free blocks are open to everyone.

blocks
1401
page templates
55
website themes
29
The About page template from UI Pro, built from its blocks.

This card is a UI Pro block: Rooilijn (call-to-action-07).