Photo to line art converter
This free photo to line art converter turns a picture into clean black lines you can trace, colour or print. It finds the real edges in your photo on your device, with no AI and no upload, and leaves the detail and line weight to you.
How to use it
- Drop, paste or choose a photo, or try the sample.
- Pick Outline for thin edges or Ink for bolder lines that also follow shadows.
- Raise Detail for more lines, lower it for a simpler drawing. Set the sensitivity and the line weight.
- Download the PNG on white, or on a transparent background to layer it in another app.
How a photo becomes lines
Both styles start the same way. Each pixel becomes one grey value using the luminance weights of the HDTV standard ITU-R BT.709: 0.2126 × red + 0.7152 × green + 0.0722 × blue. Green counts most because the eye is most sensitive to it, so a red jumper and a green lawn of the same brightness turn the same grey.
Outline is the Canny edge detector, published by John Canny in 1986. The grey image is blurred so film grain and skin texture do not count as edges; Detail sets the blur, from 0.8 pixels at Detail 10 to about 4 pixels at Detail 1. Then the Sobel operator measures how fast brightness changes at every pixel, each edge is thinned to the single pixel where the change peaks, and two thresholds decide what stays. At the default sensitivity, a strong edge must reach 19% of the steepest change in the picture; a weaker edge, down to 45% of that, survives only where it touches a strong one. That last step is why outlines come out as connected strokes instead of dotted fragments.
Ink is a difference of Gaussians. The photo is blurred twice, the second blur 1.6 times wider than the first, the ratio Marr and Hildreth used in 1980 to imitate how vision finds edges. Wherever the narrow blur is darker than the wide one by more than the sensitivity allows, a pixel turns black, and so does any pixel darker than 6% grey. The result lands on the dark side of each edge and fills the deepest shadows, which is how a pen drawing looks. The same family of filters, extended, is used for stylised drawings in research (XDoG, Winnemöller and colleagues, 2012).
Finally, specks smaller than 16 pixels are removed (fewer at high Detail, more at low), and Line weight thickens every line by 0 to 4 pixels.
What each setting does
Measured on the marble head shown on the home page, 974 × 1200 pixels. The share is how much of the picture ends up as ink.
| Setting | Ink on the marble head | Use it for |
|---|---|---|
| Outline, default (Detail 6, sensitivity 5) | 3.5% | A clean drawing of the main shapes |
| Outline, Detail 3 | 2.0% | Colouring pages: only the big contours |
| Outline, Detail 9 | 7.9% | Hair, fabric and texture as lines |
| Outline, sensitivity 8 | 4.5% | Faint edges in soft or flat light |
| Ink, default | 5.3% | A pen-drawing look with shadow masses |
Getting clean lines
- Start from a sharp photo with even light. A hard shadow is an edge as far as the maths knows, and it becomes a line.
- Crop to the subject first. A busy background adds lines you will only erase later.
- For a colouring page, set Detail to 2 or 3 and Line weight to 2 or 3, so a child’s crayon stays inside.
- For tracing onto paper, a transparent PNG at weight 1 is the easiest to follow, and pencil covers it.
- If the result looks noisy, lower the sensitivity before lowering Detail: sensitivity drops faint edges, Detail drops fine ones.
- Faces in Outline lose shading and can look flat. Try Ink, or the photo to pencil sketch tool for tone.
Limits worth knowing
The tool only draws what the photo contains. Two areas of the same brightness give no edge between them, whatever their colour, so a white cat on a white sofa loses its outline. Lines also follow photographic accidents: reflections, a patterned shirt, JPEG blocks in a heavily compressed image. Photos larger than 2400 pixels on the long side are scaled down to 2400 first, which keeps it quick on a phone.
For two or three flat tones instead of lines, for screen printing or spray paint, use photo to stencil. To print the lines large across several sheets, use print an image on multiple pages.
From line art to a drawing
Line art is the tracing stage of a drawing. Print it and transfer it with graphite paper, or tape it to a window and trace on top. To trace without printing, the light box on traceline.cihat.dev turns a tablet or laptop screen into a lit tracing surface. On iPhone and iPad, Traceline shows the drawing over your paper through the camera, so you trace it with your own pencil.
Related tools
Questions people ask
How do I turn a picture into a line drawing?
Load the picture here, choose Outline or Ink, and move the Detail slider until the drawing is as simple or as rich as you want. Then download the PNG.
Is there a photo to line art converter that is free and has no AI?
This one. Every line sits where the photo has an edge or a shadow, found with the Canny detector or a difference of Gaussians on your device. Nothing is generated or invented, and there is no sign-up or watermark.
Can I get line art with a transparent background?
Yes. Set the background to Transparent before downloading; only the lines are kept in the PNG.
How do I make a photo into a colouring page?
Choose Outline, set Detail to 2 or 3 and Line weight to 2 or 3, keep the background white and print the PNG. Portraits and pets with a plain background work best.
How do I turn a photo into line art in Photoshop?
The usual route there is Filter › Stylize › Find Edges, then Image › Adjustments › Threshold to make the lines black. This page does the same job without Photoshop and keeps the lines one pixel wide before you thicken them.
Is this good for tattoo stencils?
It gives a clean starting point. A stencil still needs a person to decide which lines stay, and tattooing itself is work for a trained artist.
What resolution is the result?
The same as your photo, up to 2400 pixels on the long side.
Is my photo uploaded?
No. The lines are worked out in your browser and the photo never leaves your device.
