SVG to PNG Converter
Turn an SVG file or pasted SVG code into a PNG at any width, with a transparent or solid background.
Height follows the SVG's own proportions (from its viewBox, or its width and height attributes).
How to convert an SVG to PNG
- Click Choose an SVG file, or paste the SVG code straight into the box underneath. Pasting is useful when you have copied an icon from a design tool or a web page's source.
- Enter the width you need in pixels. The height is worked out for you from the SVG's own proportions.
- Choose a background. Transparent keeps the empty areas see-through, while white or black fills them in for places that do not handle transparency well.
- Press Convert to PNG, check the preview, then press Download PNG.
Worked example
Imagine a logo saved as an SVG with a viewBox of 0 0 120 40, meaning it is three times as wide as it is tall. A social media profile asks for a PNG at least 600 pixels wide. Load the file, type 600 in the width box and press the button. The tool scales the height in proportion, 40 × 600 ÷ 120 = 200, and the result line reads 600 × 200 px PNG. Because the source is a vector, the edges are just as sharp at 600 pixels as they would be at 60, which is not true when you enlarge an existing PNG.
If the same logo needs to sit on a coloured email header that does not support transparency, convert it again with a white background. You now have two versions, each suited to its job, in well under a minute.
How it works
An SVG is a set of drawing instructions rather than a grid of pixels. Your browser already knows how to follow those instructions, so the tool asks it to draw the SVG onto a canvas at the width you chose. The proportions come from the viewBox attribute when there is one, or from the width and height attributes otherwise. The canvas is then saved as a PNG, which every website, office program and social platform accepts. The whole process runs locally, so client logos and unreleased designs are never uploaded.
Tips
- Export at the largest size you are likely to need. Shrinking a big PNG later is easy, but enlarging a small one makes it blurry.
- For favicons and app icons, convert one square SVG several times at 512, 192 and 32 pixels wide.
- If text in your SVG looks wrong, the file may rely on a font that is not installed on your device. Convert the text to outlines in your design program first.
- SVGs that load external images or fonts from other websites may draw with gaps, because browsers block those requests on a canvas for security reasons.
- Choose a transparent background for logos that will sit on different colours, and a solid one for documents and older email clients.
- Name each download clearly, for example logo-600.png and logo-1200.png, so you always pick the right size when uploading.
Frequently asked questions
Why would I need a PNG if SVG is sharper?
Many upload forms, including some social networks, marketplaces and email builders, do not accept SVG files because they can contain code. A PNG is a safe, widely supported copy.
My SVG has no viewBox. Will it still work?
Yes, as long as it has width and height attributes. If it has neither, the tool falls back to the standard browser shape of 300 by 150, which may crop or stretch the drawing, so add a viewBox in your editor for an accurate result.
What is the largest PNG I can make?
Up to 8,000 pixels wide works in most desktop browsers. Phones have less memory, so keep to around 4,000 pixels there.
Is my file uploaded?
No. The SVG is read and drawn entirely inside your browser, and the PNG is created on your device.