Skip to content
Jellykit

Photo to Pencil Sketch

Turn a photo into a pencil-drawing look with dark outlines on white paper, with control over how wide the pencil strokes are.

  • Runs on your device
  • Works in the background
Loading tool

About Photo to Pencil Sketch

Turn a portrait, a pet or a building into something that looks drawn by hand. The tool uses the classic digital sketch recipe: a grayscale copy of the photo is combined with a blurred negative of itself in a colour-dodge blend, which washes flat areas out to white and leaves the edges as soft gray pencil lines.

Pencil width sets how broad the lines are: small values give fine, light strokes, large values bold, shaded ones. Photos with clear outlines and good contrast give the best drawings.

How it works

  1. The photo is converted to grayscale with the Rec. 601 brightness weights.
  2. A negative of that grayscale copy is blurred with a Gaussian of the pencil width.
  3. The two are combined with a colour-dodge blend: gray ÷ (1 − blurred negative). Where nothing changes the result is white; near edges it turns gray. Transparency is kept.

Questions

Why did large dark areas turn white?

The colour-dodge blend responds to change, not to darkness, so any flat area, light or dark, becomes paper white. Only edges and texture become lines. That is what makes it look like a sketch rather than a gray photo.

How do I get darker lines?

Raise the pencil width for broader, darker shading around edges. You can also increase the contrast of the photo first, or run the result through the black and white threshold tool for ink-like lines.

Is there a size limit?

Each file can be up to 200 MB and up to 40 megapixels (about 7,700 × 5,200), or less on browsers whose canvas is smaller, such as Safari on iPhone at about 16.7 megapixels. Larger pictures are refused with a message before any work starts.

Are my images uploaded?

No. The image is decoded, changed and saved by your browser, in a background worker on your own device. Nothing is sent anywhere, and closing the tab discards it.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.