Nimble Toolbox

Image to SVG converter

Drop a PNG, JPG, or WebP and it is traced into vector shapes, so the SVG stays sharp at any size and opens as paths in Illustrator, Inkscape, or Figma. It suits logos, icons, and line art best. A photo traces too, but as flat patches of colour.

How to use it#

  1. Drop a picture onto the box above, or click it to choose one. An iPhone HEIC photo opens too.
  2. Pick what the picture is: Logo, Line art, or Photo.
  3. A logo opens on the number of colours it has, up to 16. Change it if you like, or for line art set how dark a pixel must be to count as ink.
  4. Set the detail and smoothing, and tick "Leave it out" under Background to drop the background colour. The SVG is traced again after each change.
  5. Download the SVG, or copy its code to paste into a web page.

What tracing does, and why a logo traces best#

A PNG or JPG is a grid of coloured pixels, and enlarging it enlarges the pixels, which is why a small logo turns blurry on a banner. An SVG made by tracing, raster to vector, holds outlines instead: the picture is cut into areas of one colour, and the edge of each area is written as lines and curves. A browser or a printer draws those outlines afresh at whatever size is asked for, so the edges stay crisp at any size. It is the job Inkscape calls Trace Bitmap and Illustrator calls Image Trace.

Tracing works best on a picture that is already made of a few flat colours: a logo, an icon, a badge, a signature, or a sketch in black ink. Those come back as a handful of shapes that look like the original and are small enough to edit by hand. A logo or line art is traced at up to 3 million pixels and a photo at up to 1 million, and a small logo is enlarged before tracing, so its curves come out smooth rather than following the steps of its pixels.

Why a photo makes a large SVG#

A photo has no flat areas. Every pixel differs a little from the next, so tracing it means rounding the picture to a set number of colours and drawing an outline round every patch. With "Photo" picked and 24 colours, a phone photo becomes 28,000 shapes or more and an SVG of about 2 MB, often larger than the JPG it came from, and it looks posterised, like a screen print.

That is a fine result for a poster effect, a stencil, or a vinyl cut with a few colours. For a photo that has to look like a photo, keep it a JPG: an SVG is no sharper for a picture that never had edges. The line under the Download button gives the SVG's size and how many shapes it holds, so you can see what each setting costs before you download.

Line art for Cricut, vinyl cutters, and laser cutters#

"Line art" turns every pixel darker than the ink setting into black and leaves the rest of the picture empty, so the SVG is black shapes with no white box around them. That is the file a Cricut, a Silhouette, a vinyl cutter, or a laser cutter wants, since each shape becomes a cut and a white background would be cut out as a rectangle.

Scan or photograph the drawing in good light, flat and square on. Grey paper or a shadow across one corner can turn into ink: lower the ink setting until the shadow drops out, or raise it to catch faint pencil lines. Specks of dust go with Detail on Low.

What the SVG holds#

One path per colour, each colour as a solid fill, at the width and height of the picture you dropped. A transparent PNG keeps its transparent background, so the SVG is see-through there too. A logo on white keeps the white as a colour unless you tick "Leave it out", which drops whichever solid colour runs round the edge. Every shape of that colour goes, inside the logo too, so white lettering on a red badge becomes see-through. Where the background is not one colour, make it clear first with the background remover. Edges are solid: a soft shadow or a glow becomes a band or two of solid colour.

There is no picture hidden inside the SVG, as there is in a file that only wraps a PNG in SVG markup, and no name of this site or of the tracing library in it. It is then run through SVGO, the optimiser the SVG optimiser page uses, to write the paths more briefly. "Copy SVG code" copies the whole file, which can be pasted straight into a web page as inline SVG.

Frequently asked questions#

Which style should I pick?

#

"Logo" for anything drawn with a few solid colours, such as a logo, an icon, a flag, or a cartoon. It keeps corners sharp and opens on as many colours as the picture has, up to 16. "Line art" for black ink on a light ground, such as a signature, a sketch, or lettering, traced as black shapes with nothing behind them. "Photo" for a photograph, which opens on 24 colours and lets corners round off, since a photo has few straight edges.

How many colours should I use?

#

As many as the picture really has, which is what "Logo" opens on, up to 16: it counts the colours that cover a real share of the picture and leaves out the blended shades along their edges. Traced with more, a red circle on white gains a thin pink ring where the two meet. A photo needs 16 to 32 to be recognisable, and each extra colour adds shapes and size. Colours run from 2 to 64.

What does the ink setting do?

#

It is the brightness, as a share of white, below which a pixel counts as ink in "Line art". At 50% a mid grey is the dividing line. Raise it to keep faint pencil lines and thin strokes, and lower it to drop a grey background, paper texture, or a shadow.

What do detail and smoothing change?

#

Detail sets how small a speck is still traced: on Low, a speck about six pixels across or smaller is left out, which clears dust and JPEG blotches, and on High almost every speck stays, which suits fine print. Smoothing sets how far a curve may stray from the pixels: Low follows every corner closely and makes more points, and High draws long, loose curves with fewer points and a smaller file.

Can I convert JPG to SVG, or WebP to SVG?

#

Yes. JPG, PNG, WebP, GIF, AVIF, BMP, and an iPhone HEIC photo all open. A JPG of a logo often has faint blotches round its edges from compression, which turn into specks: set Detail to Low, or use fewer colours, to leave them out. An animated GIF has only its first frame traced.

Will the SVG open in Illustrator, Inkscape, Figma, or Cricut Design Space?

#

Yes. It is a plain SVG of filled paths, which vector editors and cutting machine programs read. Each colour is one compound path; ungroup or break it apart in your editor to move the shapes of one colour separately. With "Logo" or "Photo", each shape also has a thin edge in its own colour, which closes the hairline gaps where two colours meet. For a cut in one colour, use "Line art", whose shapes are fills alone.

Is my picture uploaded?

#

No. The picture is traced in this browser tab, and the SVG is written here too. Nothing is sent anywhere.