LeanImg

Convert SVG to PNG — Free SVG to PNG Converter

Free SVG to PNG conversion, batches included — everything runs on your device.

Loading converter...

An SVG has no pixels until something draws it, so the first real decision is how big you want the result. That resolution choice is the conversion. One thing to check first: an SVG rendered through a browser runs sandboxed, with external stylesheets, linked images and web fonts all blocked. A file that looked correct when you opened it directly can rasterize with substituted fonts, so convert a copy and compare before you commit.

How to Convert SVG to PNG

1

Select your SVG files

Drop images in — every common format works.

2

Convert to PNG

Runs automatically; open advanced settings to tune quality.

3

Download

Save files singly or as one ZIP.

Why Convert SVG to PNG?

SVG files are perfect for scalable graphics, but many platforms — including social media, email clients, and presentation tools — require raster image formats like PNG. Converting SVG to PNG gives you a pixel-based image that works everywhere, with transparency preserved.

PNG is the best rasterization target for SVG because it maintains sharp edges, supports transparency, and uses lossless compression. Your icons, logos, and illustrations will look crisp at the rendered resolution without any compression artifacts.

LeanImg rasterizes your SVG at 2x resolution for retina-quality output, all within the page itself. Nothing is sent anywhere — the design file stays local while the PNG is drawn. Free, instant, and sign-up-free.

For the best results, make sure your SVG has explicit width and height attributes or a viewBox. A PNG that comes out too heavy can go through the compressor next; for the web, WebP is the more compact target.

Compress your PNG · PNG to WebP

What changes going from SVG to PNG

Rasterising is a one-way trip: the paths, gradients and text are drawn once, at one resolution, and the PNG knows nothing about the shapes it came from, so scaling it up later gives blur rather than detail. LeanImg loads the file through a browser image element, reads its intrinsic width and height, doubles both, and paints onto a transparent canvas at that size, so a 400 by 300 SVG becomes an 800 by 600 PNG. If the browser cannot report a usable intrinsic size, the canvas is set to 1024 by 1024 before doubling, so the output is a 2048-pixel square whatever the drawing's aspect ratio.

Transparency survives: the canvas starts fully transparent, anything the SVG does not paint stays transparent in the PNG, and the pixels are stored losslessly through the jSquash PNG encoder plus an oxipng pass. A font referenced by name but not installed on your machine is swapped for a fallback at draw time, and no PNG can fix that afterwards; convert text to outlines in Illustrator, Inkscape or Figma first if the typeface matters. Scripts do not run and SMIL animation is frozen on its first state.

Size goes from bytes of XML to a pixel grid: typically many times larger for a simple icon, though a path-heavy illustration can come out smaller than the markup that described it.

Don't do this when the graphic will be scaled again or used at several sizes; keep the SVG as the master and rasterise once per size, or use the icon generator for a favicon set.

SVG vs PNG

FeatureSVGPNG
File SizeTiny (vector)Larger (raster)
TransparencyYesYes
ScalabilityInfiniteFixed resolution
Browser SupportUniversalUniversal
Best ForIcons, logos, graphicsSharing, uploads
EditabilityVector editingPixel editing

What is a PNG file?

PNG became a W3C Recommendation in October 1996, designed after Unisys began enforcing the LZW patent that GIF relied on. It is lossless and only lossless: one compression method, deflate, applied after per-scanline filters. Every tool advertising a lossy PNG is really quantizing to a 256 color palette before writing an ordinary lossless PNG. Transparency comes in three grades: a real alpha channel at 8 or 16 bits, up to 256 alpha levels from a palette table, or a single keyed color.

Released1996, W3C Recommendation. ISO/IEC 15948 since 2004
CompressionLossless only, deflate with per-scanline filters
Transparency8 or 16 bit alpha channel, a palette table or one keyed color
AnimationAPNG, official only since the Third Edition in June 2025
Color depthUp to 16 bits per channel. Browser canvas APIs truncate that to 8
MIME typeimage/png

How to open a PNG file

Nothing needs installing anywhere: Preview and Quick Look on macOS, Photos and Paint on Windows, and libpng as a base dependency on Linux mean GIMP, Krita and every GTK or Qt application read it. The interesting tools are the optimizers — optipng, oxipng and zopflipng rewrite the file losslessly, and LeanImg's compressor runs oxipng at optimization level 3 without ever changing a pixel.

Convert other formats to PNG

Frequently Asked Questions

How to convert SVG to PNG?

Add SVG files to the LeanImg converter and each is rendered to a high-resolution PNG in your browser within seconds. Free, no account, and the files stay local from start to finish.

Is it safe to convert SVG to PNG online?

Yes. Rendering happens with your browser's own SVG engine, on your computer. Design files stay exactly where they are; the site never sees them.

How to convert SVG to PNG on Mac?

It works in every macOS browser with no extra software — no Illustrator, no command line. Add the SVG, save the rendered PNG.

What resolution will my PNG be?

LeanImg renders SVGs at 2x the intrinsic size for retina-quality output. If your SVG is 500x500, the PNG will be 1000x1000 pixels. SVGs without explicit dimensions are rendered at a default size of 1024x1024 pixels.