Aspect ratio calculator / Crop and Resize an Image

Crop and Resize an Image

Cut an image to a shape, set the exact pixel size and download it. Nothing leaves your device.

This tool needs JavaScript.

How to use it

  1. Choose an image, or drop one on the preview. It is opened by your browser and is not sent anywhere.
  2. Pick a shape. Keep the original shape if you only want a smaller file, or choose a ratio such as 1:1, 4:5 or 16:9. “Custom” takes any two numbers.
  3. Drag the picture to choose the part that is kept, and use Zoom to cut in closer.
  4. Set the output size. Type a width and the height follows the shape, or the other way round. “Use full resolution” goes back to the largest size that needs no enlarging.
  5. Download as JPG, PNG or WebP.

Crop and resize are two different things

What it changesExample
CropThe shape. Part of the picture is cut away.4000 × 3000 (4:3) cropped to 16:9 keeps 4000 × 2250
ResizeThe number of pixels. Nothing is cut away.4000 × 2250 resized to 1920 × 1080
BothFirst the shape, then the pixel count. This tool does both in one step.4000 × 3000 to a 1080 × 1080 square

Making an image smaller is safe. Making it larger than the kept area invents pixels, so the result looks soft; the tool warns you when that happens.

Which file type

TypeGood forNote
JPGPhotosSmall files. No transparency; transparent areas become white.
PNGLogos, screenshots, images with transparencyNo quality loss, larger files for photos.
WebPWeb pagesSmaller than JPG at similar quality. A few older apps cannot open it.

For exact sizes that each platform asks for, see the social media size chart. To work out a height from a width first, use the aspect ratio calculator.

Questions

Is my image uploaded?

No. The image is read and processed by your browser on your device. Nothing is sent to a server.

Can I crop to an exact pixel size?

Yes. Choose the shape, then type the output width or height in pixels. The other side follows the shape.

Why does my enlarged image look soft?

Enlarging adds pixels that were not in the original. Keep the output at or below the size of the kept area for a sharp result.

What is the largest output?

8000 pixels on the longer side. Source images up to 120 megapixels can be opened.

Does it work on phones?

Yes. Choose a photo from your gallery and drag with a finger to move the crop.

Related tools and guides