Image Erode
Shrink the shapes in an image back from their edges, free.
Shrink the shapes in an image back from their edges, free.
Erode or dilate an image to thicken lines, shrink highlights or clean up specks.
Or drag your image here
JPG, PNG, WebP, HEIC and more. Max 20MB
Sign up to use our API in your next project and erode an image at scale.
Morphological erosion without writing a line of code.
Erosion normally lives in an image processing library and a Python script. Here you upload the image, set how far the edges pull back, and download.
Works right in your browser, free, with no software to install and no watermarks.
Shapes shrink evenly from their outline, which thins strokes and trims stray pixels.
Ragged edges, speckles and halos around a cut out shrink away with them.
Cloudinary keeps your output crisp and true to the original.
Process one file or thousands with our free API and erode an image automatically, with no manual steps.
Works with all major formats, so your result fits right into your workflow.
Erode your image in 3 simple steps. Upload it, set the amount, and download.
Drag and drop your image into the browser, or upload it from your device.
Choose how far the edges pull back.
Save your result, with no watermarks.
Shape your images with more free tools: Image Dilate, Photo Outline Generator, Sharpen Image.
We’re showing a resized version of the original asset to avoid slow loading speeds. View the original.
Erosion is a morphological operation that pulls the edges of bright shapes inward, so lines get thinner and small specks disappear entirely. It is one half of a classic pair, the other being dilation, which pushes edges outward. Together they are the standard way to clean up masks, line art and scanned text before anything else reads them.
Use erode when there is too much shape, for example a cut out with a pale halo left around the subject, a scan with ink bleed that has fattened the letters, or a mask speckled with stray white pixels. Use dilate when there is too little, such as a broken line that needs reconnecting. Running erode and then dilate removes noise while keeping the shape roughly its original size.
Yes, it is free to use online, with no watermark and nothing to install. Upload the image, choose how strong the erosion is and download the result. The usual route to the same operation is an image processing library such as OpenCV, which means setting up an environment and writing a script before you can see what a given kernel size even looks like.
High contrast material: masks, logos, line drawings, scanned text and anything black on white. Erosion works on the difference between light and dark, so a soft photograph with gentle gradients will simply look slightly eaten rather than cleaned. Save the output as PNG, because JPEG artefacts around a hard edge are exactly the kind of noise you were trying to remove.
Yes. Cloudinary applies transformations on delivery through its API, so preprocessing steps can run across an incoming set of images rather than one at a time. That matters in any pipeline that feeds another system, OCR, vectorising or shape detection, where consistent clean edges on every file decide whether the next stage works.