Photo to Pencil Sketch

Turn a photo into grey pencil lines on white paper. The photo is changed in this browser tab and never uploaded.

How it works

The photo is made grey, and a blurred negative of that grey is made beside it.

The two are combined with a colour dodge, which divides the grey by the inverse of the blurred negative. Where nothing changes, they cancel out to white paper; along edges the blur lags behind and leaves a grey stroke.

The blur radius is a share of the photo's long side, so the preview shows the same strokes as the full-size download, which is made in a background worker.

How to use it

  1. 1 Choose a photo, drop it on the file box, or paste one with Ctrl+V.
  2. 2 Pick Pencil, Soft shading or Bold lines. Open Fine-tune to make the lines darker or lighter.
  3. 3 Press Show original to compare, then press Download.

Good to know

  • Portraits and buildings in good light work best. A dim, flat photo has few edges and comes out faint.
  • If the sketch is too pale, pick Bold lines, or raise Line darkness in Fine-tune.
  • For clean black lines instead of pencil shading, try Edge Detection with Outlines on white.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

The four-step recipe that turns a photo into a pencil sketch

The pencil-sketch effect in photo editors is not a drawing program. It is four plain image steps that happen to leave lines where a person would draw them. First the photo is made grey. Then a copy is inverted, so light becomes dark. Then that negative is blurred. Last, the grey photo and the blurred negative are combined with a blend mode called colour dodge.

Colour dodge divides one picture by the inverse of the other: the result is grey times 255, divided by 255 minus the blurred negative. In a flat area the blurred negative of a grey of 150 is still 105, so the sum is 150 times 255, divided by 150, which is 255: white paper. Every flat area cancels out to white this way, whatever its shade. At an edge the blur has mixed in the neighbours. Take a dark pixel of 60 next to a bright area: its blurred negative is lower than 195, say 150, so the result is 60 times 255 divided by 105, which is 146. That pixel turns grey, and a line of such pixels is a pencil stroke.

The blur decides how wide the strokes are. Pencil uses a radius of 0.6% of the long side, which is 24 pixels on a 4,000 pixel photo and about 5 on the 800 pixel preview, so the preview and the download have strokes of the same width relative to the picture. Soft shading uses 1.5%, which spreads the strokes into broad soft shading. Bold lines keeps the Pencil radius and darkens the result with a power curve: a stroke of 146 becomes about 63, while white paper stays white.

The recipe suits photos with clear shapes and good light: faces, buildings, pets, and objects against a plain background. It also suits illustrations, where it brings out every outline. It is weaker on dim or low-contrast photos, which have few strong edges and come out pale, and on busy textures such as gravel or foliage, which turn into a scribble of fine lines.

The limits: the result is grey, and it is an effect, not a real drawing. It does not simplify shapes or choose which lines matter the way an artist would. The download keeps JPEG, PNG and WebP, and anything else comes out as PNG. The largest image it takes is 24 megapixels, or 10,000 pixels on a side.

Frequently asked questions

Is this drawn by AI?

No. It is a fixed recipe of grey, invert, blur and colour dodge that photo editors have used for years. The same photo always gives the same sketch, and nothing is invented that is not in the photo.

Why are large parts of the sketch white?

Areas of even tone, such as a wall or a clear sky, have no edges, and the recipe turns them into blank paper. Only changes in brightness draw lines.

Is my photo uploaded?

No. The sketch is made inside this browser tab and saved straight to your device.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.