Raster vs Vector: What’s the Difference?

Raster and vector are the two fundamental types of digital image. Understanding the difference is essential for choosing the right format for print, web, and design workflows — and for knowing when DPI matters.

What Is a Raster Image?

A raster image stores visual information as a rectangular grid of pixels, where each pixel holds a specific colour value. The total number of pixels is fixed at the time of creation or capture. Common raster formats include JPEG, PNG, WebP, GIF, TIFF, HEIC, and BMP.

Because raster images are pixel-based, they have a fixed resolution. Enlarging a raster image beyond its native pixel count requires resampling (interpolating new pixels), which reduces sharpness. This is why DPI matters for raster images: the ratio of pixels to inches determines print sharpness. Convert your image to 300 DPI to prepare it for sharp professional print.

What Is a Vector Graphic?

A vector graphic stores images as mathematical descriptions: paths defined by anchor points, curves, fill colours, and stroke properties. When a vector image is rendered — on screen or by a printer — the maths is recalculated at the output resolution. Common vector formats include SVG, AI (Adobe Illustrator), EPS, PDF, and WMF.

Vectors scale infinitely without quality loss: a 2 KB SVG logo renders equally sharp on a business card or a 10-metre billboard. Vectors have no inherent DPI because they have no pixels — DPI only becomes relevant when you export a vector to a raster format.

Raster vs Vector: Key Attributes Compared

Attribute Raster Vector
ScalabilityFixed; degrades on enlargementInfinite; no quality loss
DPI requirementYes; 300 DPI for printNo (set at export)
Best forPhotos, complex imageryLogos, icons, type, diagrams
Common formatsJPEG, PNG, WebP, GIF, TIFFSVG, AI, EPS, PDF
File sizeDepends on pixel count & compressionTypically small for simple graphics
Photo-realismYesDifficult; not suitable for photos

DPI and Raster Images

Raster images have a DPI tag stored in their metadata (EXIF for JPEG, pHYs chunk for PNG). This tag tells the printer how many pixels to map per inch. For sharp consumer print, set 300 DPI using the DPI Converter. For large-format print, check whether 150–200 DPI is sufficient given the viewing distance. Use the Print Size Calculator to calculate the correct pixel count for any DPI and output size.

DPI and Vector Exports

When you export a vector to a raster format — for example, exporting an Illustrator AI logo to PNG — you specify the output DPI at export time. Exporting at 300 DPI at 3″×3″ produces a 900×900-pixel PNG. Export the same file at 150 DPI and you get a 450×450-pixel PNG. The vector source is unchanged; only the rasterised export reflects the DPI.

When to Use Raster vs Vector

  • Use raster for: photographs, screenshots, digital art with complex gradients, web images, social media images.
  • Use vector for: logos, icons, brand marks, typography, technical diagrams, anything needing multi-size output (business card to billboard).
  • Use both for: multi-layer print documents (PDF) combining a vector logo with a photographic background.

Working with a Raster Image?

Check and set the correct DPI for your print job using our free tools.

FAQ

Does a vector logo need 300 DPI? The original vector does not. If you export it to a raster format for print, export at 300 DPI at the final print size.

Can I convert a photo to vector? Auto-tracing tools create vector paths from raster outlines, but photographs contain too much detail to vectorise faithfully.

Why does my PNG logo look blurry when printed large? A PNG is raster — it has a fixed pixel count. If exported too small, it will look blurry at large print sizes. Request an SVG or AI vector from your designer, or upscale the PNG before printing.

Related Tools & Guides

Continue with practical tools and supporting tutorials for better image and print outcomes.

Frequently Asked Questions

What is the difference between raster and vector graphics?
Raster graphics store images as grids of pixels. Vector graphics store images as mathematical descriptions of paths, shapes, and fills. Raster images have a fixed resolution; vector images scale to any size without loss.
Do vector graphics have DPI?
Vector files (SVG, AI, EPS, PDF) are resolution-independent and do not have intrinsic DPI. When you export or rasterise a vector to a bitmap format (PNG, JPEG), you specify the output DPI at that point.
What DPI should I rasterise a vector at?
For print, rasterise at 300 DPI at the final output size. For web, rasterise at the target pixel dimensions (DPI is irrelevant for web browsers).
Which is better for print — raster or vector?
Vector is preferred for logos, icons, and type because it renders at any size without quality loss. Photography and complex imagery must use raster at sufficient resolution (300 DPI or higher for print).
Can I convert raster to vector?
Yes, but with limitations. Auto-tracing tools convert raster outlines to vector paths, producing best results for flat illustrations. Photographs cannot be meaningfully vectorised.