Fit PNG in Rectangle

Scale a PNG to fit within a given rectangle while keeping aspect ratio.

Drop an image here

PNG, JPG, WebP, GIF or BMP. You can also paste an image.

No result yet

Options

How to use

  1. 1

    Upload a PNG.

  2. 2

    Set the rectangle dimensions.

  3. 3

    Choose a background color for any empty areas.

  4. 4

    Click Download to save.

Example

Before640 × 427

The example input

After800 × 600

The example result
Fit PNG in Rectangle on a sample photo, with the default settings.

Frequently asked questions

Will the image be distorted?

No. The aspect ratio is always maintained.

About this tool

Fit PNG in Rectangle scales your image down (or up) so it fits entirely within the specified width and height. The aspect ratio is always preserved and the image is centered in the rectangle. All processing runs locally in your browser. Your image is never uploaded to a server.