Skip to content
UniKit

Img Clip

Crop an image to a fixed aspect ratio (1:1, 16:9, 4:3 or a custom one) with nine anchor positions, optionally scaling the result to a target width before export.

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.

Enter a ratio such as 16:9 or 4/3, or a plain number (width ÷ height).

Leave blank to keep the cropped size; filling it scales the result and the height is derived.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result details

Result details

Pick an image and the ratio-clipped preview shows up immediately.

What this tool does

  • Make avatars or covers: crop a mix of landscape and portrait shots to 1:1 or 16:9 and the platform will not crop them again.
  • Apply one composition to a batch: the same ratio plus the same anchor puts the crop frame in exactly the same place every time.
  • Trim and downscale in one step: enter an output width (say 800) and the cropped result is scaled to that width automatically.
  • Take just one corner: anchors such as top-left or bottom-right grab an exact corner without scaling first.

Example

Input

An 8 × 4 image, ratio 1:1, position "centre"

Output

Crop area 2, 0 · 4 × 4
Output size 4 × 4
Clipped pixels 16

This is the real output of the pure pixel logic: a 1:1 frame is limited by the height so the side is 4, the horizontal surplus is 8 − 4 = 4, and the centred origin rounds to x = 2, y = 0. The result is a fresh RGBA array and the input is untouched.

Frequently asked questions

How is the ratio interpreted — will the image be stretched?

The ratio is width ÷ height and only decides how much is cropped; nothing is stretched. The cropped region keeps the original resolution, and scaling only happens if you fill in an output width, so the result never distorts.

How large is the crop frame?

It is the largest rectangle of that ratio that fits: round(height × ratio) is compared with the width and the smaller wins, then the height is derived. A landscape 1:1 crop trims the sides, a portrait 16:9 crop trims top and bottom.

Do the nine anchors change the result?

Yes. When the frame is smaller than the source, "centre" uses floor((source − frame) / 2), left uses 0 and right uses source − frame, with the same rule vertically. The same ratio with a different anchor captures a different part of the picture.

Why is there no "scale without cropping" option?

This tool is about cropping to a ratio. If you only need a new size, the image resize tool is a better fit. Both keep the alpha channel: PNG is lossless and JPEG is flattened onto white by the canvas.

Are my images uploaded?

No. Decoding, cropping, scaling and encoding all happen in browser memory; there is no upload endpoint, so it works offline.

Keywords:crop ratio16:91:1

Related tools