Edge Detection

Turn a photo into its outlines: dark lines on white to trace or colour in, bright lines on black, or edges in their own colours. Nothing is uploaded.

How it works

Each pixel is compared with its neighbours by the Sobel operator, two 3x3 kernels that measure how fast brightness changes across and down. The two are combined into one strength.

A strong change, such as the line between a dark roof and a pale sky, gives a strong edge; a flat area gives none. Outlines on white draws edges dark, Outlines on black draws them bright.

Colour edges runs the same test on red, green and blue apart, so a border between two colours of equal brightness still shows. The line width follows the picture's size, so the preview matches the download.

How to use it

  1. 1 Choose an image, drop it on the file box, or paste one with Ctrl+V.
  2. 2 Pick Outlines on white, Outlines on black or Colour edges. Open Fine-tune to make faint edges show more, or less.
  3. 3 Press Show original to compare, then press Download.

Good to know

  • For a colouring page, use Outlines on white on a photo with clear shapes and a plain background.
  • If grass, gravel or noise fill the picture with lines, blur it lightly with Blur Image first, then find the edges.
  • To get pure black lines with no grey, run the result through Threshold Image.

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.

How Sobel edge detection finds outlines in a photo

An edge, to a computer, is a place where brightness changes quickly. The line between a dark tree and a pale sky is a jump from, say, 40 to 200 within a pixel or two. Inside the sky, brightness barely changes from one pixel to the next. Edge detection measures that change at every pixel and draws it: a big change becomes a strong line, no change becomes blank paper.

The Sobel operator measures the change with two small kernels. One subtracts the column of three pixels on the left from the column on the right, counting the middle row twice. The other does the same from top to bottom. A pixel on a hard vertical edge from black to a grey of 100 scores 400 on the first kernel and 0 on the second. The two are combined as the length of a vector, the square root of the sum of their squares, and divided by 4 so that a full jump from black to white scores 255. The presets double that, so the edge from black to grey 100 draws a line of strength 200: on white paper, a dark grey of 55.

The three looks use that strength in different ways. Outlines on white subtracts it from white, giving dark lines on a light page, good for tracing and colouring pages. Outlines on black uses it as it is, so edges glow on a dark ground. Colour edges runs the test on red, green and blue separately, so the edge between a red flower and green leaves shows red and green, even where the two have the same brightness and the grey versions would miss it.

The line width scales with the picture. The kernel's pixels sit 0.1% of the long side apart, at least one pixel, so the lines are about as thick, relative to the picture, on the 800 pixel preview as on a 4,000 pixel photo. Sensitivity in Fine-tune multiplies the strength, which brings faint edges out or pushes them back.

Limits: this is the plain Sobel filter, not a full line finder such as Canny. It does not thin lines to one pixel, link broken lines, or decide which edges matter, so textures and noise show as lines along with outlines. The download keeps JPEG, PNG and WebP; other formats come out as PNG, and the largest image is 24 megapixels.

Frequently asked questions

What is the Sobel operator?

A standard edge detector, named after Irwin Sobel, who presented it with Gary Feldman in 1968. It measures the change in brightness left to right and top to bottom over a 3x3 patch, giving the middle row and column double weight, and combines the two into one edge strength.

Why are there lines where I see no edge?

Every change in brightness counts, including texture, noise and JPEG blocks. The eye ignores those; the filter does not. A light blur first, or a lower Sensitivity, removes most of them.

Is my image uploaded?

No. The edges are found inside this browser tab and the image is 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.