SVG to PNG

Turn a vector SVG file — or pasted SVG code — into a crisp PNG at any width you choose, with a transparent or white background. Rendering happens on your device; nothing is uploaded.

Why Convert SVG to PNG at All?

SVG is the best format for logos, icons and illustrations — and yet the world keeps asking for PNG. The reason is compatibility. SVG is not really a picture; it is a set of drawing instructions written in XML text, and anything that displays it must understand and execute those instructions. Modern browsers do, but plenty of everyday software does not, or does so unreliably: older office suites, some email clients, many social platforms' upload boxes, app stores, print shops' systems, and tools that accept "an image" and mean a grid of pixels. A PNG, by contrast, is understood by essentially every program made in the last twenty-five years. Converting is therefore a translation step: you keep your master artwork as a tidy, scalable SVG, and you export PNG copies at exactly the sizes each destination demands. That is also why this tool asks for an output width — a PNG must commit to a size, and the right size depends on where it is going.

How Rasterization Works

Converting a vector to a PNG is called rasterization: the drawing instructions are executed once, at a chosen size, and the result is frozen into pixels. This tool does it entirely in your browser. It reads your SVG — from the uploaded file, or from the code you paste — works out the artwork's proportions from its viewBox (the coordinate system the SVG itself declares), and calculates the matching height for the width you requested, so nothing is ever stretched. It then loads the SVG as an image, draws it onto a canvas at those exact pixel dimensions, optionally paints a white background behind it first, and encodes the canvas as a PNG for you to download. If the SVG has no viewBox, the tool falls back to the width and height attributes written in the file, and if it has neither, it assumes a square. Invalid code is reported with a clear error rather than failing silently, so you know to check the pasted markup.

The Transparency Question

Most SVGs have no background of their own: wherever the artwork does not draw, there is simply nothing, and a PNG can preserve that nothing as true transparency. Choose the Transparent background and your PNG keeps it — ideal for logos placed over coloured web pages, overlays in videos and presentations, and stickers or watermarks. Choose White when the destination mishandles transparency, when the artwork contains white elements that would disappear against a light page, or when a print shop or office program expects a finished, self-contained picture. Decide by destination, not by habit: the same logo often needs a transparent version for the website and a white version for the invoice template.

Worked Example: Exporting a Logo

A baker has her shop's logo as an SVG from her designer. Her website is fine — it uses the SVG directly — but her delivery app wants a 1024-pixel PNG, her invoice software wants a 400-pixel PNG on white, and a local printer asks for "a big PNG" for a shop sign. She converts the same SVG three times here: width 1024 with transparency for the app, width 400 with white for invoices, and width 3000 with transparency for the printer. Every export is perfectly sharp, because each one is freshly rendered from the vector master rather than enlarged from a smaller PNG. That is the workflow SVG is designed for: one master file, unlimited exact exports.

Tips for Best Results

Export at the size you need, or a little larger — never smaller and then enlarged later, because a PNG cannot be scaled up without softening; go back to the SVG and export again at the bigger size instead, which costs nothing and stays crisp. Remember that external images and web fonts referenced inside an SVG may not travel with it: if your SVG relies on a linked image or an unusual font, it may render with substitutions, so designs with embedded or converted-to-path text export most reliably. Keep your original SVG file safe as the master. And if a converted PNG looks unexpectedly blank, the usual cause is artwork drawn outside its own viewBox — open the SVG, check the viewBox covers the drawing, and convert again.

Frequently Asked Questions

Is my SVG uploaded to a server?

No. The conversion runs in your browser on your own device, whether you upload a file or paste code. Nothing is transmitted or stored.

Why do I have to choose a width?

An SVG has proportions but no fixed pixel size; a PNG must have one. You choose the width, and the height is calculated from the SVG's viewBox proportions so the artwork is never distorted.

Can I make the PNG very large without losing quality?

Yes — that is the great advantage of starting from a vector. The PNG is rendered fresh at the requested size, so a 4000-pixel export is genuinely sharp, limited only by your device's memory.

My SVG failed to convert. What is wrong?

Usually the code is incomplete or invalid — a missing closing tag, or text pasted from the middle of a file. Make sure the code starts with an <svg> tag and includes the full markup, or upload the original .svg file instead.