How to Vectorize a Sketch or Line Drawing
6 min read
A drawing on paper has two things in it: the marks you made, and the paper you made them on. Everything that goes wrong when vectorizing a sketch comes from the tracer not being able to tell those apart — the grain of the paper, the shadow in the fold, the slightly grey patch where an eraser went through.
Fix the separation before converting and the trace is straightforward. This guide is mostly about that preparation, and about how much smoothing to apply before a hand-drawn line stops looking hand-drawn.
Scan rather than photograph, and raise the contrast
A flatbed scan at 300 dpi or more gives you even lighting, no perspective distortion and no shadow. A phone photograph gives you all three, plus a gradient across the page from whatever light you were standing under. If a photograph is all you have, at least shoot it flat under diffuse light and correct the perspective afterwards.
Then push the contrast until the marks are unambiguously darker than the paper. In practice this means a levels adjustment where the white point comes down to just above the brightest paper tone and the black point comes up to just below the darkest ink. Faint pencil that is only slightly darker than the page is the single biggest cause of speckled traces.
If the drawing is pure line art, threshold it to black and white outright. You lose the tonal subtlety, which for a line drawing you were not using anyway, and you gain a source with no ambiguity in it at all.
Understand what the trace is actually finding
The engine finds regions of similar colour and draws their boundaries. For a pencil line, the region is the dark stroke itself, so the output is the outline of the stroke — a long thin closed shape that follows both sides of your line. That is what you want for printing, filling and cutting.
It is not a centreline. If you need a single-stroke path — for a pen plotter, for engraving, or for a stroke you intend to restyle with different weights — that is a different operation called centreline tracing, and the usual route is Inkscape's centreline tracing mode after you have a clean raster.
Smooth until the jitter goes, and then stop
Scanning introduces a fine tremor along every edge: the sampling grid is not aligned to your line, so the traced boundary steps in and out by a fraction of a pixel. A little smoothing removes that entirely and the line reads as intended.
Too much and the drawing stops being yours. The small irregularities in a hand-drawn curve are what make it look hand-drawn, and a maximum-smoothed sketch has the slightly dead quality of clip art. On Pro and above, the smoothing control is a four-step scale; Strong is the default and keeps genuine corners sharp, and Maximum rounds everything including the corners you meant.
Erase the page before you convert, not after
Every speck of dust, every torn edge, every ghost of an erased construction line is a shape in the output. Deleting fifty stray specks in a vector editor is tedious; painting them out with a white brush in the raster takes seconds and is much more reliable.
Pay particular attention to the edges of the scan. Paper rarely sits perfectly flat, so the boundary of the sheet often traces as a long thin shadow shape that surrounds everything else. Crop inside the paper edge and the problem disappears.
Step by step
- 01
Scan flat at 300 dpi or higher
Use a flatbed if you have one. A photograph brings perspective distortion and uneven light, both of which the tracer will faithfully reproduce.
- 02
Raise the contrast hard
Adjust levels until the marks are unambiguously darker than the paper. For pure line art, threshold to black and white.
- 03
Clean the page
Paint out dust, erased construction lines and the shadow at the paper's edge. Each one becomes a shape otherwise.
- 04
Convert to SVG
Upload the cleaned scan and download the result.
- 05
Tune the smoothing if your plan allows it
On Pro and above, raise smoothing until the scanner's jitter disappears — and no further, or the line stops looking hand-drawn.
Common problems
- The result is covered in tiny speckles
- Paper grain traced as detail. Raise the contrast of the scan so the paper is clean white, or threshold the image to pure black and white before converting.
- Faint pencil lines vanished entirely
- They were too close in tone to the paper for the tracer to separate. Darken them with a curves adjustment before converting — or, if they were construction lines, that is the right outcome.
- There is a large shape surrounding the whole drawing
- The edge of the paper, or the shadow of a non-flat page. Crop inside the sheet before converting.
- The drawing lost its character and looks like clip art
- Smoothing is too high. On Pro and above, step it down — the small irregularities in a hand-drawn line are the point, not noise.
Frequently asked questions
- What resolution should I scan a sketch at?
- 300 dpi is a sensible floor and 600 dpi is comfortable for fine pencil work. Beyond that you are mostly scanning paper texture, which is the thing you are trying to get rid of.
- Can I vectorize a photo of a drawing taken on my phone?
- Yes, but correct it first: flatten the perspective, even out the lighting, and raise the contrast. A phone photo has a brightness gradient across the page that the tracer reads as a real tonal region.
- Will I get a single-stroke path I can restyle?
- No — the output is the outline of your stroke, a closed shape following both sides of the line. That is right for printing, filling and cutting. For a single centreline, use Inkscape's centreline tracing on the cleaned raster instead.
- Does the paper colour matter?
- Only in that it has to be clearly lighter than the marks. Cream or toned paper is fine; what causes trouble is a source where the darkest paper is as dark as the faintest pencil.
Related guides
- How to Vectorize Handwriting and Signatures — Convert a signature, note or archival letter into clean scalable line art that keeps its character.
- How to Vectorize a Tattoo Design — Turn a drawn or scanned tattoo design into clean scalable line work for stencils and portfolios.
- How to Vectorize for Laser Cutting and CNC — Produce cut and engrave paths a laser can follow: single contours, no doubled lines, no hidden gaps.