Tutorials

How to Turn a Hand Drawing into an SVG

ToSVG Team
7 min read

To turn a hand drawing into an SVG, capture the drawing as a sharp, evenly lit image, boost the contrast so the lines are dark and the paper is white, then trace it with an image-to-SVG converter in black-and-white mode. The result is smooth, scalable line art you can resize, recolor, cut or animate. Most of the quality comes from the capture and cleanup steps, so this guide spends as much time on those as on the conversion itself.

  • Draw with dark, solid lines: a black felt-tip or ink pen traces far better than pencil.
  • Scan at 300–600 DPI, or photograph in soft daylight with the phone held parallel to the paper.
  • Clean up first: crop, straighten, and push the paper to pure white.
  • Convert in black-and-white mode with curves (spline) and a speckle filter for smooth line art.

Prepare the Drawing for SVG Conversion

The best drawings for SVG conversion have bold, continuous, high-contrast lines on clean white paper. A tracer separates "ink" from "paper" by brightness, so anything that blurs that boundary, such as light pencil, smudges, paper texture or shadows, ends up as ragged edges or stray specks in the vector.

If you can, ink over your sketch before capturing it:

  • Use a felt-tip or fineliner in black. Line widths of roughly 0.5 mm and up survive tracing well; very fine hairlines may break up.
  • Close your shapes if you plan to fill them with color later. A tiny gap lets the fill leak.
  • Erase pencil guidelines after the ink dries, or they'll show up as faint gray marks.
  • Use smooth, bright white paper. Textured watercolor paper creates noise.

Pencil and charcoal drawings can still be converted, but expect a stylized, more graphic result. Soft shading doesn't translate into clean vector shapes; our explainer on raster vs vector graphics explains why gradual tones are hard for vectors.

Scanning vs Photographing Your Drawing

A flatbed scanner gives the most consistent results, but a modern phone camera is good enough for most line art if you control the light. Here's how they compare:

Flatbed scannerPhone photo
LightingEven, no shadowsDepends on your setup
DistortionNonePossible perspective skew
Recommended setting300 DPI for bold art, 600 DPI for fine detailHighest resolution, no zoom, no flash
Best forDetailed line work, small drawingsQuick captures, large pieces

Scanning settings

Scan in grayscale or color rather than the scanner's built-in black-and-white mode, which often applies a crude threshold you can't undo. Choose 300 DPI for bold drawings and 600 DPI for fine pen work. Save as PNG or TIFF to avoid JPEG compression artifacts around the lines.

Photographing with a phone

Place the drawing near a window with indirect daylight, turn off the flash, and hold the phone directly above the paper so the edges look rectangular. Shadows from your hand or phone are the most common problem, so step to the side if needed. Many phone camera apps and free scanner apps include a document mode that flattens perspective and whitens the paper, which is a useful first pass.

Resolution matters more than people expect. A drawing that fills only a small part of a photo might end up just a few hundred pixels across after cropping, which isn't enough for smooth curves. See how image resolution affects SVG output for more on this.

Clean Up the Image Before Tracing

Cleanup means making the lines darker, the paper whiter and the frame tighter. You can do this in any photo editor, including the one on your phone. Work through these steps:

  1. Crop to the drawing, leaving a small margin. Remove the edge of the paper, the table and any fingers.
  2. Straighten or rotate so the drawing sits the right way up.
  3. Convert to grayscale to remove color casts from indoor lighting.
  4. Raise contrast with Levels or Curves: drag the white point in until the paper turns pure white, then the black point in until the lines are solid black.
  5. Erase leftovers such as smudges, eraser crumbs or notes in the margin with a white brush.
  6. Export as PNG at full resolution.

ToSVG's built-in editor handles cropping, rotating, flipping and resizing just before conversion, so you can skip a separate editor if your capture already has good contrast. The help article on preparing images before SVG conversion walks through those tools.

How to Convert a Hand Drawing to SVG

With a clean, high-contrast image, the conversion takes less than a minute. Using ToSVG's free image to SVG converter, which needs no signup and adds no watermark:

  1. Upload your PNG or JPG (up to 10 MB). If your phone saved the photo as JPG, that's fine; the JPG to SVG converter works the same way.
  2. Select black-and-white mode. This treats the drawing as ink on paper and produces a single color of shapes, which is what you want for line art.
  3. Choose spline (curve) path mode. Curves give hand-drawn lines a smooth, natural look. Polygon mode produces straight segments that suit geometric or pixel-style art.
  4. Raise the speckle filter until paper grain and dust disappear. Start in the low-to-middle range of the 0–20 scale and increase only until stray dots are gone, so you don't lose small intentional marks like dots on an "i".
  5. Adjust the corner threshold. A higher value keeps more curves smooth; a lower value keeps sharp corners crisp. Hand lettering usually looks best with smoother settings.
  6. Download the SVG and zoom in to check line edges and tiny details.

Colored drawings

For a drawing colored with markers or flat paint, use color mode and set color precision low, matching the number of distinct colors. Watercolor and colored pencil have too many subtle tones to trace cleanly; a common approach is to trace the ink outlines in black and white, then fill the shapes with flat color in a vector editor.

What You Can Do with Hand-Drawn SVG Line Art

Once your drawing is a vector, it scales to any size and can be edited like any other graphic. Popular uses include:

  • Logos and branding with a personal, hand-made feel.
  • Cutting and engraving projects. Line art traced as filled shapes cuts cleanly on vinyl cutters and imports into most laser cutting software.
  • Web illustrations that stay sharp on high-density screens and can be recolored with CSS.
  • Animation, such as having a sketch appear on scroll, since SVG paths can be styled and animated with CSS.
  • Print at any size, from stickers to posters, without pixelation.

Note that a tracer outputs filled shapes that follow the outline of each pen stroke, not single centerlines. That's ideal for printing, cutting and display. If you need a single-line path for a pen plotter or line-drawing animation, a vector editor with centerline tracing, such as Inkscape, is the better tool for that step.

Frequently Asked Questions

Can I convert a pencil drawing to SVG?

Yes, but darken it first. Raise the contrast until the pencil lines are near-black and the paper is white, then trace in black-and-white mode. Soft shading will be simplified or dropped.

What resolution should I scan my drawing at?

Use 300 DPI for bold drawings and 600 DPI for fine detailed line work. Higher settings mostly add file size without improving the trace.

Why does my traced drawing have little dots everywhere?

Paper texture, dust or compression noise is being traced as shapes. Increase the speckle filter and whiten the paper more aggressively before converting.

Can I make a hand drawing into an SVG on my phone?

Yes. Photograph it in good daylight, crop and boost contrast in your phone's photo editor, then upload it to an online converter from your mobile browser.

Turn your sketchbook page into crisp vector line art with the free ToSVG image to SVG converter.