Image edge detection

You need a contour map without installing OpenCV, or you want to preview how a poster reads once color drops away. Load a raster file here, pick an operator, drag threshold until lines feel honest, then save a PNG. Pixels never leave your device.

Bring a frame

Tap this tile or drop a file. We draw gradients, run the kernel, and paint the map beside your source.

JPEG, PNG, WebP and other formats the browser already decodes.

Three numbers on the hero are not decoration

Five operators cover the gradients most coursework still assigns by name. Zero uploads means the canvas API reads bytes locally, the same way noise reduction keeps your grain experiments private. PNG export preserves the mask you see, which matters when you paste into a slide or trace in a vector app.

Stat panels also set expectations. This page is a teaching bench, not a replacement for industrial pipelines. You get fast feedback, not sub-pixel hysteresis tuning across octaves.

When a silhouette is the whole story

Packaging teams sometimes need to check whether a logo survives once color is stripped. A quick Sobel pass shows if interior strokes collapse into mush.

Students comparing kernels for a report want side-by-side truth without installing toolchains. Swapping Prewitt for Roberts here shows how diagonal emphasis shifts without rewriting homework scripts.

Photo editors chain steps: if halos appear after sharpen, edge view reveals whether ringing came from the source or from the operator you stacked afterward.

Signals hiding in plain sight

Edge filters measure change. Flat regions stay dark. Ramps and borders light up because neighboring pixels disagree. Threshold turns those magnitudes into a binary mask: above the line reads as white, below reads as black.

OperatorBiasGood when
SobelBalanced gradientsGeneral outlines, first pass
PrewittSimilar to Sobel, slightly softerNoisy scans where Sobel feels twitchy
RobertsDiagonal emphasisSmall images, quick tests
LaplacianSecond derivativeFinding zero-crossing style detail
Canny (preview)Sobel magnitude scaledQuick look, not full hysteresis
Privacy: Files live in memory inside your tab. Closing the page clears them. We recommend avoiding confidential scans on shared machines regardless of client-side processing.

Native apps do not own this workflow

Desktop suites still win for batch jobs, layered masks, and calibrated print output. This tab wins when you need an answer in thirty seconds on hardware you do not control.

If you need a hard black-white cut without gradients, threshold is the blunt sibling: one luminance split instead of gradient magnitude. If you need EXIF sanity before trusting edges, open metadata viewer on the same file first.

For composition fixes before you judge lines, cropper removes dead border pixels that otherwise fake edges along the frame.

What we refuse to simulate

The Canny option here scales Sobel output. Full Canny needs Gaussian blur, non-maximum suppression, and hysteresis linking. We label the menu honestly so you do not cite this page as a reference implementation.

Very large images may stutter because every slider move recomputes the whole raster on the CPU. Downscale in another tool first when files exceed a few megapixels.

JPEG blocks and chroma subsampling create false edges along flat skies. Denoise or re-export from a cleaner source when lines appear where none exist on the subject.

Quick facts you might not expect

Inverting the map swaps ink and paper visually, which helps when you paste onto dark slide themes.

The soften toggle nudges mid-gray responses toward full black or white. Use sparingly; aggressive smoothing erases hairline detail you still wanted.

Roberts ignores a one-pixel border on the bottom-right because the 2×2 kernel never completes there. Expect slightly thinner edges near those edges compared with 3×3 operators.

. Operator math follows standard textbook kernels; UI behavior matches the canvases shown above.

Edge maps without the lecture hall jargon

Practical answers about operators, files, and limits.

Why does my sky look like chicken wire?

JPEG compression leaves 8×8 blocks. Gradient filters treat block boundaries as jumps, so you see a grid. Start from PNG, raise threshold slightly, or clean noise upstream before edge work.

Is the Canny mode a real Canny detector?

No. The menu item runs Sobel magnitudes with a lower effective threshold so lines look closer to a Canny-style preview. For publication-grade Canny you still need a full pipeline with hysteresis.

Which operator should I pick first?

Sobel is the default for a reason: stable on portraits and UI screenshots. Switch to Roberts when you want to show diagonal sensitivity in a report, or Laplacian when zero-crossing language matters for your notes.

Does invert change the math?

Invert flips pixel values after the mask is computed. Geometry stays the same; only polarity swaps. Useful for dark backgrounds, not for recovering lost detail.

Will my file upload to Toolexe servers?

No. The FileReader API loads bytes into the page, canvases read pixels locally, and download uses a data URL. Network calls are the same as any static page load.