Turn a photo into a pen sketch

Ink lines stack up in the shadows and leave the highlights as bare paper, like a drawing done with a fine pen. Worked out from your own photo with plain image math, no AI.

Open the editor with this effect

What you get

Made with plain math, not a model

There is no generative model behind this look and nothing was trained on anyone's work. It is a short list of fixed steps running in your browser.

  1. Read the photo: Your photo is read pixel by pixel inside your browser. It is never uploaded, so nothing leaves your device.
  2. Crosshatching: Lines are laid down in layers. Darker areas get more layers at more angles, the same way an engraver builds up tone with a burin.
  3. Same input, same pixels: Every step is fixed math with fixed seeds. Run it again tomorrow on the same photo and you get exactly the same image.

A good sketch leaves things out. The artist keeps the shapes that matter, lets the light areas stay as bare paper and puts ink only where the shadows are. Most photo to sketch tools today hand your picture to an AI model that draws a new one, which is why the face often comes back slightly wrong. Bitgrain works the other way round. It reads the light and shade of your own photo and lays pen lines over the dark parts, so every stroke is tied to something that is really there.

How pen sketches build tone

A pen makes one shade of ink, so an artist cannot paint grey. Instead they draw lines close together. Sparse lines read as a light tone, dense lines as a dark one, and the eye mixes them from a normal viewing distance.

Hatching is a set of parallel lines in one direction. Crosshatching adds a second set across the first, then a third and a fourth for the deepest shadows. Each layer only goes where the tone is dark enough to need it.

The highlights are the part most people forget. In a strong sketch the brightest areas have no lines at all. That empty paper is what makes a drawing feel light and quick instead of heavy and overworked.

Why it does not use AI

Generative sketch tools guess what a drawing of your photo might look like. They can be impressive, but they also invent details, smooth out features and change expressions, and many of them run your photo through a server to do it.

Bitgrain measures the brightness of each part of your photo and draws up to four layers of hatching at fixed angles, more layers where it is darker. It is ordinary image maths that runs in your browser, the same photo and settings always give the same drawing, and nothing is uploaded.

The trade off is honest. The lines are straight and follow tone, not the curve of a cheek the way a skilled illustrator would draw them. On most photos it reads as a pen study. It will not pretend to be a hand drawn portrait.

Photos that make good sketches

Bright photos with clear shadows work best. Side light from a window gives the hatching a shape to build in, while flat light on a grey day turns into an even mesh.

Simple backgrounds help. A plain wall or open sky stays as paper, which frames the subject the way a real sketch would. Busy backgrounds fill up with lines and compete with the face.

If the drawing looks too dark, raise the brightness before you touch anything else. Pushing more of the photo into the highlights gives you more empty paper and a lighter, more sketch like result.

How to do it in Bitgrain

Open the editor from this page. The sample already has the pen sketch look applied. Drop in your own photo to replace it.

Use Brightness and Contrast in the Tone panel to decide how much of the picture turns into lines. Brighter gives an airy drawing, more contrast gives bolder shadows.

For a sketch you can restyle, open the look picker and choose Crosshatch. It has its own controls for line size, darkness and ink colour, including a sepia ink.

Export PNG, then place it on a card, a poster or a zine page in the studio if you want to add type.

Common questions

Is this a pencil sketch effect?

It is closer to pen and ink. The lines are crisp and dark rather than soft graphite. For a softer drawing with washes of tone, try the ink wash effect.

Will it change my face like AI sketch apps do?

No. Nothing is redrawn or generated. Every line sits where your photo is dark, so features stay where they are.

Is my photo uploaded?

No. The sketch is worked out in your browser and your photo stays on your device.

Related tools