Skip to content

FREE · LOCAL · NO ACCOUNT

Resize an image online

Choose an image, set its dimensions and download a resized copy. Your original stays unchanged.

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 dimensions and review
  2. Download resized 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

Keep proportions to resize without stretching.

Increasing dimensions does not recover missing detail.

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.

Resize an image with Python and Pillow

Fit an image inside 400 × 300 pixels while keeping its proportions.

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")
    image.thumbnail((400, 300), Image.Resampling.LANCZOS)
    image.save("resized.png")
    print(image.size)

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

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

Limits and output

  • thumbnail fits within the box and does not enlarge smaller images. The result need not be exactly 400 × 300.
  • Resampling changes pixels and cannot recover missing detail. This example uses 8-bit RGBA and does not preserve all metadata.

Documentation: Pillow image operations; Pillow tutorial and installation

Common questions

Will resizing change my original file?

No. Downloading saves a separate copy. Keep your original for future edits.

Can I make an image larger?

You can increase dimensions within the supported limits, but upscaling cannot recover detail missing from the original.