PNG/JPG to SVG (vectorize)

Trace a PNG or JPG into a scalable SVG: logos, icons and drawings that stay sharp at any size.

loading PNG/JPG to SVG (vectorize)
About this tool

How to convert PNG or JPG to SVG

Converting a PNG or JPG to SVG is called vectorizing or tracing. Instead of storing a grid of pixels, the tool finds the edges and areas of colour in the picture and rewrites them as shapes and curves. The result is an SVG that stays sharp at any size, from a favicon to a billboard, and is often small for simple artwork.

It works best on flat artwork: logos, icons, simple illustrations, signatures, silhouettes and line drawings with few colours. It works poorly on photographs. A photo has millions of subtle tones, so tracing it gives a poster-like drawing, made of layers of colour, and a file that can be larger than the original. The page tells you when this happens. If you want a smooth, high-quality enlargement of a photo, vectorizing is the wrong tool; Upscale image is the right one.

Tracing runs in your browser, with the open-source ImageTracer.js library. Your picture is not uploaded, there is no account or watermark, and you can process several images and download a ZIP. For tracing, the picture is first scaled so that its longest side is at most 1000 pixels. The SVG keeps the proportions through its viewBox, so it still scales to any size, but very fine detail in a huge image can be lost.

Steps to vectorize an image

  1. Click Add files, drag your PNG, JPG, WebP, BMP, GIF or HEIC image anywhere on the page, or paste it with Ctrl+V. An example is loaded first.
  2. Pick a Style: Logo / icon (8 colours, tidy shapes), Detailed (32 colours, keeps small details), Black and white (2 colours, ideal for signatures, stamps and line art) or Posterized (16 colours, a graphic look).
  3. Adjust Colours between 2 and 64 if needed. Fewer colours means a simpler, lighter file; more colours means more fidelity and a larger file. Changing the style resets this value to that style's preset.
  4. Leave Smooth the curves on to get cleaner outlines, or turn it off to follow the pixels more literally.
  5. Keep Fill transparency with white on if your image has a transparent background, so those areas become white before tracing. Turn it off only if you want transparent areas to go into the tracing as they are.
  6. Click Vectorize, check the result with Compare before and after, and Download the SVG or Download all as ZIP. logo.png becomes logo.svg.

Examples

A company logo received as a low-resolution PNG

logo-client.png, 600 × 600, three flat colours. Style Logo / icon with Colours at 4 gives a small, clean logo-client.svg that you can resize without limit. Check edges at high zoom: rounded shapes should look smooth.

A handwritten signature

signature.jpg, 900 × 300, black ink on white paper. Style Black and white, Colours 2. The ink is traced as one shape, the paper becomes the background, and the SVG can be placed on a document at any size.

A line drawing for a cutting machine

stencil.png, 800 × 800, black lines. Black and white gives clean closed shapes that vinyl cutters and laser cutters can follow. Always test with a small cut first.

A photo, to see what happens

portrait.jpg, 3000 × 2000, with Style Detailed and Colours 64. You get a heavy, poster-like image. The page shows a warning when the SVG is much larger than the original; try fewer colours for a lighter file with a stronger graphic look.

Common errors and how to fix them

  • "The SVG came out much bigger than the picture: this looks like a photo. Try fewer colours.": the image has too many tones. Lower the colour count, or choose the Posterized style, or accept that this picture should stay a photo.
  • The result has a white box behind my logo: Fill transparency with white is on. If the destination needs transparency, edit the SVG afterwards to delete that background shape in a vector editor.
  • The edges look lumpy: the source is too small or blurry. Start from the largest version you have and keep Smooth the curves on.
  • Small details disappeared: use Detailed, or increase Colours. Remember the 1000 px working size.
  • Colours look different: tracing reduces the palette. Raise Colours to get closer to the original shades.
  • The page is slow on a big batch: tracing is calculation-heavy. Process fewer images at once.

Vectorizing: what it can and cannot do

Is this the same as converting PNG to SVG in an editor?

It is automatic tracing, similar in idea to the Image Trace feature in vector editors. It approximates the picture; it does not recover the original vector file. For a perfect logo, ask the designer for the source.

Does it work for photos?

Technically yes, but the result is a stylised drawing and the file can be large. Vectorizing is meant for artwork with flat colours.

What happens to the image size?

The tracing works on a copy limited to 1000 pixels on the longest side, and the SVG scales cleanly to any size from there.

How many colours should I use?

Two for black and white art, 4 to 8 for logos, 16 to 32 for illustrations. Add colours only while the improvement is visible.

Can I get a PNG back from the SVG?

Yes, with SVG to PNG, at any size you like.

Are my images uploaded?

No. The tracing happens in your browser.

Can I use the SVG commercially?

The SVG is a trace of your own image, so the rights are the same as the original picture. You are responsible for having the right to use it.

Report a problem