What pixel size should an SVG export use?

Your SVG looks sharp. Your PNG should too. Multiply its on-page width and height by the screen's pixel ratio to choose an export size that keeps edges crisp.

Why does a PNG look soft when the SVG stays sharp?

An SVG is like a set of drawing instructions: it describes shapes that can be drawn at different sizes. A PNG is a snapshot of one drawing, with a fixed grid of pixels. Enlarging that snapshot spreads the same pixels over more space; drawing again from the SVG gives the new size its own edges.

Here's the difference along one diagonal: a 64-pixel PNG stretched to 192 pixels beside a fresh 192-pixel export from the SVG.

Matched diagonal details: the 64-pixel PNG stretched to 192 looks soft, while the SVG exported at 192 has a finer edge.
Follow the diagonal: stretching the small PNG blurs an edge that a fresh SVG export can draw clearly. How we reviewed

How many pixels should you export for a screen?

Multiply both on-page dimensions by the highest screen pixel ratio you want to cover. The page's layout units are called CSS pixels; the pixel ratio tells you how many screen pixels fit across each one.

Three equal 64 by 64 CSS-pixel display boxes for 1×, 2× and 3× screens, with export sizes and enlarged grid details below.
The display boxes stay the same size. A denser screen needs more image pixels inside the box; the 1× export fits a 1× screen.

For a 64 × 64 icon on a 3× screen, the calculation gives you a 192 × 192 PNG.

Worked example: display 64 by 64 CSS pixels, multiply width and height by 3, export 192 by 192 pixels.
Use your own display dimensions and target ratio. A larger export doesn't enlarge a display box whose CSS size is fixed.

Doing it in FluffyBench: export an SVG at a chosen PNG size

In FluffyBench's SVG to PNG converter, you can choose exact pixel dimensions or multiply the SVG's starting size. Here's the job from opening the drawing to saving the PNG.

  1. FluffyBench SVG converter with Choose images, To PNG and the Settings button.
    FluffyBench SVG converter with Choose images, To PNG and the Settings button.
    Step 1. Load your SVG and keep it for future exports. This walkthrough uses a square botanical drawing with a 64 × 64 size.
    1. Choose images opens your SVG.
    2. Leave To set to PNG.
    3. Settings opens the size controls.
  2. Size set to Dimensions, Width 192, Height 192 and Keep aspect ratio checked.
    Size set to Dimensions, Width 192, Height 192 and Keep aspect ratio checked.
    Step 2. Dimensions sets a pixel box; Keep aspect ratio fits the drawing inside it without stretching its shape.
    1. Choose Size → Dimensions for an explicit pixel size.
    2. Set Width 192 and Height 192; leave Keep aspect ratio checked.
    3. Original uses the SVG size; browser defaults can differ when its dimensions are missing.
  3. Alternative size setting: Percentage with Scale 300 percent.
    Alternative size setting: Percentage with Scale 300 percent.
    Step 3. Percentage is an alternative to Dimensions. For this 64 × 64 SVG, Scale 300% also draws a 192 × 192 PNG; it isn't a universal export size.
    1. Percentage multiplies the SVG's starting dimensions.
    2. Scale 300% makes each dimension three times as large.
  4. The Settings button closes the size panel; Convert is ready below the drawing.
    The Settings button closes the size panel; Convert is ready below the drawing.
    Step 4. Close Settings and convert from the SVG, so FluffyBench can draw fresh edges at the new size.
    1. Press Settings again to close the panel.
    2. Convert creates your PNG.
  5. Crops of the completed PNG readout and Download button beside the actual saved botanical PNG.
    Crops of the completed PNG readout and Download button beside the actual saved botanical PNG.
    Step 5. Check the PNG dimensions and file size against your destination's requirements, then save it.
    1. The completed row shows the output dimensions and bytes.
    2. Download saves the PNG to your device.

Ready to export your drawing?

FluffyBench's SVG to PNG converter

Draw a PNG at the pixel dimensions you've calculated.

Does the PNG look right where you'll use it?

The completed row gives you dimensions and bytes. The final check is visual: your saved PNG should have clear lines at the size it'll appear in your page or app.

The saved botanical PNG inside a 64 by 64 CSS-pixel display box, with an enlarged detail of its fine lines beside it.
Inspect the PNG in its destination at its intended display size; use the close view to spot broken or missing fine lines. · Photo: Britton, N.L., and A. Brown, Public domain, U.S. work published before January 1, 1931; Public Domain Mark 1.0, via Wikimedia Commons.
Search FluffyBench