EIT easy-image-tools / Cut an image into a rectangle

Cut an image into a rectangle

Cuts the image into a rectangle with sides as a share of the smaller side.

Nothing found — try another word.

01

Cut an image into a rectangle

Nothing found — try another word.

Shape
Width, %
Height, %
Position
Offset
X
Y

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Cut an image into a rectangle keeps the pixels inside a rectangle and makes everything outside it transparent. Width and Height are both set as a share of the shorter side of the picture, so 100 on a 1200 by 800 image gives an 800 by 800 block in the middle with empty margins at the sides, and Offset slides that block into the free space around it. The canvas keeps its size, the colors are not touched, and the cut is hard with no anti-aliasing. The whole thing is computed in your browser.

  • Runs entirely in your browser: no upload, no server, no signup.
  • Width and Height from 10 to 100 percent, measured against the shorter side.
  • The canvas keeps its size; the area outside the rectangle becomes transparent.
  • A hard cut — feather the result to soften the edge.
  • For a rounded rectangle, run the round corners tool afterwards.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Set Width and Height from 10 to 100 percent of the shorter side.
  3. Use Offset if the block should not sit in the middle of the picture.
  4. Turn on Show mask to check the frame, then download the result as PNG.

Questions

Why is 100 percent a square on a landscape photo?

Both sides are measured against the shorter side of the image, so the largest rectangle is as tall as the picture and as wide as its height. For the full frame, skip this tool and use the crop tool.

Does it resize the picture?

No. The canvas stays the original size and the area outside the rectangle becomes transparent. Use trim empty space afterwards to cut the frame down to the rectangle.

Is the edge of the rectangle anti-aliased?

No, it is a hard cut. Feathering the result is the way to soften it when the edge is going to be seen against a colored background.

Can I make a rounded rectangle instead?

Not with this tool. Use the round corners tool after this one: the mask makes the rectangle and the radius rounds its four corners.

Related tools