How to turn a photo into a line drawing SVG
High-contrast subjects on plain backgrounds trace best. Photos, soft shadows and textured backgrounds give broken or noisy lines.
One image: free Basic SVG in your browser (no upload). Advanced SVG is 1 credit; free allowances apply. Unraster traces an edge image; it does not find the edges in a colour photo.
- 01Pick a picture with one clear subject
A single object on a plain background, in even light, gives the cleanest lines. Crop tightly: textured tables, grass, fabric and soft shadows all turn into stray marks.
- 02Make a black-on-white edge image first
Unraster traces the pixels you give it and does not find outlines in a colour picture. Use a photo editor (Find Edges, Photocopy or a sketch filter) or any line-art tool to get dark lines on white, then raise the contrast until the lines are solid black. The mug above used a difference-of-Gaussians filter: blur 2.5 minus blur 5.0, then a threshold.
- 03Upload it and run Basic SVG
Choose, drop or paste the edge image (PNG, JPG or WebP up to 20 MB). Basic SVG traces it in your browser, costs nothing and the file is never uploaded.
- 04Check gaps, then download
Zoom to 400% and look for broken lines and doubled edges. Downloads are free. Keep the white background if the lines go on white; for a transparent background, subtract the white shapes from the black ones in your vector editor (see the note on filled outlines below).
What to expect from a photo-to-line-art trace
- A colour picture is not a line drawing yet
- Sent straight in, the still life above became flat colour regions (615 paths and 541 fills) with no outlines. The line look comes from the edge image you feed in, not from the trace.
- Contrast decides which lines survive
- The mug has strong edges, so every outline came through; its soft shadow left only a few ragged dashes under the saucer. Where a picture has little contrast, an edge filter draws no line and the trace has a gap. Raise contrast or redraw missing edges before tracing.
- Busy texture becomes dashes
- Wood grain, fabric and shadows survive an edge pass as short marks. Crop them out, or use a plain background, before you trace.
- Filled outlines, not pen strokes
- The SVG is made of filled shapes with some thickness, not stroke paths with an adjustable line width. Each hollow is a white shape stacked on a black one (19 white and 20 near-black paths in the mug), so deleting the white shapes fills the outlines in solid black. A pen plotter or cutter that wants single-line strokes needs a centreline tool.