Branding

How to Vectorize a Logo from a JPG or PNG

7 min read

To vectorize a logo you don't need to redraw it. Upload the JPG or PNG to Vectorgram, press Convert, and the same logo comes back as a vector file: an SVG, or a PDF or EPS if that's what your print shop wants.

The Glow Leaf badge three times: the PNG as generated, the same badge drawn as bare outlines dotted with their anchor points, and the vector result

The request usually arrives in an email from a printer or a sign maker: "Can you send the logo in vector?" And all you have is a picture. Maybe the designer moved on years ago. Maybe the logo came out of an image generator, which only ever gives you pixels.

Converting is the easy part. The questions start afterwards: is the result good enough, which file do you send, and why is there still a white box around the logo? This guide answers them on one example, Glow Leaf, a tea brand we made up. Its logo is a square PNG from an image generator, with a glossy sun and a green leaf.

Start with the largest, sharpest copy

Vectorgram takes PNG, JPEG, WebP and BMP files up to 50 MB. If several copies of the logo are lying around, pick the biggest and cleanest one. A version saved from a messenger or cut out of a website header has already lost detail, and the vector file can only be as good as the picture it was made from.

You don't need to prepare anything. Leave the white background alone for now: it's easier to remove from the vector file, and we'll get to that below. If your PNG is already transparent, that works too, and the transparent parts stay transparent.

Keep the default settings for the first try. Drop the file in, press Convert and open the result.

Zoom in before you trust it

At arm's length almost any conversion looks right. The differences show when you zoom in on the hardest part of the logo, which is usually a soft fade between colours or the smallest lettering. Open the result from your dashboard: the viewer there has Raster and Vector views, so you can flip between the original and the conversion on the same spot.

On Glow Leaf the hard part is the leaf: one green fading into another, with a thin yellow highlight along the vein. For comparison we also ran the PNG through Trace Bitmap in Inkscape, the free editor many people try first, set to eight colours.

The same PNG converted by Inkscape and by Vectorgram, with nothing touched up afterwards. The bottom row is the leaf up close.

In Inkscape's version the fade is gone. The leaf is a set of flat green patches with torn edges. In ours the fade is still there, the highlight is a single clean curve, and the letters have the same sharp corners as in the PNG.

Look at the numbers under the titles too. Inkscape's file has 4,871 anchor points (nodes) and weighs 202 KB. Ours has 819 and weighs 46 KB. That matters on the day someone opens the logo to change a colour or adjust a curve: a shape drawn with a few points is easy to grab and reshape, and a shape with hundreds of them is a chore.

One spot in our file didn't pass the zoom test, though: the sun. Around its highlight there are faint rings that the PNG doesn't have.

Glossy shading needs a different file

Those rings come from a limit of SVG itself. A gradient in an SVG runs one way, either along a straight line or outwards from a centre. The glow on our sun gets brighter towards the upper left and warmer towards the right at the same time, inside one shape. An SVG can only imitate that with several shapes, and the rings are where they meet.

For shading like this there is another kind of file: a PDF or EPS with mesh gradients, available on the Pro plan and above. In a mesh gradient the colour inside one shape can change in any direction, so nothing has to be pieced together. Pick PDF or EPS as the output format, set Gradients to Mesh and convert again.

The sun's highlight up close. Flat colours break it into bands, simple gradients leave faint rings, and mesh gradients match the original.

With mesh the rings are gone. One thing to know: Adobe Illustrator is the only editor that opens that mesh for editing. Other programs show the file the way it should look, but you can't reshape the mesh in them.

The second column in the picture, Flat colours, is what you get by setting Gradients to Stepped. It sounds like the obvious choice for a logo, and for this one it's the worst of the three: the sun turns into a contour map, and the file grows from 46 KB to 122 KB because every band of colour is a separate shape. Save Stepped for logos that are flat to begin with and have no fades at all.

Does your logo need mesh? Probably not. Most logos are flat: solid colours and maybe a simple fade or two. To check that case we made a second logo, Ember Owl, for a coffee roaster that doesn't exist either, and converted it both ways.

A flat logo as a plain SVG and as a PDF with mesh gradients. Even up close on the eye, we couldn't tell them apart.

The two results look the same, so for a logo like the owl the plain SVG is all you need. If you can't tell which kind yours is, drop it on our home page. The demo there adds a Mesh view to the result only when mesh would visibly change the picture.

Removing the white background

A converted logo still sits on a white square, exactly like the PNG did. On a white page you'd never notice. Glow Leaf's tea bags are brown kraft paper, and there the square has to go.

The easy way is to decide this before converting. In the settings, switch Geometry from Stacked to Flat and convert. Then open the SVG in an editor, select everything white and delete it. You don't have to click the pieces one by one: use Select > Same > Fill Color in Illustrator, Edit > Select Same > Fill Color in Inkscape, or Edit > Select all with same fill in Figma. The background disappears, and so does the white inside the O, the A and the other closed letters.

The extra setting is there because on the default file the same trick goes wrong. We found that out the hard way. We deleted the white background and the paper showed through, but the holes in the letters stayed white. Then we deleted those white bits as well, and the O in GLOW turned into a solid green disc.

Left to right: the default file on white; the background deleted, letter holes still white; all the white deleted, and the O fills in; the Flat file with all the white deleted, holes intact.

The next picture shows why. A default (Stacked) file is built like cut paper: a white sheet at the bottom, a solid green O lying on it, and a small white oval on top that only looks like a hole. Remove the oval and you see the green underneath. In a Flat file nothing lies under anything else. The O is a real ring, so deleting the white leaves a real hole.

The O in GLOW taken apart. Stacked: a solid green disc with a white oval on top. Flat: a green ring, and a matching hole in the background beneath it.

Flat isn't the default because of screens. When shapes meet edge to edge with nothing underneath, a browser can draw hair-thin light lines between colours. So for a logo that's going on a website, stay with Stacked and cut the letter holes by hand: select a letter together with its white hole and use Pathfinder > Minus Front in Illustrator, Path > Difference in Inkscape or Subtract selection in Figma. Glow Leaf has seven of those holes.

The thin white outline around the badge went too. It touched the background, so in the file the two are one white shape. If your logo relies on an outline like that, add it back as a stroke in the editor.

A last look before the file goes out

Place the logo where it's going to be used, at its real size and on its real background. We put Glow Leaf on kraft brown and the dark green lettering read well. On a black bag it would have vanished. That takes a light version of the logo, and making one is a design job no converter will do for you.

Check the smallest lettering. Our tagline is about 40 pixels tall in the PNG and came out clean. Text only a few pixels tall may not, and retyping it in the editor is usually quicker than repairing it.

Remember that the colours in the file are simply the colours of the pixels. If your brand guide names a Pantone or exact CMYK values, set them yourself in the editor.

As for which file to send: SVG suits websites and most people who ask for "vector". Send PDF or EPS when the print shop asks for one of them, or when the logo needs mesh.

Try it on your own logo

You can see how your logo converts before paying for anything. Drop it on the home page: it's a free preview, no account needed, and it shows the result as pictures, including the Mesh view where it applies.

Downloading the files takes a subscription. SVG is included in every plan, starting with Lite; PDF and EPS with mesh gradients start on Pro. A converted file stays in your dashboard for 24 hours unless you choose a longer storage time, so download it the same day.

Related guides