Aspect Ratio Resizer

Resize an image to a target aspect ratio.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a target width, height or both, then choose how the picture should meet that box. Fit keeps the whole image, Pad adds bars, Fill crops the edges, Stretch distorts. Leave one side empty and it follows the image's own ratio.

How to use

1
Step 1
Choose an image.
2
Step 2
Enter the target width and/or height in pixels.
3
Step 3
Pick a fit mode (and a bar colour for Pad).
4
Step 4
Press Process and download.

How it works

Fit inside scales the image to the largest size that fits the box, so the output can be smaller than the box on one side. Pad and Fill always give exactly width x height: Pad centers the whole image on a coloured canvas, Fill scales until the box is covered and crops the overflow from the center. Stretch ignores the ratio.

Worked example

A 2:1 banner into a square

Input
2000 x 1000 px, target 400 x 400
Output
Fit: 400 x 200 | Pad: 400 x 400 with 100 px bars top and bottom | Fill: 400 x 400, center cropped
Walkthrough
The scale is min(400/2000, 400/1000) = 0.2 for Fit and Pad, so the image becomes 400 x 200.

Limitations

  • Output is JPEG or PNG only.
  • Upscaling cannot add detail.
  • No face or subject aware cropping in Fill.

Questions

How do I resize without distortion?
Use Fit inside, Fit and pad, or Fill and crop. Only Stretch changes the proportions.
Can I enter only a width?
Yes. The height is worked out from the image's own ratio.
What colour are the bars in Pad mode?
White by default; pick any colour.
Is the image uploaded?
No. It is resized in your browser.

Features

  • Width and height fields
  • Four fit modes
  • Bar colour for padding
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • How Image Compression Works

    Leo Isikdogan

    Compression intuition for resize and optimize image tools.

    Watch on YouTube
  • How are Images Compressed? JPEG In Depth

    Branch Education

    JPEG mechanics behind smaller web and social exports.

    Watch on YouTube