← All guides

How to convert SVG to PNG without a blurry result

Export from the original SVG at enough pixels for its final use. Increasing the size of an already small PNG does not recreate vector detail. Check the downloaded dimensions, background and artwork rather than judging only the preview.

Choose output pixels before converting

SVG describes artwork that the browser can render at a chosen size. PNG stores a fixed grid of pixels. The conversion decides how many pixels will describe the drawing, so start with the dimensions needed by the receiving app, page or upload form.

For a 360-pixel-wide display area on a screen with device pixel ratio 2, a 720-pixel-wide PNG is a useful starting point. This is a preparation example, not a guarantee that every destination uses that density. A platform that resizes your upload can change the final appearance. Check its own preview and accepted dimensions.

Declared dimensions and viewBox are different measurements

Our public sample declares width 360 and height 240, while its viewBox is 0 0 300 200. The viewBox describes the drawing's coordinate space; it does not make the 1× PNG 300 × 200. In this converter, scale multiplies the image dimensions decoded by the browser.

The existing 2× output is 720 × 480. A 4× export from the same declared size would be 1440 × 960 by calculation. Doubling each side produces four times as many output pixels, but not a predictable fourfold file size. Inspect the dimensions shown by the tool, especially when the SVG does not declare a clear width and height.

FileDimensionsUnit
SVG declared size360 × 240pixels
SVG viewBox300 × 200drawing coordinates
PNG at 2×720 × 480pixels
Public vector drawing exported as a 720 by 480 PNG at scale two

Export the PNG from the original SVG

Keep the SVG master. If you need a larger result later, export again from that source. Enlarging a small PNG in Resize Image changes its pixel grid, but it cannot recover vector paths that were not stored in the raster file.

  1. Open SVG to PNG and choose the original SVG, rather than a PNG previously exported from it.
  2. Choose an export scale and check the resulting pixel dimensions. For the public 360 × 240 sample, 2× should give 720 × 480.
  3. Keep the transparent background enabled when the destination needs alpha transparency, or disable it and choose the intended solid colour.
  4. Download the PNG. Open that copy, check its actual width and height, and inspect thin lines, text and transparent edges at the intended display size.

When more pixels do not fix the artwork

An SVG can contain a bitmap image. Increasing export scale does not give that embedded photograph new original detail. Tiny text and strokes can also look different when a destination displays the result at fractional sizes. Judge the downloaded file at the size it will actually be used.

A missing image or a changed font is a separate problem from insufficient pixel dimensions. This converter loads SVG as a browser image. In that context, external resources may not load and scripts do not run. Prepare self-contained artwork and check it in the preview; requesting a larger export cannot bring back a missing external asset.

Check the receiving app before keeping the result

Confirm whether the destination wants SVG or PNG. A PNG is useful when the app requires raster input, but a supported SVG can retain its vector description. If you use PNG, check its real pixel dimensions and avoid repeatedly exporting from previously reduced copies.

If the PNG is sharp when opened directly but soft after upload, compare the destination's displayed size and any generated thumbnail. Save the original export until you know which version the receiving app is showing. A small preview alone does not prove that the downloaded file is undersized.

Further reading