Tutorials

How to Convert a Photo to SVG (and What to Expect)

ToSVG Team
8 min read

You can convert a photo to SVG, but the result is not a photo-real vector. Tracing turns the picture into stacked, flat-colored shapes, so you get a posterized, illustrated look rather than every soft shade of the original. This guide explains what to expect, which photos trace well, and how to set up a photo to SVG conversion so the output is clean and a sensible size.

  • Expect posterization: a traced photo is made of layered color shapes, not smooth continuous tone.
  • Choose the photo carefully: high contrast and a simple subject work best; soft gradients and busy scenes do not.
  • More colors means a bigger file: raise color precision only as far as the image needs.
  • Black-and-white mode is the most reliable way to get a silhouette or cut file from a portrait.
  • Need true photo quality? Keep the photo as a WebP or JPG instead.

What Happens When You Convert a Photo to SVG

A photo is a grid of pixels in millions of slightly different colors, while SVG describes shapes with one fill each. A tracer groups neighboring pixels of similar color into regions and draws an outline around each one.

The consequence is that smooth transitions become steps. A cheek that fades from pink to shadow turns into a few bands of flat color, and a sky gradient becomes visible stripes. On the right photo this looks like a screen print or paper-cut illustration, which is a legitimate style. On the wrong photo it looks blotchy.

Our help article on photo-to-SVG limitations and expectations covers the same ground, and raster vs vector graphics explains why pixels and shapes behave so differently.

Which photos convert well

Photos with strong contrast, clear edges and a simple subject convert best, because the tracer can find clean boundaries between regions.

Photo typeResultWhy
Portrait against a plain backgroundGood as a silhouette or few-color posterStrong outline, few regions
Single object on a clean backdropGoodDistinct edges, limited colors
Subject against a bright skyGood in black-and-whiteHigh contrast
Landscape with foliage or waterOften messyThousands of tiny regions
Crowded street or party scenePoorNo clear subject
Soft portrait with smooth skinBlotchy in color modeGradients turn into bands
Dark or low-light photoPoorShadows merge, noise becomes specks

If you are unsure, convert a small crop of the area you care about first. It takes seconds and tells you more than guessing.

Prepare the Photo Before You Convert It

Preparation changes the result more than any slider, so spend a minute on it. The goal is a photo with a clear subject, strong contrast and no distractions.

  1. Crop to the subject. Remove empty margins and clutter so the detail goes where you want it.
  2. Raise the contrast in a photo app if the subject and background are close in tone.
  3. Resize sensibly. A huge photo produces a lot of tiny regions; a tiny one lacks edge detail. Around 1,000 to 2,000 pixels on the long side is a reasonable place to start.
  4. Rotate if the horizon or subject is tilted.
  5. Simplify the background when you can. A plain wall behind a portrait traces far better than a bookshelf.

ToSVG has a built-in editor to crop, rotate, flip and resize before conversion, so those steps need no separate app. Contrast changes do need another tool. See preparing images before SVG conversion for details. Uploads can be up to 10 MB in PNG, JPG, WebP, GIF, BMP or TIFF.

Settings Walkthrough and the File-Size Trade-Off

For a photo, begin in color mode with a modest color precision, a moderate speckle filter and spline paths, then change one setting at a time. These are starting points, not guaranteed results, because every photo behaves differently.

Color or black-and-white

Color mode keeps colors as flat fills. Black-and-white mode reduces the photo to two tones, which suits silhouettes and cut files and is much easier to get right. If you are undecided, convert once in each mode and compare.

Color precision

Color precision controls how many distinct colors are kept; the API accepts 1 to 10. Lower values give bold, poster-like images and small files. Higher values keep more tonal detail but add many more shapes. Start in the lower-middle range and raise it one step at a time until important areas, such as faces, stop looking like flat blobs.

Speckle filter

The speckle filter removes tiny specks and noise. Photos, especially compressed JPGs, contain fine grain that would otherwise become hundreds of small shapes. Raise it until stray dots are gone, but stop before eyes or highlights vanish.

Corner threshold and path mode

A low corner threshold keeps corners sharper and a high one rounds them. People and natural subjects usually look better rounder, so try a higher value; for architecture or hard-edged objects, go lower. Spline mode fits smooth curves and is the usual choice for photos. Polygon mode joins points with straight segments for an intentional faceted, low-poly look.

Why more colors means a bigger file

Every extra color adds shapes, and each shape adds path data, so a high-precision conversion can end up much larger than the JPG it came from. Treat file size as a budget:

  • Start low on color precision and add colors only where the image visibly needs them.
  • Raise the speckle filter to drop tiny regions that barely affect the look.
  • Crop and resize first, since fewer pixels usually means fewer regions.
  • Run the result through the SVG optimizer to shrink the file.

Black-and-White Photo to SVG for Silhouettes and Cut Files

Black-and-white mode is the most dependable way to turn a photo into a usable SVG for cutting machines, stencils, stamps and laser projects. It splits the image into dark and light regions and gives you a single-color shape with a clean outline.

Portraits work well as silhouettes. Choose a profile or a subject against a bright, plain background so the head and shoulders separate cleanly.

  1. Crop to the subject and increase contrast in a photo app.
  2. Upload it to the ToSVG converter and choose black-and-white mode.
  3. Use spline mode and raise the speckle filter until stray dots disappear.
  4. Convert, then look for floating islands and thin bridges that would be fragile when cut.

If the result is headed for a cutting machine, how to make SVG files for Cricut covers the next steps.

Check the Result at Zoom, and When to Skip SVG

Open the downloaded SVG in a browser, zoom well past 100 percent and compare it with the original. What looks fine as a thumbnail can hide problems.

  • Focal points: are eyes, mouth and edges still recognizable?
  • Banding: stripes in skies or skin suggest raising color precision, or accepting the poster look.
  • Noise: scattered tiny shapes mean the speckle filter should go up.
  • Missing detail: pale highlights can vanish if settings are too aggressive.
  • File size: compare it with your original.

Two or three runs is normal. If you need the photo to look like a photo, do not convert it at all: SVG is the wrong container for continuous tone. Keep it as a WebP or JPG for websites (our SVG vs JPG comparison explains where each wins), or PNG when you need transparency. Embedding a photo inside an SVG keeps it a raster with no vector benefit. A common pairing is a traced SVG for a graphic and a normal photo for imagery on the same page. See when not to use SVG for more cases.

Frequently Asked Questions

Can you convert a photo to SVG?

Yes. The photo is traced into flat-colored vector shapes, so the result looks posterized or illustrated rather than photographic.

Will my photo look the same as an SVG?

No. Smooth gradients and fine texture become steps and simplified regions. High-contrast subjects keep their character best.

Why is my photo SVG bigger than the JPG?

Each color region becomes a path, and photos contain a lot of them. Lower the color precision, raise the speckle filter and run the file through the optimizer.

What is the best setting for a portrait?

For a silhouette, use black-and-white mode with spline paths and a raised speckle filter. For color, start with a low-to-moderate color precision and increase gradually.

Is it free to convert a photo to SVG?

With ToSVG, yes. There is no signup and no watermark, and files up to 10 MB are accepted.

Ready to see your photo as a vector? Upload it to the free ToSVG converter and try black-and-white and color mode side by side.