Home › File & PDF Tools › SVG to PNG

SVG to PNG

SVG is the format designers love and half the internet still cannot take: upload forms, social platforms, slide decks and email tools routinely demand a regular image instead. This free svg to png converter renders your vector drawing as a crisp PNG at the exact width you choose. Paste the SVG code or drop the file — nothing leaves your device, and there is no sign-up and no watermark.

Drop an SVG file here or click to browse — or paste SVG code in the box below

The checkered pattern behind the preview means those parts are transparent.

No SVG yet
Drop an SVG file or paste its code above, then press Convert to PNG.

Nothing leaves your device. All processing happens in your browser — your SVG is never uploaded to any server.

How it works

An SVG is not a picture — it is a set of drawing instructions: circles, paths, text and fills described in XML, which a browser redraws from scratch at whatever size is asked of it. That is why SVG files are tiny and infinitely sharp. A PNG, by contrast, is a grid of finished pixels. Converting SVG to PNG means asking the browser to follow the drawing instructions once, at a size you choose, and keep the resulting grid of pixels.

The steps on this page are the natural ones. Your SVG — from the file you dropped or the code you pasted — is first measured: the tool reads the width and height on the <svg> element, and if those are missing (many design tools export viewBox-only files), it falls back to the viewBox dimensions, which describe the same drawing area. A file with neither cannot be rendered at a faithful size, and the tool says so rather than guessing. The SVG is then loaded as an image — a context in which SVG scripts cannot run, so pasted code is inert — and drawn onto a canvas at your chosen output width, with the height scaled by the drawing's own proportions so nothing is ever stretched. If you picked a background, the canvas is painted that colour first; on Transparent, untouched pixels stay see-through. Finally the canvas is encoded as a lossless PNG and offered as a download, with a preview so you can check the result before saving it.

The width choice deserves a moment, because with vectors it works backwards compared with photos. Scaling a photo up invents blur; scaling an SVG up invents nothing — the browser simply redraws the shapes bigger and sharper. So the right width is set by where the PNG will be used: roughly twice the display width for crisp results on modern screens. A logo placed 300 pixels wide wants a 600-pixel PNG; a banner or print piece wants 2048 or 4096. The one real cost of generosity is file size, which grows with the pixel count.

Worked example

A founder has her startup's logo as logo.svg — a 240 × 80 drawing with a transparent background — and a pitch-deck tool that only accepts PNG uploads.

Step 1: She drops logo.svg onto the box. The tool shows "✓ Chosen: logo.svg" inside the box and loads the code, reporting a drawing size of 240 × 80.
Step 2: The logo will sit about 500 pixels wide on her slides, so she picks 1024 px output width for retina headroom and leaves the background Transparent.
Step 3: She presses Convert to PNG. The preview shows the logo on the checkered transparent pattern.

The result is logo.png at 1024 × 341 pixels — the height scaled by the drawing's own proportions (1024 × 80 ÷ 240 = 341) — sharp at slide size, with the transparency intact so it sits cleanly on her deck's coloured background.

Getting the best render

Render bigger than you need. A PNG can always be shrunk later without harm; it can never be enlarged. When in doubt, convert at 2048 px and scale down in the tool that uses it.

Outline your text for shared files. If the SVG's lettering must look identical everywhere, convert text to paths in your vector editor before exporting. The FAQ explains why fonts are the one part of an SVG that can shift between machines.

Match the background to the destination. Transparent is right for overlays and design work. White saves a logo from disappearing into a dark upload form's preview, and black does the same favour for white line-art on light pages.

FAQ

Why convert an SVG to PNG at all?

SVG is the best format for logos and icons on the web, but plenty of places still cannot use it: many social platforms, email clients, presentation tools, upload forms and older programs accept PNG but not SVG. A PNG render at a generous width gives those places a crisp picture that behaves like any other image.

What output width should I choose?

Choose about twice the width the image will be displayed at, so it stays sharp on high-resolution screens: a logo shown 300 pixels wide wants a 600-pixel PNG. 1024 px is a safe all-round choice, and 2048 or 4096 px suits print or large banners. Unlike a photo, an SVG scales up cleanly — a bigger render is sharper, never blurrier, because the browser redraws the vector shapes at the new size.

Does the PNG keep the SVG's transparency?

Yes, if you leave the background on Transparent: any part of the canvas the drawing does not cover stays see-through, exactly like the SVG. Choose the white or black background when the destination cannot handle transparency, or when a logo drawn in white would vanish on a light page — the preview here shows you which you need.

Why does my SVG text look different in the PNG?

An SVG that names a font relies on that font being available when it is drawn. Loaded as an image, the SVG can only use fonts installed on the device doing the drawing, so a missing display font falls back to a default one. If exact lettering matters, convert the text to outlines (paths) in your vector editor before exporting the SVG — then every render matches, everywhere.

Is it safe to paste SVG code from the internet?

On this page, yes. The SVG is loaded as an image, and images cannot run scripts in a browser — any code inside the file is inert and is never executed. The drawing also happens entirely on your device: nothing you paste or drop here is uploaded anywhere.

Disclaimer: Files are processed in your browser and never uploaded. Check the converted image before using it for official or professional purposes — fonts and rendering can vary slightly between devices.