How-to

What Is a Vector File? SVG, AI, EPS and PDF Explained

A vector file is an image stored as shapes: points, lines and curves described by math, in place of a grid of pixels. The shapes are redrawn every time the file is opened, so a vector image stays sharp at any size, from a browser tab icon to a billboard. SVG, AI and EPS are vector file formats, and a PDF often is too.

This guide explains how vector files work, how they differ from raster files such as PNG and JPG, what each vector format is for, and how to open, check and convert them.

What Is a Vector File?

Open a vector file in a text editor and you will not find a picture. You will find instructions: start at this point, draw a curve to that point, fill the shape with pink. A design app reads those instructions and draws the artwork fresh at whatever size you ask for.

The building blocks have names you will see in every vector editor. A path is a line or the outline of a shape. An anchor point is a point the path passes through. Handles on an anchor point set how the curve bends. A fill is the color inside, and a stroke is the line along the edge.

Storing shapes in place of pixels has four practical effects:

  • It scales without losing quality. The same file prints on a pen and on a truck.
  • It stays editable. Every shape is a separate object, so you can recolor one letter or move one point years later.
  • It is usually small. A logo is a few dozen points, not millions of pixels.
  • Machines can follow it. Cutting machines, laser cutters and sign plotters trace the paths directly.
The same flower as a vector with anchor points and smooth curves, labeled SVG, and as a grid of square pixels, labeled PNG

Vector vs Raster: What Is the Difference?

A raster file, also called a bitmap, is a grid of colored pixels. PNG, JPG, GIF and WebP are raster formats. A raster image has a fixed size: enlarge it past that size and there are no extra pixels to show, so it turns soft and then blocky.

  • How the image is stored. Vector: shapes and curves. Raster: a grid of pixels.
  • Scaling. Vector: sharp at any size. Raster: sharp only up to the size it was saved at.
  • Editing. Vector: move, reshape and recolor each object. Raster: paint over pixels.
  • Best for. Vector: logos, icons, lettering, flat illustration, anything cut or printed large. Raster: photos, paintings and screenshots.
  • Common formats. Vector: SVG, AI, EPS, PDF. Raster: PNG, JPG, GIF, WebP.
A vector flower staying sharp at three sizes, above a raster flower whose pixels grow into visible blocks as it is enlarged

Neither kind is better. A photo has no clean shapes to describe, so it belongs in a raster file. A logo will be used at dozens of sizes, so it belongs in a vector file. Most real projects use both: the artwork is kept as a vector, and raster copies are exported from it when needed.

Vector File Formats: SVG, AI, EPS and PDF

Four formats cover almost every vector file you will be sent or asked for.

What is an SVG file?

SVG stands for Scalable Vector Graphics. It is an open standard maintained by the W3C, the body that looks after web standards, and it is written as plain text. Every modern browser displays SVG, and cutting-machine software such as Cricut Design Space accepts it. Use SVG for websites, icons, cut files and as a general way to pass vector artwork between apps.

What is an AI file?

AI is the native format of Adobe Illustrator. It keeps Illustrator's own features, such as layers, artboards and effects, so it is the right format while a design is still being worked on in Illustrator. AI files saved with PDF compatibility, which is the default, can be opened by many other apps, though Illustrator-only effects may not come across.

What is an EPS file?

EPS stands for Encapsulated PostScript, a format from the 1980s made for sending artwork to printers. It does not support transparency. Some print shops, sign makers and stock sites still ask for it, so treat EPS as a delivery format: work in something else, and export an EPS when someone requests one.

Is a PDF a vector file?

It can be. A PDF is a container that can hold vector shapes, raster images and text together. A PDF exported from a design app keeps the vector shapes. A PDF made by scanning a sheet of paper is only a photo inside a PDF. Printers like PDF because the layout arrives exactly as you made it.

File icons for the vector formats SVG, AI, EPS and PDF, each with a curve and anchor points, above icons for the raster formats PNG, JPG and GIF

You may also meet DXF, used by CAD and some laser and CNC software, and CDR, the format of CorelDRAW. Fonts are vector files too: TTF and OTF store each letter as an outline.

Vector Ink imports SVG, AI, EPS and PDF, plus PNG, JPG and WebP images, and exports SVG, PDF, AI, EPS, PNG and JPG. It does not read or write DXF.

SVG vs PNG: Which Should You Use?

This is the vector or raster choice in its most common form.

  • Use SVG for a logo or icon on a website, for artwork that will be resized or edited again, and for anything going to a cutting machine.
  • Use PNG where SVG is not accepted, which includes most email, social media and marketplace uploads, and when you need a fixed-size image with a transparent background.

Keep the SVG as the master file and export PNG copies from it. You can do that with the free SVG to PNG converter. For sizes, transparency and the reverse direction, see our SVG to PNG guide.

How to Tell If a File Is Really a Vector

The file extension is not proof. An SVG, AI, EPS or PDF can contain nothing but a photo placed inside it, and a "vector logo" like that is no more use than a JPG. Two quick tests:

  • Zoom in. Go to 800 percent or more. Vector edges stay sharp. Raster edges turn into squares.
  • Click the artwork in a vector editor. If you see anchor points along the edges, it is vector. If you get one rectangle around the whole thing, it is an image.

If it turns out to be a picture in a vector wrapper, it has to be traced. The image to SVG converter rebuilds shapes from pixels, and it works best on logos, line art and flat color.

How to Open a Vector File

  • SVG. Drag it into any web browser to view it. To change it, open it in a vector editor: you can edit an SVG in your browser without installing anything.
  • AI. Adobe Illustrator opens it fully. Other vector editors, Vector Ink included, can import it.
  • PDF. Any PDF reader shows it. To edit the shapes, import it into a vector editor. Vector Ink imports multi-page PDFs and can keep the text editable.

How to open an EPS file

EPS is the awkward one. Windows has no built-in viewer for it, and Preview on recent versions of macOS no longer opens EPS files. You need an app that reads PostScript: Adobe Illustrator, CorelDRAW, Inkscape, or Vector Ink in the browser. In Vector Ink, open the canvas menu, choose Import and pick the file, or drag the file onto the canvas. The artwork arrives as editable shapes that you can change and save in a friendlier format.

How to Convert to and from Vector

  • Vector to raster is easy. The app draws the shapes at the size you choose and saves the pixels. Export a PNG or JPG from your editor, or use the SVG to PNG converter.
  • Raster to vector is harder. Software has to find the edges in the pixels and rebuild them as curves, which is called tracing or vectorizing. Use the image to SVG converter, then tidy the paths.
  • Vector to vector, such as AI to SVG or SVG to EPS: open the file in an editor and export it in the other format.

Three things catch people out when they convert:

  • Fonts. Text needs its font installed on the other computer. Convert text to paths before you send a file, and the lettering cannot change. In Vector Ink that is the Text To Path button. See how to outline a font.
  • Transparency. EPS has none, so see-through areas get flattened.
  • Color. Screens use RGB and presses use CMYK. Vector Ink works in RGB, and a printer converts the file to its own inks, so bright colors can shift a little in print.

Which Vector Format Should You Send?

  • A website or an app: SVG.
  • A Cricut or another cutting machine: SVG.
  • A print shop: PDF, unless they ask for something else. Always check their file guide.
  • Someone who works in Illustrator: AI or PDF.
  • A printer or sign maker who asks for EPS: EPS.
  • Email, social media or a marketplace listing: a PNG exported from your vector file.

Vector Files: Quick Answers

Is a PNG a vector file? No. PNG is a raster format made of pixels. Putting a PNG inside an SVG or a PDF does not make it a vector.

Is SVG better than PNG? For logos, icons and anything that gets resized, yes. For photos, and for places that do not accept SVG, use PNG.

Can I turn a JPG or PNG into a vector file? Yes, by tracing it. Simple, high-contrast images such as logos trace well. Photos do not.

What program opens vector files? A vector editor, such as Vector Ink, Adobe Illustrator, Inkscape, Affinity Designer or CorelDRAW. A web browser opens SVG for viewing.

Do vector files lose quality? Not when they are resized. Quality is only fixed at the moment you export a raster copy, so export that copy large enough.

Open One and Look Inside

The fastest way to understand a vector file is to open one, click a shape and drag an anchor point. Vector Ink runs in the browser and has apps for Android, iOS and Mac.

SVG to PNG: How to Convert · What Is a Vector Image? · How to Outline a Font

Related