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
Upload a PNG.
- 2
Set the rectangle dimensions.
- 3
Choose a background color for any empty areas.
- 4
Click Download to save.
Example
Before640 × 427

After800 × 600

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.
Related tools
Zoom PNGZoom into a region of a PNG.Change PNG Canvas SizeChange the canvas size without scaling the image.Upscale PNGEnlarge a PNG by a percentage.Change PNG Aspect RatioAdjust the aspect ratio of a PNG.Downscale PNGReduce a PNG size by a percentage.Resize PNGChange the width and height of a PNG image.