Tools / Trim Whitespace from Image

Trim Whitespace from Image

Cut the empty space around an image down to the edge of the artwork, free.

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

Trim Whitespace from Image

Or drag your image here

No image?
Try one of these

Stock image 1
Stock image 2
Stock image 3
★★★★★
4.8 (28 reviews)

Looking to trim whitespace from an image at scale?

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

Free Online Trim Whitespace from Image

The blank border gone, the artwork untouched.

Why use our Trim Whitespace from Image tool?

Cropping dead space by hand means dragging a selection and guessing where the artwork really ends. Here the empty border is detected and cut for you.

Built for the browser

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

Finds the edge for you

The uniform border around your artwork is detected automatically, so the crop lands exactly on the content.

Transparent or white, both work

Trims a white background and an empty alpha channel alike, which covers almost every export you will meet.

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 trim whitespace from an image automatically, with no manual steps.

Format versatility

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

How to trim whitespace from an image in 3 steps

Trim whitespace from your image in 3 simple steps. Upload it, trim, and download.

Upload your image

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

Trim the empty space

The blank border is detected and cropped away.

Download

Save your result, with no watermarks.

Go beyond trimming

Crop and frame your images with more free tools: Crop Image, Freehand Crop, Add Border to Image.

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

It detects the uniform border around the content of your image, usually white or transparent, and crops the picture back to where the artwork actually starts. Logos, scans, screenshots and exported charts almost always carry that dead margin, and it is what makes an image look badly aligned once you place it in a layout.

Nearly always because of baked in whitespace. The file is bigger than the mark inside it, so when you size it against other elements you are sizing the empty space too. Trimming the margin lets the logo fill the box you give it, and gives you one consistent starting point for every placement.

Yes, it is free to use online, the result carries no watermark and there is nothing to install. Upload the image and download the trimmed version. The manual route means zooming in, dragging a crop box and nudging each edge until nothing is left, which is both slow and inexact when the margin is only a few pixels wide.

The same image at a smaller canvas size, cropped to the edge of the content, with nothing resampled or re-rendered. Save as PNG when the background was transparent and you want it to stay that way. A JPEG has no alpha channel, so the trimmed edge would come back sitting on flat white.

Yes. Trimming is a delivery transformation in the Cloudinary API, so logos and artwork arriving from suppliers or users can be normalised as they are served, with no pre processing step. That is how asset libraries stay tidy at volume, since one inconsistent margin in a product grid is visible immediately.

Get Free API Get Free API