Drop an image here
or click to choose · or paste (Ctrl/Cmd + V)
processed in your browser · never uploaded
Drop or click to replace
Convert a photo or illustration into line art (black lines on white) right in your browser. It uses the classic pencil-sketch color-dodge method: (1) convert to grayscale, (2) invert the tones, (3) Gaussian blur to smear them, and (4) color-dodge the original grayscale with the inverted blur, leaving only the contours as dark lines. Where Canny edge detection produces a technical white-on-black edge map, this tool gives a natural drawing-like line art (black on white), as if sketched on paper with a pencil. It's handy for roughing out AI illustrations, making coloring-book base lines, previewing a ControlNet lineart preprocessor, or preparing tracing material. There are three controls. Detail is the blur amount — raise it for finer, thinner lines, lower it for thicker, softer ones. Line strength is a gamma curve — raise it to make lines darker and crisper, lower it for paler lines. Threshold at 0 keeps the soft pencil-sketch tones; raising it binarizes the image at that brightness into solid black-and-white lines (good for coloring or tracing). Tick "White lines on black" to invert, producing the white-line map a Stable Diffusion ControlNet (lineart preprocessor) expects. The output matches the source pixel size (very large images are processed at up to 2048px on the long side to stay responsive) and saves as a PNG. All computation happens in your browser — the image is never sent to any server or API.
How to use
- Load an image by dropping, choosing, or pasting it (nothing is uploaded).
- Drag detail, line strength, and threshold until you get the line art you want.
- Save the black-on-white line art as a PNG (tick "White lines on black" to invert).
FAQ
Is my image uploaded anywhere?
No. Loading, line-art conversion, and PNG export all happen inside your browser. The image is never sent to any server or API — it all stays on your device.
How is this different from Canny edge detection?
Canny produces a technical white-on-black edge map. This tool uses the color-dodge method to make a natural, drawing-like line art (black on white), as if sketched with a pencil. Use this when you want line art as artwork — coloring, tracing, roughing out — and use the Canny Edge Detector when you need an accurate edge map for ControlNet canny.
How do I get crisp solid lines?
Raise the threshold. At 0 you get soft pencil-sketch tones; raising it binarizes the image at that brightness into solid black-and-white lines, which suits coloring pages and tracing. If lines are too thick or thin, adjust detail; if too pale or dark, adjust line strength.
Can I use this for ControlNet lineart?
Yes. Tick "White lines on black" to invert, and you get the white-line map a ControlNet lineart preprocessor expects. On the ControlNet side, set the preprocessor to none and feed this map directly.