Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Image Processing
  3. Image Edge Detector
Add to favorites

Image Edge Detector

Find the edges in a photo and turn them into line art, outlines or neon glow, with Sobel, Canny and five other methods. Compare with the original and download a PNG.

Edits stay in your browserMore image processingJump to full guide

Initializing in your browser…

You might also like

Image to Base64

Turn an image into Base64 text or a data URL to embed in HTML, CSS or Markdown, checked to decode back to your exact file. Optional resizing first.

Image Diff Comparator

Compare two versions of an image and see what changed: each changed area outlined and shown close up, with slider, fade and side-by-side views and a similarity score.

Image Cropper

Crop a photo by dragging a box or typing exact pixels, with aspect ratio presets, quarter turns, mirrors and shape cut-outs. PNG output keeps every pixel exactly.

Image Edge Detector: a worked example

The sample sunset photo, 1600 by 1067 pixels with fine film grain, run through four of the looks.

Looks

Blueprint: Sobel, threshold 6%
Smooth curves: Scharr, threshold 5%
Colour lines: Roberts, threshold 4%
Clean outline: Canny, thresholds 3% and 7.5%
What Image Edge Detector produces

Share of the picture marked as edge

Blueprint       about 41,200 pixels   2.4%
Smooth curves   about 43,800 pixels   2.6%
Colour lines    about 124,800 pixels  7.3%
Clean outline   about 15,500 pixels   0.9%

Sobel and Scharr mark the hills, trees, sun and reflections in lines about two pixels wide. Roberts compares only neighbouring pixels and averages nothing, so the grain in the sky and water triples its count. Canny smooths the grain away first, thins every line to a single pixel and keeps a faint stretch only where it joins a strong one, which leaves a clean outline with fewer than half as many pixels as Sobel.

About the Edge Detector

Find the outlines in any picture. Turn a photo into a pencil sketch, a blueprint, a clean outline for tracing or colouring, or neon line art, then drag across the result to compare it with the original and download it as a PNG.

How to use

  1. 1Drop in a picture, paste one, or press Try a sample image.
  2. 2Pick a look, such as Pencil sketch or Clean outline.
  3. 3Open Custom to change the method, the threshold, the line width or the style.
  4. 4Drag across the preview to compare the edges with the original.
  5. 5Press Download PNG to save the full-size result.

Where this helps

  • Colouring pages and tracing

    Turn photos into outlines to print, colour in or trace onto paper or a tablet.

  • Design and illustration

    Line art, posters, stencils and backgrounds from your own pictures.

  • Learning about images

    See how different methods react to the same picture, side by side with the original.

  • Preparing images for vision projects

    Clean Canny edge maps as a starting point for shape and contour work.

Key features

  • Eight looks with live thumbnails of your own picture
  • Seven methods: Sobel, Prewitt, Scharr, Roberts, two Laplacians and Canny
  • Thresholds that mean the same thing for every method
  • Shaded or solid lines, from one to six pixels wide
  • Black on white, white on black, colour, overlay and neon glow styles
  • A before and after slider that works by touch, mouse or keyboard
  • Full-size PNG download, with transparent backgrounds kept in the colour style
  • Runs in your browser; nothing is uploaded

Tips & best practices

  • Start from a look, then fine-tune it under Custom.
  • For colouring pages, use Clean outline with Black on white and a line width of 2 or 3.
  • If a photo comes out busy, raise the threshold a little at a time or use Canny with more smoothing.
  • For a transparent PNG of just the lines, choose the Colour style.

Examples

  • Line art from a photo

    Pencil sketch draws soft dark lines on white, with strong outlines darker than faint ones, ready to print and trace.

  • A clean outline from a grainy photo

    On the sample sunset, Clean outline (Canny) marks about 0.9% of the picture as edge where Roberts marks about 7%, because Canny smooths the grain away before it looks.

  • A neon poster

    Neon glow with a line width of 2 and the magenta colour turns a city photo into glowing line art on black.

How the edges are found

Looks. Eight ready-made looks cover the common uses, each shown as a thumbnail of your own picture: Pencil sketch, Blueprint, Neon glow, Clean outline, Subtle details (edges over the photo), Texture, Smooth curves and Colour lines. Pick one and fine-tune it under Custom.

Methods. An edge is a place where brightness changes quickly, and each method measures that change a little differently. Sobel is the classic choice with clean, even lines. Prewitt is close to it with a little more weight on diagonal detail, and Scharr is more accurate on diagonal and curved edges. Roberts gives the finest lines but also picks up grain and noise. The two Laplacian methods respond to a change in the change, so they outline both sides of an edge and ignore smooth gradients. Canny smooths the picture first, thins every edge to a single pixel and keeps faint edges only where they connect to strong ones, which makes it the best choice for photos.

Threshold. The threshold decides how strong an edge must be to count. It is set as a percentage of the strongest edge each method can produce, so 5% means the same thing whichever method you pick. Canny uses two thresholds: edges above the high one are always kept, and edges above the low one are kept only where they connect to a strong one. Its Smoothing setting blurs away noise and fine texture before it looks.

Lines and style. Shaded draws stronger edges brighter, so faint ones stay faint, like a pencil drawing. Solid draws every edge above the threshold at full strength. Line width makes the lines up to six pixels wide without changing which edges are found, which helps on large pictures and in print. Then choose black lines on white, white on black, the picture's own colours on a clear background, the edges lightened over the original, or a neon glow in one of six colours.

Size and privacy. Edges are found on the full picture and the download is a full-size PNG; very large photos above 16 megapixels are worked on at 16 megapixels, and the page says so. Pictures with transparent areas are placed on white first, so a dark logo on a clear background still gets its outline. Everything runs in your browser and nothing is uploaded.

Frequently asked questions

Which method should I use?

Canny for photos, because it smooths away grain and draws thin, connected lines. Sobel for drawings, screenshots and anything with clean shapes. Try the looks first: each one shows a thumbnail of your own picture.

Why are there so many little dots in my result?

The picture has grain or noise, and some methods, Roberts above all, mark it as edges. Raise the threshold, or switch to Canny and increase Smoothing.

Why do some lines look doubled?

The Laplacian methods outline both sides of a change in brightness, so a single edge can show as two lines. Sobel, Scharr and Canny draw one line per edge.

How do I get thicker lines?

Open Custom and raise Line width. The edges found stay the same; only the drawing gets bolder, which helps with large pictures and printing.

Can I get a transparent background?

Yes. Choose the Colour style: the edges keep the picture's colours and everything else is transparent in the PNG.

Is the download full size?

Yes, the PNG has the same pixel size as your picture. Only photos above 16 megapixels are reduced to 16 megapixels, and the page tells you when that happens.

Are my pictures uploaded?

No. The edges are found in your browser and your picture never leaves your device.

Related tools and how they differ

  • Image Filters: Sharpen, blur, sepia and other effects for the whole picture.
  • Image to SVG Tracer: Turns a picture into scalable vector shapes rather than a line image.
  • Image Histogram: Shows how the brightness of a picture is spread.

Private by design

Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.