Vector graphics and vector files: what they are and how to use them

What are vector graphics?

Vector graphics are a type of computer graphics in which shapes are described mathematically: as point coordinates, the lines connecting them and the areas between them. To draw a rectangle, the file stores the positions of the corners; for a circle, the centre and the radius. In raster graphics (photos), on the other hand, the image is described pixel by pixel.

Put simply, vector graphics are “smart” graphics: the program knows what shape it is and can redraw it at any size. The designer doesn’t have to do the maths – the software does that work in the background.

What are the advantages of vector graphics?

Comparison of vector and raster graphics in an image enlarged by 400%
The same object in vector graphics and raster graphics, enlarged by 400%. Can you see the difference in quality?

Vector graphics have three big advantages over raster graphics:

  1. Lossless scaling. A raster image becomes blurred and “jagged” when enlarged; a vector can be enlarged without limit. A circle is a sharp-edged circle both on a business card and on the side of a house.
  2. Small file size. A raster image has to describe every pixel, a vector only the parameters of the shapes. For simple graphics (a logo, an icon, a diagram) a vector file is usually much smaller.
  3. Machines understand it. Laser cutters, vinyl cutters, embroidery machines and CNC machines work along vector lines. If you want to cut out or embroider your design, you need a vector file.

What are the disadvantages of vector graphics?

Vector graphics struggle to reproduce very detailed images such as photos, portraits or landscapes. Describing every blade of grass as mathematical shapes would be cumbersome and the file would get large. Raster graphics are suited to editing photos (for example Photoshop), while vector graphics are suited to logos, icons, illustrations and graphics for print.

What is a vector file and how do you open it?

A vector file is a file in which graphics are saved as vector shapes – usually .svg, .ai, .eps or .pdf. A file like this can be enlarged to any size without losing quality, which is why printers and sign makers ask for a logo as a vector file. The most common vector file formats and programs for opening them:

  • .svg – a universal vector file (Scalable Vector Graphics). It opens in any web browser; for editing you can use Illustrator, Affinity, Inkscape and many online tools.
  • .pdf – can contain vector graphics. A browser or PDF reader is enough for viewing; for editing you can use Illustrator, Affinity and Inkscape.
  • .ai – an Adobe Illustrator working file. It opens best in Illustrator; in most cases it can also be opened in Affinity and Inkscape.
  • .eps – an older format, but still common at printers. It opens in Illustrator, Affinity and Inkscape.
  • .cdr – a CorelDRAW working file. It opens fully in CorelDRAW; Inkscape can import some of them.

If you have an image as a .jpg, .png, .gif or .webp file, it is raster graphics – even if the image shows a logo. If a printer or sign maker asks for a “vector file”, send them an .svg, .pdf, .eps or .ai file, not a .jpg or .png.

How do you make a vector file? Draw the graphics in a vector program (for example Illustrator, Affinity or the free Inkscape) and save it in .svg, .pdf or .eps format. If you only have a .jpg or .png logo, it first has to be converted into a vector – see turning an image into vector graphics below.

What are good programs for creating vector graphics?

There are both paid and free programs for creating vector graphics:

  • Adobe Illustrator – the professional standard; paid (monthly subscription).
  • CorelDRAW – a paid program with a long history, common in the advertising and print industries.
  • Affinity – a professional and now free program that combines vector graphics, photo editing and layout.
  • Inkscape – a free open-source program whose native format is .svg.
  • ArtCraft (VectorCraft) – a new free open-source replacement for Illustrator. Promising, but still rough and not suitable for professional work – read my test in the post ArtCraft: can you already do real work with free Adobe alternatives?

There are also a number of online vector graphics programs that work right in the browser.

Editing vector graphics in Adobe Illustrator
Editing vector graphics in Adobe Illustrator

When should you definitely use vector graphics?

A logo should always be drawn as a vector. A logo is used in many places – from a business card to a sticker on a car or a banner on the side of a building – and a logo drawn as a vector can be enlarged and reduced without losing quality.

It’s good practice to keep several versions of a logo:

  • a vector file (.svg, .pdf or .ai) – for the printer, the sign maker and large-format printing;
  • a .png with a transparent background for everyday use (documents, presentations, social media). Save it with plenty to spare, for example 4000 px on the long side – a small file (500 px) won’t be enough for print later.

How do you turn an image into vector graphics?

A raster image can be turned into a vector automatically or by hand.

In automatic conversion the program looks for areas in the image and traces them as vectors. The result is usually stylised and depends a lot on the quality of the original image. In Adobe Illustrator it works like this:

  1. Place the image on the artboard and select it with the Selection tool (V).
  2. Click the Image Trace button in the Properties panel and choose a suitable preset (for example a black and white logo or a colour image). You’ll find more detailed settings under Window → Image Trace.
  3. If you want to remove the white background, tick Ignore White in the Image Trace advanced settings (Advanced).
  4. When you’re happy with the result, click Expand – the image is now ordinary vector shapes that you can edit further.

In Inkscape the same function is under Path → Trace Bitmap; in CorelDRAW it’s called PowerTRACE.

A portrait photo converted into vector graphics
A portrait photo converted into vector graphics with Adobe Illustrator’s Image Trace function

Tracing by hand (for example with the Pen tool) gives a cleaner and more accurate result, but takes more time and a good knowledge of the program. For logos it is usually the better choice.

Frequently asked questions

Is a PNG or JPG a vector file?

No. PNG, JPG, GIF and WEBP are raster files – the image is made of pixels and becomes blurred when enlarged. Even if the file contains a logo, its name or extension doesn’t make it a vector. Vector files include .svg, .ai, .eps and .pdf with vector graphics.

How do I get a vector file of a logo?

First ask the designer or the company that made the logo – there is often a vector file. If not, a .png or .jpg logo can be converted into a vector with Illustrator’s Image Trace or Inkscape’s Trace Bitmap. For a simple logo automatic conversion works well; for a more complex one it’s better to trace the logo by hand.

What can I use to open a vector file for free?

.svg and .pdf open in any web browser. For editing, the free Inkscape and Affinity are suitable – they also open .ai and .eps files (with more complex files, something may get lost).

Which vector file does a printer want?

Usually a .pdf (print quality, with fonts converted to outlines or embedded), .ai or .eps will do. Always check with the printer – some have their own requirements for the colour space (CMYK) and bleed.

Where can you learn vector graphics?

On KERA courses you learn vector graphics with the help of a trainer, through practical tasks:

All the courses are in Estonian and suitable for beginners – no previous experience with vector graphics is needed. You’ll find the dates in the training calendar.