Tools / Image Masking

Image Masking

Mask an image into a shape and keep only what is inside it, free.

🖼️ Scaling millions of product images? 💡Automate, optimize, and deliver faster. 👉 Talk to a Media Expert

Image Masking

Or drag your images here

Choose a shape

Your shape: a PNG or SVG where the shape is solid and the rest is transparent.

★★★★★
4.5 (27 reviews)

Looking to mask an image at scale?

Sign up to use our API in your next project and mask an image at scale.

Free Online Image Masking

Keep what is inside the shape and drop everything else.

Why use our Image Masking tool?

Masking is normally a layer, a shape and a lot of clicking in an editor. Pick a shape here and the image is cut to it.

Built for the browser

Works right in your browser, free, with no software to install and no watermarks.

Shapes that are ready to use

Circles, ellipses, rounded frames and more, applied to your image in one step.

Transparent surround

The area outside the mask comes back transparent, so the result drops onto any background.

Quality preserved

Cloudinary keeps your output crisp and true to the original.

Do it at scale

Process one file or thousands with our free API and mask an image automatically, with no manual steps.

Format versatility

Works with all major formats, so your result fits right into your workflow.

How to mask an image in 3 steps

Mask your image in 3 simple steps. Upload it, pick a shape, and download.

Upload your image

Drag and drop your image into the browser, or upload it from your device.

Pick your shape

Choose the mask you want and the image is cut to it.

Download

Save your result, with no watermarks.

Go beyond masking

Shape and crop your images with more free tools: Circle Crop Image, Ellipse Crop Image, Freehand Crop.

A woman and a golden retriever in the mountains. They're sitting, facing away from the camera while the dog noses the woman. They're surrounded by natural splendor including majestic mountains, puffy clouds, and evergreen-studded hills.
An un-cropped image overlaid with a cropping window showing how it would be cropped by Cloudinary.
An arrow pointing from the original asset to the cropped asset
A woman and a golden retriever in the mountains. They're sitting, facing away from the camera while the dog noses the woman. They're surrounded by natural splendor including majestic mountains, puffy clouds, and evergreen-studded hills.
The same asset cropped using the following settings: Aspect Ratio: 1:2. Crop Mode: Content-Aware.
Images
Videos
Crop Mode
Aspect Ratio
Original
18 MB

We’re showing a resized version of the original asset to avoid slow loading speeds. View the original.

The original asset:
JPEG
135 KB
WebP
135 KB
AVIF
90 KB
JPEG XL
94 KB
The image after being optimized using the following settings: Quality: Auto. Width: 1000px.
Original
18 MB

We’re showing a resized version of the original asset to avoid slow loading speeds. View the original.

The original asset:
JPEG
135 KB
WebP
135 KB
AVIF
90 KB
JPEG XL
94 KB
The image after being optimized using the following settings: Quality: Auto. Width: 1000px.
Images
Videos
Quality
Width
An un-cropped image overlaid with a croppingai window showing how it would be cropped by Cloudinary.
An arrow pointing from the original asset to the cropped asset
The same asset cropped using the following settings: Aspect Ratio: 1:1. Crop Mode: Content-Aware.
Images
Videos
Crop Mode
Aspect Ratio
The original image:
An arrow pointing from the original asset to the transformed asset.
The personalized image:
The original image:
The personalized image:
Product Photos
Backgrounds
Overlays
Duration
Full length video: Surfing Trip
An arrow pointing from the original video to the AI-generated preview.
Duration
A shorter video preview generated by Cloudinary's AI using the following settings: Duration: 15 seconds. Max Clips: 9. Min Clip Length: 1 second.
Videos
Duration
Max Clips
Min Clip Length

Frequently Asked Questions

Masking keeps the part of an image that falls inside a shape and hides everything outside it. Unlike a crop, which can only cut rectangles, a mask can be a circle, an ellipse or a more complex outline, and what sits outside it becomes transparent rather than white.

A crop changes the rectangle of the image. A mask changes which pixels are visible inside it. That is why a masked image drops cleanly onto a coloured background or another photo, while a crop always brings its corners with it.

Yes, it is free to use online, with no watermark and nothing to install. Upload your image, pick a shape and download the result. Doing the same thing in an editor means creating a shape layer, setting it as a clipping mask and exporting with transparency, which is several steps for something you often only need once.

PNG, because it is the common format that supports transparency. Save a masked image as JPEG and the transparent area fills with white, which defeats the point of masking it in the first place.

Yes. Masks and shape crops are delivery transformations in the Cloudinary API, so avatars, thumbnails and card images can all be shaped consistently from the original upload, without a designer touching each one and without storing a masked copy alongside every source file.

Get Free API Get Free API