Local Shape Cropper

Crop preset shapes or custom polygons locally with transparent PNG and WebP export.

Drag image here

or click to select file | Supports clipboard paste

Supports JPG, PNG, WebP, and HEIC

Built on browser-local Canvas. Your images are never uploaded to any cloud server — 100% private.

About This Tool

Crop Geometric Shapes and Custom Polygons

Cut clean avatars and custom polygons locally on HTML5 Canvas with 8 preset shapes, rotation/flip tools, and transparent PNG or WebP exports.

Key Capabilities

  • 8 Preset Geometric Shapes

    Includes Circle, Rounded Rectangle (with Free, 1:1, 16:9, 4:3, 9:16, 3:2 aspect ratios & corner radius), Hexagon, Squircle, Triangle, Diamond, Star, and Octagon.

  • Custom Polygon Drawing

    Click directly on the image to place 3 or more vertices, drag points to refine, undo steps, and get automatic self-intersection checks.

  • Rotate, Flip & Zoom Controls

    Rotate 90° left/right, flip horizontally or vertically, zoom smoothly, and reset transformations in one click.

  • PNG, WebP, JPEG & Clipboard Copy

    Export transparent cutouts as PNG or WebP, standard photos as JPEG, or copy the cropped image straight to your clipboard.

Step-by-Step

How to Crop an Image into a Shape

  1. 1

    Load Your Image

    Drag, browse, or paste a static image (JPG, PNG, WebP, or HEIC up to 20 MB; animated GIFs are not supported).

  2. 2

    Pick a Shape or Draw a Polygon

    Choose a preset shape like Circle or Star, or switch to Custom mode to place polygon vertices directly on the canvas.

  3. 3

    Adjust Framing & Orientation

    Drag the selection box or handles, tweak corner radius, zoom, rotate, or flip while checking the live preview.

  4. 4

    Export or Copy

    Select PNG or WebP to preserve transparent corners (or JPEG for opaque rectangular crops), then download or copy.

Technical Reference

Choosing the Right Export Format

Areas outside a circular or polygon crop require transparency. Pick your export format accordingly.

PNG
Transparent Background
Yes
Quality & Size
Lossless crisp edges, larger file size
Recommended Use
Circle avatars, star badges, transparent stickers, slide decks
WebP
Transparent Background
Yes
Quality & Size
Supports alpha transparency at smaller sizes
Recommended Use
Modern websites, blog thumbnails, lightweight UI assets
JPEG
Transparent Background
No (solid fill)
Quality & Size
Lossy compression, compact file size
Recommended Use
Rectangular photos and opaque cover images
How It Works

HTML5 Canvas 2D Clipping

Every preset shape and custom polygon builds a mathematical Canvas 2D clip() mask, rendering rotations, flips, and crops onto an offscreen canvas locally.

Source and export canvases enforce a 4096px edge limit to prevent mobile memory spikes, using requestIdleCallback to keep previews smooth.

Privacy & Data Handling

100% Local Canvas Rendering

  • Decoding, clipping, and export run entirely in your browser with zero server uploads.
  • Clipboard copy uses the native Clipboard API directly without any relay service.
  • Only anonymous usage counts are recorded, with zero image metadata or pixel data.

Read our full Privacy Policy for details on site analytics and cookies.

Practical Use Cases

  • Generating circular or squircle avatars for GitHub, social profiles, and team pages.
  • Trimming product screenshots to consistent 16:9 or 4:3 rounded rectangles for documentation.
  • Cutting irregular custom polygons with transparent backgrounds for slides and banners.

Current Limitations

  • Static images only; animated GIFs are rejected to avoid silent frame loss.
  • Source and exported dimensions are capped at 4096px per edge to protect browser memory.
  • Clipboard image copy depends on browser Clipboard API support; use Download if unsupported.
FAQ

Frequently Asked Questions

Why are the corners not transparent after cropping a circle?

Check your selected export format. JPEG does not support transparency and fills outer areas with a solid background. Switch to PNG or WebP to keep transparent corners.

Why does Custom mode warn about crossing edges?

To guarantee a clean, valid clipping mask, the tool checks whether non-adjacent polygon edges intersect. Use Undo or drag a vertex to untangle the shape.

Does shape cropping reduce image sharpness?

Exports map your crop box to the source pixels (up to 4096px). As long as you are not heavily zooming into a tiny low-resolution region, the output retains the source clarity.