PNG to SVG Tracer

Guides Tutorials

How to Trace a Pencil Sketch into an SVG

A pencil sketch is a hard thing to trace. The lines are light gray, the paper is not white, and the graphite wobbles. The good news is that a sketch is already one color, so a black and white trace can work well if the photo is right.

A photo of a pencil sketch of a mug on gray paper next to the traced version, shown as cream lines on a dark teal block
The paper is dropped and only the pencil lines are saved

Start with the drawing, not the slider

Most bad sketch traces come from the page, not the settings.

Photograph it flat and even

  1. Lay the page on a table near a window.
  2. Hold the phone straight above the page, not at an angle.
  3. Keep your own shadow off the paper.
  4. Crop to the drawing with a small margin.

If you have a flatbed scanner, use it instead. A scan has no angle and no shadow, and this guide to scanning a drawing for tracing lists the settings to use.

Even light matters more than a high pixel count. A dark corner will fill with blotches before the pencil lines in the light part have shown up.

Trace it

  1. Open the image tracer and drop in your photo.
  2. Set the style to Black and white shapes.
  3. Raise the Threshold. Pencil is lighter than ink, so the default of 128 often finds nothing. Try 150 to 180 and watch the preview.
  4. Stop when the thin lines are complete but the paper texture has not started to show.
  5. Raise Remove small specks a few steps to clear dots from grain and dust.
  6. Download the SVG.

If your sketch is light on a dark page, such as chalk or a white gel pen on black paper, tick the option to trace light shapes on a dark background.

What you get is outlines of lines

The tracer does not follow the middle of each pencil stroke. It traces the edge of every dark shape, so a pencil line becomes a thin filled shape. That is fine for most uses, but it matters in two cases.

Cutting. A thin filled line is a fragile cut shape. For vinyl or paper, trace a bolder drawing, or thicken the lines before tracing. The SVG for Cricut page covers importing the file.

Pen plotters and engraving that follow a single line. These want one centerline per stroke. A filled shape gives them two edges. Check what your machine expects before you commit to a trace.

Fixing common problems

Broken or dotted lines. The threshold is too low for the lightest strokes. Raise it a little, or go over those lines with a darker pencil and retake the photo.

Gray paper turning into black blobs. The threshold is too high, or the light is uneven. Lower it, or retake the photo in softer light.

Smudges and fingerprints. Graphite smears. Erase them on the paper if you can. Otherwise raise Remove small specks, or crop around them.

Lumpy, shaky lines. Hand-drawn lines are shaky. Raise Smoothing for cleaner curves. If the result looks jagged, this fix for jagged traces explains what to adjust.

Hatching that turns into a gray mess. Dense shading lines close together can merge into one dark patch. Use fewer, more spaced lines, or keep the shading out of the trace.

Check it before you use it

A white preview hides problems. Place the SVG over a colored shape and look for a box behind the lines, stray dots and gaps. Then zoom in on the thinnest lines. If they vanish at the size you will print or cut, trace a bolder version.

Using the SVG

Because a trace is one color, you can recolor it in one click in Canva, Figma or Illustrator. Sketches work well as logo drafts, greeting cards and wall art. If the drawing is tattoo line art, this guide to tracing tattoo flash covers line weight and shading. The same capture rules apply to writing, which is covered in handwritten notes as SVG. If you want a stencil from a photo instead of a sketch, see how to turn a photo into a stencil.

Mistakes that cost you time

Tracing a tiny photo. A small, blurry image gives lumpy lines. Use the original photo, not a screenshot of it.

Expecting shading. A black and white trace has no gray. Shading becomes solid shapes or disappears. If you want tones, the Illustration style keeps a few colors, but graphite shading will still look flat.

Skipping a test. Cut or print a small test before the final piece.

If you make a sketch with someone else's art as the starting point, check that you have the right to use it first.

TagsSVGTracingHandwritingCricut

Related tools

Keep reading