Skip to content

FREE · LOCAL · NO ACCOUNT

Crop an image online

Keep the part of your image you need. Set a crop region, review its size and download a cropped copy.

1. Choose your image

JPEG, PNG, static WebP, GIF, BMP or TIFF. One static image up to 32 MiB. Decoded image limits also apply.

  1. Set the crop region
  2. Download cropped image

File contents stay in your browser. Original files may reopen for 30 minutes; download your result or save an editor project to keep edits.

About this tool

Enter the crop position and dimensions in source pixels.

Review the selected region before downloading.

Choose one static image up to 32 MiB. Decoded image and device limits also apply.

Work with images in Python

Use Python and Pillow when you want to repeat this task in a script. The example runs on your computer and saves a new image.

Crop an image with Python and Pillow

Keep a 400 × 300 region starting 100 pixels from the left and 50 pixels from the top.

View code and setup

Before you start

  • Install Python 3 with virtual-environment support.
  • Put a copy of your image in a working folder. Use the input filename shown in the script, or change it to match your file.
  1. Run the setup commands for your operating system to install Pillow in a local .venv.
  2. Save the Python code as convert_image.py in the same folder, then run it with the command for your operating system.
  3. The script saves a new image. Change the output filename before running if you want to keep an earlier result.
Install Pillow on macOS or Linux
python3 -m venv .venv
.venv/bin/python -m pip install Pillow

Install Pillow on Windows
py -3 -m venv .venv
.venv\Scripts\python.exe -m pip install Pillow

Python script
from PIL import Image, ImageOps

with Image.open("input.png") as source:
    if getattr(source, "n_frames", 1) != 1:
        raise ValueError("Choose a single still image")
    image = ImageOps.exif_transpose(source).convert("RGBA")
    left, top, width, height = 100, 50, 400, 300
    if left + width > image.width or top + height > image.height:
        raise ValueError("Choose a crop within the oriented image")
    cropped = image.crop((left, top, left + width, top + height))
    cropped.save("cropped.png")

Run on macOS or Linux
.venv/bin/python convert_image.py

Run on Windows
.venv\Scripts\python.exe convert_image.py

Limits and output

  • Coordinates are measured from the top-left after EXIF orientation is applied. Change the rectangle to fit your image.
  • Cropping removes outside pixels without resizing the retained region. This example uses 8-bit RGBA and does not preserve all metadata.

Documentation: Pillow image operations; Pillow tutorial and installation

Common questions

Does cropping resize the picture?

Cropping removes the area outside your selected region. The remaining pixels keep their original scale.

Is my photo uploaded?

Image processing happens in your browser. The site requests ordinary pages and assets, but does not upload your selected image.