Verystep Guides

How to Convert an SVG to PNG at an Exact Size

An SVG has no fixed size until you give it one. If the place you're sending it to wants 1200 pixels wide, that's a decision you make at export — not something you fix afterwards by stretching a small PNG.

Published November 17, 2026 - A Verystep guide

Illustration of a vector shape outline being exported into a fixed-size pixel image frame

SVG artwork scales cleanly, but a PNG is a fixed grid of pixels, so the conversion is where the size gets locked in. Start from the destination: note the exact pixel width it asks for, whether that's 1200 px for an app listing or 512 px for an icon slot. In the converter you paste the code into the SVG markup box or open an .svg file, then set that number in Custom width in px, which overrides the Output size scale. The height follows the artwork's own proportions, so nothing gets stretched. Pick the Background on purpose, set Format to PNG, convert, and check the downloaded file's real dimensions before you hand it over.

Start from the slot, not the file

Most blurry exports start with a reasonable question asked in the wrong order. People open the SVG, convert it at whatever size shows up, and only then check what the destination wanted. By then the PNG exists, and the fix people reach for — stretching it bigger in an editor — just spreads the same pixels over more space. The result looks soft because no new detail was ever created.

Flip the order. Find the slot first. An app listing might spell out 1200 px wide. An icon slot might want 512 px. Write that number down before you open the tool. It drives every choice in the steps below, and it's the figure you'll check the finished file against at the end.

Convert at an exact width in seven steps

Open the SVG to PNG converter with your target width already decided.

  1. Work out the exact pixel width your destination needs, such as 1200 px for an app listing or 512 px for an icon slot.
  2. Paste your code into the SVG markup box, or use the file picker to open an .svg file from your device.
  3. Enter that target number in the Custom width in px field so it overrides the Output size scale.
  4. Set Background on purpose: leave it transparent for overlays, or pick white or another solid colour if the artwork needs a backdrop.
  5. Set Format to PNG.
  6. Click Convert to image and save the downloaded PNG.
  7. Open the downloaded file and check its actual pixel dimensions match the width you asked for before you upload or ship it.

Step three is the one that makes the width exact. The Output size control works as a scale, which is handy for a quick bigger-or-smaller export, but a scale of the original can land you at 1178 px or 1231 px when the slot asked for 1200. The custom width field skips that guessing. You type the number, and the width comes out at that number.

Width is yours to set, height follows the artwork

There's no height field in this tool, and that's deliberate. An SVG carries its own proportions — a wide banner stays wide, a square mark stays square. When you set the width, the height is worked out from those proportions, so a 1200 px export of a 2:1 banner comes out at 600 px tall without you typing anything.

Illustration of a width setting driving a proportional export, with the height following the artwork shape
Set the width once: the height follows the artwork's proportions, so the shape never gets stretched.

That also means you can't force an SVG into a box it doesn't fit. If a slot demands both a width and a height that don't match your artwork's shape, don't hunt for a second field to stretch it into place. Export at the width, then crop or pad the PNG in an editor if the slot truly needs it, or go back to the source artwork and adjust the canvas there. A stretched logo fools nobody — circles turn into ovals and letterforms go visibly wrong.

Background: the choice people skip and then regret

An SVG often has no background at all. The shapes float on transparency, and the converter's Background setting decides what sits behind them in the PNG. Leave it transparent and the file works as an overlay: drop it on a web page, a slide, or a photo and the surface underneath shows through. That's the right call for most logos and icons.

Pick a solid background when the artwork needs one — or when you can't control where the file ends up. Here's the trap that catches people weekly: a white logo exported with a transparent background, placed on a white page. It doesn't look broken. It looks absent. The shapes are there, they're just white on white. If your mark is white or very light, either export it on a dark solid background, export it transparent and only place it on dark surfaces, or recolour the artwork before you convert. Decide at export time, while the choice costs you nothing.

Three mistakes that ruin an otherwise fine export

First, exporting small and upscaling later. If the SVG's own default size is tiny — some icons sit at 24 or 48 px — a scale-based export can hand you a PNG at that size. Blowing it up to 1200 px afterwards gives you a large file with small-file sharpness. Re-export from the SVG at the full width instead. The vector source still has the detail; the small PNG doesn't.

Second, skipping the last step. Downloads usually behave, but browsers, renamed files and older exports sitting in the same folder all conspire to swap in the wrong file. Open the PNG, read its dimensions, and compare them with the number you wrote down. Ten seconds now beats a rejected listing later.

Third, converting at all when the destination would have taken the SVG. Plenty of web slots accept SVG directly, and there the file stays sharp at any size. If a slot insists on PNG, convert with care — if it doesn't, skip the conversion entirely.

Convert your SVG at the exact width you need

The Verystep SVG to PNG converter takes pasted SVG markup or an .svg file, lets you set a scale or an exact custom width in pixels, pick a background and format, and downloads the finished image. Set the width once and check the file before you ship it.

Open the SVG to PNG Converter ->

Last verified November 17, 2026 — fields (SVG markup, file picker, Output size, Custom width in px, Background, Format) and the Convert to image flow checked against the Verystep SVG to PNG converter.

Frequently asked questions

Why did my PNG come out blurry even though the SVG looked sharp?

Because the PNG was probably exported small and then displayed or stretched larger. An SVG stays sharp at any size, but a PNG only holds the pixels captured at export. If you exported at 200 px wide and the slot shows it at 800 px, the viewer spreads those 200 pixels across 800 slots. Re-export from the SVG with Custom width set to the full size you need.

Can I set both the width and the height?

No, and you don't need to. The tool takes a width — either through the Output size scale or the exact Custom width in px — and works the height out from the artwork's own proportions. That's what keeps shapes honest. If a destination needs a height that doesn't match those proportions, export at the width first, then crop or pad the PNG rather than stretching it.

What's the difference between the Output size scale and Custom width?

The scale multiplies the SVG's own size, so the result depends on where the artwork started. Custom width sets the output width directly in pixels and overrides the scale. If a slot names an exact figure — 1200 px, 512 px — use Custom width. If you just want a quick export at roughly double size, the scale is fine.

Should I export with a transparent background or a white one?

Transparent if the artwork will sit on a surface you control and you want that surface to show through — the standard choice for logos and icons on the web. A solid background if the file will land somewhere unknown, or if the artwork is white or very light and could vanish on a light page. Check what your artwork looks like against both before you decide.

How do I check the downloaded PNG is really the size I asked for?

Open the file in any image viewer and look for its dimensions in the file info or properties panel — on most systems that's a right-click and a properties or Get Info view. The width should match the number you entered exactly. If it doesn't, you've likely opened an older export from the same folder, so re-download and check the fresh file.

More guides