Skip to content
Filter a picture

Edge detection for a photoFind the outlines in any photo

Bright lines on black, or black lines on white — the shapes in your picture, traced for you.

The original photo, before any filterBeforeThe same photo with Edge detect applied by this pageEdge detect
Before and after: Edge detect, made by this page from one of our own photos.
Choose photoor drop it here · paste works too

JPG, PNG, WebP, HEIC and more · drop several for a batch

No photo handy?

FreeNo sign-upYour photo stays on your device

Three taps

From photo to filtered in seconds

  1. Choose a photo

    Tap the button, drop a file or paste a screenshot. Any everyday photo works.

  2. Tap a look

    Every look is tried on your own picture. Drag across the photo to make it stronger or softer.

  3. Download

    Save it full size as JPG, PNG or WebP. No account, no watermark on your picture.

Detect the edges in a photograph. A named 3×3 Sobel operator, a threshold and a scale—an inspectable gradient map, not an unexplained sketch filter.

This is a rebuild: your photo is taken apart and remade, not just recoloured. It runs in this tab and nothing is uploaded.

Tip Clean shapes against an even ground produce a readable map; noise and foliage produce many truthful but distracting edges.

The operation behind the appearance

Red, green and blue are first reduced to weighted luminance. Two 3×3 Sobel kernels measure change across x and y; their Euclidean magnitude is multiplied by strength and compared with the threshold. Inversion changes presentation only, turning bright-on-black into black-on-white.

The controls are measurements

Threshold
The minimum gradient magnitude allowed to remain.
Gradient strength
A multiplier on all measured edge magnitudes.
Black lines on white
An inversion after measurement, not a different detector.

Where the construction breaks

Sobel locates contrast, not meaning. Noise, compression blocks, skin texture and patterned fabric can be stronger than the outline a person wanted. Blur the source beforehand when the job is structural edges; keep the unblurred source when fine texture is the subject.

The preview, draft and export all run the same kernel. Parameters measured in pixels are scaled with the source, so a chosen tile, band or radius does not become unexpectedly finer in the downloaded file.

Questions about this effect

What counts as an edge?

A rapid change in Rec. 709 luminance across neighbouring pixels. The Sobel pair measures horizontal and vertical change and combines their magnitudes.

Why does texture fill with lines?

Texture is made of local brightness changes too. The operator knows nothing about objects, so a leaf vein and a face outline are both gradients.

What does threshold remove?

Gradient magnitudes below the chosen value are written as zero before inversion. Raising it suppresses weak texture and also discards faint real boundaries.

Related on this site