Image circle
Crop an image to a centred square and apply a circle or rounded-corner mask with a transparent or solid fill, then export PNG/JPEG for avatars and round artwork.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are processed locally in your browser with Canvas and never uploaded.
Leave blank or use transparent for an alpha background, or enter a colour such as #ffffff.
Pick an image first (PNG / JPEG / WebP / GIF all work).
Result details
Pick an image and the circle / rounded preview shows up immediately.
What this tool does
- Turn a square or rectangular photo into a circular avatar: the image is centre-cropped to a square, masked to a circle and exported as PNG with a transparent outside.
- Build rounded card artwork: pick "rounded" and set the radius to 10%–20% so the corners are cut, then export it straight into a UI or slide deck.
- Give a round image a solid backdrop: fill the outside with #ffffff or a brand colour so a JPEG export has no black background (JPEG has no alpha channel).
- Lock the settings before automating a batch: the result card reports the effective radius and how many pixels the mask replaced.
Example
Input
Opaque 4 × 4 image, shape "circle", outside fill left blank
Output
Output size 4 × 4 (16 pixels) Effective radius 2 px, 4 masked pixels Corner alpha = 0, centre pixel keeps its colour
This is the real output of the pure pixel logic: radius = min(width, height) / 2 × (50 / 50) = 2, and the corner pixel centres sit √2 × √2 ≈ 2.83 away from the centre, so they are cleared. The mask is not antialiased, which makes it identical pixel-for-pixel on every browser.
Frequently asked questions
Why are the circle edges slightly jagged?
The mask keeps a pixel when its centre is inside the circle — a hard test with no antialiasing. That makes the result identical across browsers and device pixel ratios, and unit tests can assert exact pixels. For smooth edges, process at 2–4× the size and downscale afterwards.
What is the difference between a transparent and a coloured outside?
Leaving the field blank (or "transparent") sets the outside alpha to 0, which requires a PNG export to survive. A colour such as #ffffff produces an opaque fill, so a JPEG export has no black edges.
Does "no mask" change any pixels?
No. With "no mask" no shape is applied, so the output is a pixel copy of the source (with "crop to square" it is only centre-cropped).
How large can the image be?
Up to 8,000,000 pixels per image (for example 4000 × 2000). With "crop to square" enabled the output is cropped to the shorter side, so it only gets smaller.
Are my images uploaded?
No. Decoding, masking and encoding all happen in browser memory; there is no upload endpoint, so it works offline.
Keywords:avatar circlecrop circle