2026-11-04 · SVG Basics
Keep SVG as your master and export PNG only where pixels are required. Here is the decision table, the export sizes and the mistakes to check for.
SVG stores shapes as instructions: a circle, a path, a fill colour. PNG stores a grid of coloured pixels. That one difference decides almost every choice between them.
Use SVG when the graphic is made of flat shapes and has to stay sharp at any size: icons, logo marks, simple illustrations, diagrams. Use PNG when the destination only accepts a pixel image, or when the artwork is too detailed for shapes to describe it well, such as a photo-like render or heavy texture.
This guide is for designers who export the same artwork to several places in a week: a website, a slide deck, a social post, a client handoff. It gives a decision table, the pixel sizes to export, and the checks that catch the usual mistakes.
Scaling. An SVG drawn at 24 px looks the same at 24 px, 240 px or 2,400 px, because the browser redraws the shapes at the new size. A PNG exported at 24 px has exactly 24 × 24 pixels (576 in total). Stretch it to 240 px and the browser has to invent the missing pixels, so edges go soft.
File weight. A simple icon is often a few hundred bytes to a couple of kilobytes as SVG. The same icon as a PNG at 512 × 512 px can be several times larger, because it stores every pixel. The relationship flips for complex artwork: an SVG with thousands of tiny paths can end up heavier than a PNG of the same picture.
Editing. You can open an SVG in a vector editor, change a stroke from 2 px to 1.5 px, recolour a single shape, or restyle it with CSS. A PNG can only be repainted pixel by pixel.
Support. Browsers display SVG natively. Many other places do not: some email clients, some social upload forms, some marketplaces, and some older office tools reject or rasterise SVG. PNG is accepted almost everywhere.
Transparency. Both can hold transparent areas. With PNG you have to export with transparency switched on. With SVG it depends on whether the file contains a background shape. Open the file and look, rather than assuming.
Website icons and UI controls: SVG. They scale with the layout and can inherit text colour through CSS.
Logo mark on your own site: SVG for the header, plus a PNG for places that reject SVG.
Favicon: ship an SVG plus a PNG fallback. A 32 × 32 px and a 180 × 180 px PNG (for touch icons) cover most needs.
Social avatars and post images: PNG or JPEG. Most platforms rasterise uploads anyway, and some refuse SVG outright.
Slide decks: SVG if your presentation software imports it, otherwise a PNG at twice the display size.
Email: PNG. Do not rely on SVG rendering in an email client.
Print and large-format: keep the SVG as the master and let the printer's software rasterise at the resolution they need. If they want pixels, export a PNG at the final size in inches multiplied by 300 (a 4 × 4 in sticker is 1,200 × 1,200 px).
Photographs and textured art: PNG or JPEG. Vectorising a photo rarely gives a smaller or better file.
In short: keep SVG as your master, and treat PNG as an output you generate for destinations that need pixels.
Do not export one big PNG and hope. Match the size to where it lands, and export at 2× the display size so high-density screens stay crisp.
A 24 px UI icon displayed at 24 CSS px: export 48 × 48 px.
A 64 px feature icon on a landing page: export 128 × 128 px.
A logo mark at 40 px tall in a header: export 80 px tall and let the width follow the proportions.
A square social avatar: 400 × 400 px is a safe starting size; check the platform's current upload guidance, since limits change.
A sticker or print asset: pixels = inches × 300.
Name files with the size in them (icon-search-48.png) so you never wonder which one is which. Keep the SVG named without a size, because it does not have one.
Blurry edges on a PNG. Check that the exported size matches the display size at 1× or 2×. A 24 px PNG shown at 48 CSS px will look soft.
White box around a transparent-looking icon. Some generated SVGs contain a white background square. Open the file in a vector editor and delete the background shape, or place the icon on a white surface. Do this before exporting a PNG, since the square is baked into the pixels.
SVG that is far heavier than expected. Open the code. Long coordinate lists with many decimals, embedded raster images, or thousands of nodes are the usual causes. Rounding coordinates to 1 or 2 decimals often shrinks the file without a visible change; test at the smallest display size before you accept it.
Colours that shift. SVG uses the colour values written in the file. PNG exports can pick up a colour profile from your export settings. Export both from the same source and compare them side by side on a white and a dark surface.
Thin strokes that vanish. A 1 px stroke on a 16 px icon can fall between pixels in the PNG and look faint. Use whole-pixel positions and widths of 1.5 or 2 px on small sizes, and check the 1× preview.
1. Finish the artwork as SVG on a defined grid, for example 24 × 24 px for icons, with consistent stroke widths.
2. Remove anything that is not part of the drawing: stray background shapes, hidden layers, unused definitions.
3. Save the SVG as your master in a folder named by asset, not by destination.
4. List the destinations that cannot take SVG. For each, write down the exact pixel size.
5. Generate PNGs at those sizes from the master, at 2× the display size.
6. Preview each PNG on both a light and a dark surface. Fix the master, not the PNG, if anything looks wrong.
7. Hand over the SVG and the PNG set together, with a short note saying which is which.
If you generate icons or logo marks with VEXURA, the generator exports PNG and JPEG on every plan, and SVG, JSON and HTML on Pro. The /convert page is a free SVG converter, handy when you have an SVG from any source and need a PNG, JPEG or WebP for a destination that will not take vectors.
Reach for PNG first in three cases.
The destination rejects SVG. No amount of vector quality helps if the upload form refuses the file.
The artwork is not shape-based. Soft shadows, grain, painterly gradients and photographic detail are described poorly by vector shapes. Forcing them into SVG produces large files that render slowly.
You need a guaranteed look. SVG text depends on fonts being available, and a few viewers handle filters and masks differently. If exact appearance matters more than scalability, a PNG fixes the pixels in place. For SVG logos with text, convert the text to outlines before sharing, or send the PNG alongside it.
And when SVG is clearly better, it is clearly better: UI icons, logo marks, line illustrations and any asset that will appear at several sizes. One file replaces a whole folder of exports, and it can be restyled later without starting over.
Master file: SVG.
Website and app UI: SVG.
Email, social uploads, marketplaces that reject vectors: PNG at 2× display size.
Photos and textures: PNG or JPEG.
Print: SVG master, or PNG at inches × 300.
Before every export: remove stray background shapes, check the 1× preview, and test on light and dark surfaces.
Settle the format per destination once, write it down, and your exports stop being a guessing game.