FLXCode Image to SVG Converter

FLXCode apps

Appearance

Image to SVG Converter

Turn almost any picture into an SVG, and tune how much detail the SVG keeps. Nothing is uploaded.

or drop it here, or paste with Ctrl+V

PNG, JPG, WebP, GIF, BMP or AVIF. It never leaves this device.

Tracing turns areas of one color into shapes. It is not a real vector drawing of a photo. Logos and flat art with few colors work best, and photos become a posterized look.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. Choose an image: PNG, JPG, WebP, GIF, BMP or AVIF. A GIF uses its first frame.
  2. Pick the preset closest to your picture. Illustration is the middle ground.
  3. Move Colors, Smoothing and Detail while you watch the preview and the file size.
  4. Download the SVG or copy its code.

What kind of image works

Tracing suits pictures made of areas: logos, icons, clip art, cartoons, line drawings, maps, charts and signatures. It struggles with photos, soft shadows and fine texture, because there are no clean areas to outline.

This is not the same as saving a picture inside an SVG file. Some converters wrap your pixels in an SVG tag, and the file is still a bitmap. This tool builds real paths, so you can recolor shapes and scale without blur.

Worked examples

These pictures are made in code with known shapes, and traced by the same engine as the tool above, when this page was built. The numbers are what the tool gives you.

A 80 x 60 px picture: a 20 x 20 black square and six black 4 x 4 dots ("dust") on white. Colors set to 2, smoothing 0. Only Detail changes:

DetailShapesHolesSVG size
121263 bytes
221263 bytes
321263 bytes
487559 bytes
587559 bytes

At Detail 1 to 3 the dust is dropped as specks: the white background and the black square, 2 shapes and 1 hole (the square cut out of the white). From Detail 4 each dot is kept. Now there are 8 shapes (the background, the square and 6 dots) and 7 holes (the square and the 6 dots, cut out of the white). The file grows from 263 bytes to 559 bytes.

  • Detail 1
  • Detail 5

Detail also changes how closely curves follow the pixels. The 100 x 64 px blue fade at 8 colors has no curves, but the number format still changes:

DetailDecimals writtenSVG size
11787 bytes
31906 bytes
52906 bytes

Which preset for which picture

PictureStart withThen
Company logo, icon, stampLogoColors = number of colors in it
Cartoon, clip art, chartIllustrationRaise Colors until gradients look right
Photo, paintingPhoto-ishExpect a poster look; lower Colors for a smaller file
Pencil or ink drawingLogoColors 2, Smoothing 1

Detail, step by step

After the colors are chosen, the tool outlines every area. Detail then controls two things. It sets how small an area may be before it is thrown away, and how closely the curves must follow the pixel edges. High detail keeps tiny specks and tight curves. Low detail merges small things and rounds corners, and the file gets much smaller.

The best way to learn the setting is to move it. Watch the shape count and the KB figure under the preview change. If the file is far bigger than your original picture, lower Detail first, then Colors.

Numbers this uses

  • Detail 1 to 5: smallest kept area 48, 24, 10, 4, 2 edge points; curve error 3, 2, 1, 0.5, 0.25 px; coordinates written with 1, 1, 1, 2, 2 decimals.
  • Longer side traced at 1000 px at most; bigger images are shrunk first. The SVG still carries the original width and height if you leave the box ticked.
  • Up to 64 colors. Colors closer than 64 to 20 (red, green and blue differences added) are treated as one.
  • Pixels with alpha under 128 are empty; the rest are solid. Smoothing keeps a pixel when a blur moves it by more than 40.
  • Seam cover: 0.5 px stroke in the shape's own color. Regrouping uses 3 averaging rounds, or none when 98% of pixels are within 24 of a chosen color.
  • Files: up to 100 MB or 50 megapixels at opening (the limits of this site's image tools). HEIC is not read here.
  • Tracer: imagetracerjs 1.2.6 by András Jankovics, public domain (Unlicense). We use its color grouping and shape finding and write the SVG ourselves.

Privacy

The picture is traced in your browser and is not uploaded or stored. The tool counts events without cookies, such as "SVG saved", and never a file name, size or setting (details). Licences: Open source used on this site.

FAQ

How do I convert an image to SVG?

Choose the image, pick a preset, and adjust Colors, Smoothing and Detail while the preview updates. Download the SVG when it looks right. The conversion is a trace, which turns areas of color into shapes.

Which image formats can I use?

PNG, JPG, WebP, GIF, BMP and AVIF. A GIF is read as its first frame. HEIC photos from an iPhone are not read here, so convert them to JPG first with our HEIC to JPG page.

What is the difference between tracing and embedding?

Embedding puts your original pixels inside an SVG tag, so the file is still a bitmap and blurs when enlarged. Tracing builds paths from color areas. This tool traces. The output contains no image data.

What does Detail change?

It changes the smallest area that is kept, how tightly the curves follow the original edges, and how many decimals the numbers have. Detail 1 gives a small, loose file. Detail 5 keeps specks and gives a large, precise one.

How big can the image be?

Up to 100 MB or 50 megapixels to open it. For tracing it is scaled so the longer side is 1000 px. The SVG is vector, so it can be shown at any size anyway.

Can I edit the result in Inkscape, Illustrator or Figma?

Yes. Each color is one path made of lines and curves, with holes cut out. You can recolor it, ungroup it, delete the background shape or merge shapes in any vector editor.

Is it free, and does it need an account?

It is free and needs no account. It runs in your browser with a small tracing library from this site, and your picture is not uploaded. Only counts such as "SVG saved" are recorded, with no cookies.

Will it work as well as AI vectorizers?

On logos and flat art, close. On photos and soft shading, no: tools built on trained models can guess shapes better. The trade here is that nothing leaves your device and there is no limit on how many you trace.

More from FLXCode

Share Image to SVG Converter