Not sure whether your logo or photo needs pixels or paths? In the vector vs raster graphics choice, use vector for logos, icons and type that must scale, and raster for photographs and rich color.
If you also want tools that make each type, start with our guide to the best graphic design software.
| Item | Value |
|---|---|
| Raster image data | Fixed pixels on a grid |
| Vector image data | Equations (mathematical formulas) |
| High definition photo resolution | 300 DPI or more |
| Standard definition photo resolution | Around 72 DPI |
| Common raster formats | JPEG, PNG, GIF |
| Common vector formats | SVG, EPS, PDF |
These figures come from G2’s raster graphics glossary and the Aalto guide to vector and raster graphics. Figures can change, so check the source before you rely on them.
How raster graphics work
A raster graphic stores an image as fixed pixels on a grid, and each pixel holds a single color, as G2 explains. Take a step back and the colored pixels form a clear image, just like a mosaic.
Because the pixel count is fixed, enlarging a raster image causes trouble. The Noun Project blog notes that raster images can easily become blurry when expanded, and Aalto’s guide says the pixels will always start to stand out if you zoom in close enough.
Pixel density is usually quoted in DPI or PPI. G2 puts high definition photos at 300 DPI or more, and standard definition photos at around 72 DPI.
Raster formats you will meet most often include:
- JPEG, PNG and GIF
- BMP and TIFF
- Many other more specialized formats
That list follows G2’s glossary. Photos and digital paintings made in Photoshop also live in this world, since Aalto places paintings and drawings made with that program in the raster format.
How vector graphics work
A vector graphic stores an image as equations instead of pixels, according to G2. Aalto describes the building blocks as anchor points joined by vector paths, and each path can carry its own stroke color, curve, thickness and fill.
The payoff is scalability. G2 says a vector keeps the same resolution at any size because its pixels are calculated from the image dimensions, and Aalto adds that the underlying formulas allow scaling without loss of quality.
Vector work is the standard choice for:
- Logos
- Typography
- Icons
- Infographics
- Illustrations
That list is taken from the Aalto guide, and G2 adds that most fonts are designed in vector formats. To edit vector files you need a vector-based program, and the Noun Project blog names Sketch and Adobe Illustrator as examples.
The weak spot is realism. Aalto says that rendering organic shapes photorealistically with vector graphics is still a challenge.
Vector vs raster graphics: the main differences
The split comes down to a handful of practical points:
- Building blocks: raster uses pixels, vector uses equations.
- Scaling: a raster file starts with a preset number of pixels that never changes, while a vector is regenerated at each new size.
- File size: richer raster images need more pixels and so more storage, while vector files tend to be smaller.
- Color and realism: raster is stronger at blends, shading, lighting nuances and gradients.
- Editing: each type needs its own kind of editor.
These points draw on G2, which also notes that smaller vector files mean faster loading times, and that scalability is more or less essential for good responsive design.
Our guide to photoshop vs illustrator looks at the two editors most often tied to these image types.
When should you use each type?
G2 offers a simple rule of thumb: use raster when image quality is the top priority, and vector for everything else. Most real projects end up using both, as the next list shows.
- Choose raster for photographs, which G2 says can only be raster images or at least originate that way.
- Choose raster for print advertisements, where the Noun Project blog says you will be using raster images.
- Choose vector for logos, a point the Noun Project blog makes in the same breath.
- Choose vector for icons and type that must stay sharp on a desktop and a smartphone screen.

The line between the two is not always clean. G2 points out that SVGs, one of the most used vector formats, can contain rasterized components, and Aalto notes that a PDF can be imported in vector format or compressed in raster format.
If you are still picking a program to make either type, our roundup of canva alternatives lists other options to compare.
How do you convert between raster and vector?
Going from raster to vector works best on simple artwork. The Noun Project blog says images with simple designs, like repetitive patterns, are the easiest to convert, and it describes Adobe Illustrator’s Image Trace as the route it recommends most.
Going the other way is a short job in Illustrator, as the same blog describes:
- Open the vector file.
- Go to File, then Export, then Export As.
- Choose to convert the graphic to a TIFF, PNG or JPG file.
Tracing cannot invent detail that was never captured. G2 says that once a photograph is taken you cannot improve its resolution, although you can compress it, so decide the final use of the image before you shoot.
Frequently asked questions
Is a JPEG a vector or a raster file?
Show answer
A JPEG is raster. G2 groups JPEGs, PNGs and GIFs together as raster formats.
Can a photograph be a vector image?
Show answer
Not in the way a camera works. Photos are built from pixels, and Aalto states that a digital camera cannot take vector images, even though skilled artists can illustrate photo-like scenes with vector tools.
Do web images get squashed to 72 DPI?
Show answer
No. G2 calls the idea that every web image is automatically reduced to 72 DPI a myth that has been proven false, and says browsers consider only the final dimensions, not DPI.
Is a PDF vector or raster?
Show answer
It can be either. G2 lists PDFs among vector formats, while Aalto cautions that a PDF may hold vector content or a compressed raster version.



