Edge Detection
Run Sobel edge detection on any image online. Adjustable threshold and invert mode turn photos into clean line art — free and fully in-browser.
What is the Edge Detection?
This tool finds the edges in a photo using the Sobel operator, the classic gradient filter used throughout computer vision.
- Sobel gradient-magnitude edge detection
- Threshold slider for clean binary line art
- Invert mode: white-on-black or black-on-white
- Grayscale pre-processing built in
- Full-resolution PNG export
- 100% private — nothing is uploaded
How to use the Edge Detection
- 1
Upload the image you want to outline.
- 2
Adjust the threshold slider — 0 keeps the full gradient, higher values keep only strong edges.
- 3
Toggle Invert for black-on-white line art.
- 4
Click Download PNG to save the edge map.
About the Edge Detection
This tool finds the edges in a photo using the Sobel operator, the classic gradient filter used throughout computer vision. It converts the image to grayscale, measures how quickly brightness changes horizontally and vertically at every pixel, and draws the combined gradient magnitude — so outlines glow while flat areas go dark.
A threshold slider lets you keep only the strongest edges for crisp line art, and an invert switch flips the output to black lines on a white background — ideal for coloring pages, laser engraving previews, sketch references and teaching how edge detection actually works.
Like every ByteTools utility, the filter runs 100% locally in your browser using canvas pixel data. Your image is never uploaded, so you can process private photos and unpublished designs with confidence.
Frequently asked questions
How does Sobel edge detection work?
The Sobel operator slides two 3×3 kernels over the image to estimate the brightness gradient in the horizontal and vertical directions. The edge strength at each pixel is the magnitude of those two gradients combined, so rapid changes in brightness — edges — light up while smooth areas stay dark.
How do I turn a photo into line art?
Upload the photo, raise the threshold until only the outlines you want remain, and switch on Invert to get black lines on a white background. Download the PNG and you have a clean line-art version suitable for tracing, coloring or engraving.
What does the threshold slider do?
With the threshold at 0 you see the raw edge strength as a continuous grayscale. As you raise it, pixels below the threshold become pure black and those above become pure white, leaving a crisp binary edge map with weak noise removed.
Why is my edge detection result noisy?
Photos with grain, texture or JPEG artifacts produce many tiny gradients that read as edges. Raising the threshold suppresses them. Slightly blurring the photo first (with the blur tool) also smooths noise before the edges are measured.
Is edge detection done on my device?
Yes — the Sobel filter runs entirely in your browser on the canvas. No image data is transmitted anywhere, so the tool works offline and keeps your pictures private.
Related tools
Emboss Image Effect
Apply an emboss effect to any photo online. Adjustable strength and light direction turn edges into a raised 3D relief — free, private, in your browser.
Sharpen Image
Sharpen a blurry image online with an adjustable unsharp mask. Enhance edge detail in photos, compare before and after, and download free — no upload.
Dither Image
Apply Floyd-Steinberg, Atkinson or ordered Bayer dithering to any image online. 1-bit, grayscale or color levels for a retro, e-ink or pixel-art look.
Grayscale Image Filter
Convert an image to grayscale online. Turn photos black and white with an adjustable intensity slider, preview live and download free — no upload.
Blur Image
Blur an image online with an adjustable Gaussian blur slider. Preview the original and blurred photo side by side and download free — no upload needed.