Skip to main content
TOP free online tools Your Workbench
English

Image Cropper

Crop images in your browser by selecting a region. Free, online, no upload, fully private.

Local browser processing — zero server uploads

How to Use

  1. Select or drag and drop your image file into the Image Cropper workbench above.
  2. Adjust the settings or options as needed — all processing runs locally in your browser without uploading to any server.
  3. Preview the processed cropped image and click Download to save the result to your device.

What is Image Cropper?

An Image Cropper trims an image to a rectangular region defined by top-left (X, Y) coordinates and exact Width and Height pixel dimensions. Developers, social media managers, and photographers use it to isolate exact areas of screenshots, banners, or portraits without installing heavy desktop editors.

How It Works

When an image is selected, FileReader.readAsDataURL() loads it and records natural width and height as default crop dimensions. After you edit X, Y, Width, and Height, clicking Crop creates an offscreen <canvas> of size w × h, copies the sub-rectangle via ctx.drawImage(img, x, y, w, h, 0, 0, w, h), and outputs a cropped.png Data URL locally.

Common Use Cases

  • Extracting pixel-exact UI regions — specify exact X, Y, Width, and Height integers for consistent asset slices
  • Cropping thumbnails to fixed dimensions — trim screenshots to standard pixel boxes like 1200×630 or 512×512
  • Removing unwanted margins or borders — shift X and Y offsets inward and export a clean PNG
  • Processing private photos offline — execute FileReader and Canvas cropping entirely inside browser memory
Technical Details

APIs: FileReader.readAsDataURL, HTML5 Canvas 2D drawImage(img, x, y, w, h, 0, 0, w, h) and canvas.toDataURL("image/png"). Outputs lossless PNG (cropped.png). Coordinate inputs validate numeric min bounds (X/Y >= 0, Width/Height >= 1) locally.

FAQ

Is my image uploaded?

No. Cropping happens locally in your browser using the Canvas API. Your image never leaves your device.

Can I crop to a specific aspect ratio?

Yes. You can enter custom crop coordinates or drag to select a region freely.