# Image cropper

> Crop with a free box or an aspect preset, including a circle.

Free image cropper. Drag the frame, lock an aspect such as 1:1, 4:5, 16:9, or Open Graph, and export JPG, PNG, or WebP. A circle crop keeps a round mask. Cropping runs in this browser.

- Page: https://benchline.fabwaseem.com/t/image-crop
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: An image, a crop frame, an aspect preset, a circle toggle, and an output format.
- Output: The cropped image.
- Keywords: crop image, crop photo online, circle crop
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Drop an image.** The frame opens on the picture.
2. **Set the frame.** Drag, zoom, and pick an aspect or a circle.
3. **Download the crop.** Choose JPG, PNG, or WebP.

## Use it from an AI agent

MCP tool name: `crop_image`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/image-crop with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Crop an image to a pixel box or a 0 to 1 ratio box. circle cuts a round mask. format is png, jpeg, or webp. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the image as base64.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "file": {
      "type": "object",
      "properties": {
        "url": {
          "description": "Public http or https URL. Private and local addresses are refused.",
          "type": "string"
        },
        "data": {
          "description": "Base64 bytes or a data URI. Decoded size is capped at 10 MB.",
          "type": "string"
        },
        "mimeType": {
          "description": "MIME type when you know it.",
          "type": "string"
        },
        "filename": {
          "description": "File name, including the extension when you have one.",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "description": "The image. Provide url or data."
    },
    "x": {
      "default": 0,
      "type": "number"
    },
    "y": {
      "default": 0,
      "type": "number"
    },
    "width": {
      "default": 1,
      "type": "number",
      "exclusiveMinimum": 0
    },
    "height": {
      "default": 1,
      "type": "number",
      "exclusiveMinimum": 0
    },
    "unit": {
      "default": "px",
      "description": "px is source pixels. ratio is a 0 to 1 share of the source.",
      "type": "string",
      "enum": [
        "px",
        "ratio"
      ]
    },
    "circle": {
      "default": false,
      "type": "boolean"
    },
    "format": {
      "default": "png",
      "type": "string",
      "enum": [
        "png",
        "jpeg",
        "webp"
      ]
    }
  },
  "required": [
    "file",
    "x",
    "y",
    "width",
    "height",
    "unit",
    "circle",
    "format"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "crop_image",
    "arguments": {
      "file": {
        "url": "https://example.com/file"
      },
      "x": 0,
      "y": 0,
      "width": 1,
      "height": 1,
      "unit": "px",
      "circle": false,
      "format": "png"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Is the image uploaded?

No. The crop is drawn in this browser.

### What does the circle crop do?

It masks the crop to a circle. PNG and WebP keep the transparent corners. JPG flattens those corners to white.

### Which aspect presets are there?

Free, square, 4:5, 3:2, 16:9, 9:16, and Open Graph at 1200×630.

## Related tools

- [Image resizer](https://benchline.fabwaseem.com/t/image-resize): Resize by pixels or percent, with the aspect ratio locked and a batch ZIP.
- [Image format converter](https://benchline.fabwaseem.com/t/image-convert): Convert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.
- [Favicon generator](https://benchline.fabwaseem.com/t/favicon-generator): Make the ICO, the PNG sizes, the manifest, and the HTML snippet from a picture or letters.
- [OG image generator](https://benchline.fabwaseem.com/t/og-image-generator): Pick a template, watch the card update, then download the PNG or copy the Next.js file.
