Image & Circular Avatar Cropper

Crop photos and avatars effortlessly in your browser. Supports 1:1 squares, circular transparent masks, 16:9 banners, zoom, rotation, and local export.

Click to choose image or drag & drop here
Supports PNG, JPG, WebP · Runs 100% locally in browser memory
</> Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/image-cropper" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/image-cropper" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Image & Circular Avatar Cropper</a></div>

Common Image & Avatar Aspect Ratios

Different digital platforms mandate precise image dimensions and aspect ratios:

What happens in the page

loadImg() turns the dropped file into an object URL and waits for the decode, getCropBox() converts the selection rectangle you dragged back into source-image coordinates using the current zoom and pan, and draw() paints the visible canvas. resetTransform() restores the original view. Export renders the crop into a second canvas sized to the selection and calls toDataURL() on it — quality 0.95 for JPEG, lossless for PNG — then triggers a download from the data URL.

Where it breaks down

Output size is bounded by the browser's canvas ceiling, so an unusually large photo is scaled to stay inside it rather than exported at full resolution. Only PNG and JPEG are produced: JPEG discards the alpha channel, so a transparent crop comes back with a solid background. EXIF orientation is not restored after re-encoding, which is why phone photos can arrive rotated. A selection narrower than one pixel rounds to zero and is refused.

Privacy: no data leaves this tab

The photo is read through an object URL created from your own file, painted onto a local canvas and re-encoded there. There is no upload step, and the site has no backend to upload to.

Frequently asked questions

Why is my export smaller than the original?

Canvas dimensions have a ceiling. When the crop would exceed it the export is scaled down, so the pixel count drops even though the framing is exact.

Where did the transparent background go?

JPEG has no alpha channel. Choose PNG if the crop needs to stay transparent.

Does cropping reduce quality?

PNG export is lossless; JPEG re-encodes once at the quality you set. Cropping does not resample, so a 1:1 crop keeps every pixel it covers.