# Raster vs Vector: What's the Difference?

> **TL;DR:** Raster images are made of pixels, so they lose quality when enlarged — photos are raster (JPEG, PNG, WebP). Vector images are made of mathematical paths, so they stay sharp at any size — logos, icons and illustrations should be vector (SVG, PDF, AI, EPS). Use raster for photos and vector for anything that must scale.

**Key takeaways**
- Raster images are grids of pixels; vector images are mathematical shapes
- Photos are raster; logos, icons and type should be vector
- Vectors scale to any size without losing quality
- You can trace a raster into a vector, but not invent lost detail

"Can you send it as a vector?" is a question every designer hears. Understanding raster vs vector saves you from blurry logos on banners and huge files on websites.

## Raster vs vector in one table

|  | Raster | Vector |
| --- | --- | --- |
| Made of | A grid of coloured pixels | Points, lines and curves (maths) |
| Scaling up | Gets blurry or blocky | Stays perfectly sharp |
| Best for | Photos, textures, painting | Logos, icons, type, illustrations |
| Formats | JPEG, PNG, WebP, GIF, PSD | SVG, PDF, AI, EPS |
| Editing | Paint, retouch pixels | Move points, change colours |
| File size | Grows with pixel count | Grows with complexity |

## When should I use raster?

Use raster for anything **photographic** or **painterly**: photos, digital paintings, textures, screenshots. Pixels capture subtle gradients and detail that would take millions of vector shapes. Manage quality with resolution — see [DPI vs PPI: Image Resolution Explained](/blog/dpi-vs-ppi/).

## When should I use vector?

Use vector for anything that must **scale or stay crisp**:

- **Logos** — the same file works on a business card and a billboard. See [How to Design a Logo: A Step-by-Step Guide](/blog/how-to-design-a-logo/).
- **Icons** and UI graphics.
- **Type** and lettering.
- **Print graphics** — flyers, signs, stickers.

## Can I convert between them?

- **Vector → raster:** easy. Export PNG, JPEG or WebP at the size you need.
- **Raster → vector:** possible with tracing. Falak's **Image › Image Trace (to Vector)** turns a flat logo or drawing into paths. It works best on simple, high-contrast artwork, not photos. See [How to Convert an Image to Vector (Free)](/blog/convert-image-to-vector/).

## Working with both in Falak

Falak is a raster *and* vector editor in one document: place a photo, then draw shapes and type on top with the [pen tool](/blog/pen-tool-tutorial/) — the vector layers stay sharp while the photo stays a photo. Export everything to PDF for print, or SVG for the vector parts.

Further reading: [Vector graphics (Wikipedia)](https://en.wikipedia.org/wiki/Vector_graphics).

## Frequently asked questions
### Is PNG a vector file?
No. PNG is a raster format made of pixels, even when it has a transparent background. SVG, PDF, AI and EPS are vector formats.

### Is a PDF vector or raster?
It can be either — or both. A PDF can contain vector shapes and text alongside raster images. Logos exported from a vector app as PDF stay vector.

### Why does my logo look blurry when enlarged?
It's probably a raster file (PNG or JPEG) being stretched beyond its pixel size. Use the SVG or PDF version, or recreate the logo as a vector.

### Should I design social media posts in vector or raster?
Build them with vector shapes and text so they stay editable and sharp, then export a raster file (PNG, JPEG or WebP) at the platform's size for posting.
