How to resize an image to exact pixel dimensions
- Drop a PNG, JPEG or WebP file onto the upload area, or click it and choose a file. Once the image loads, the width and height fields fill in with its original size, and the image appears under "Before".
- Type the width you want. Lock aspect ratio is checked by default, so the height updates to keep the same proportions. If you need a different shape, such as a 16:9 banner from a 4:3 photo, untick it and type both numbers.
- Pick a Resize mode. Fit within bounds keeps the whole picture inside the box. Cover and crop fills the box exactly and trims the overflowing edges equally from both sides. Stretch to exact size forces the image into the box and may distort it.
- Choose an Output format (PNG is selected by default). For JPEG or WebP you can also set the quality slider (10–100%, default 85%). The slider is disabled for PNG.
- Click Transform image. The "After" panel shows the new dimensions and the estimated file size next to the original's. Then click Download result.
Shortcut buttons replace steps 2, 3 and the Transform image click. 50%, 75% and 150% scale the image and render it straight away. 1080 × 1080 and 1920 × 1080 fill in a target box and render using the mode you have selected. All of them use the output format that is currently selected, so choose the format first. You still need to click Download result.
What each resize mode does to a 4000 × 3000 photo
The same 4:3 camera photo gives different results depending on the mode and target box:
| Target box | Mode | Output size | What happens |
|---|---|---|---|
| 1920 × 1080 | Fit within bounds | 1440 × 1080 | Whole photo kept, height is the limiting side |
| 1920 × 1080 | Cover and crop | 1920 × 1080 | 375 px trimmed from the top and from the bottom of the original (centre 4000 × 2250 kept) |
| 1920 × 1080 | Stretch to exact size | 1920 × 1080 | Whole photo squeezed vertically |
| 1080 × 1080 | Fit within bounds | 1080 × 810 | Not square: the photo keeps its 4:3 shape |
| 1080 × 1080 | Cover and crop | 1080 × 1080 | Centre 3000 × 3000 square kept, 500 px cut from the left and from the right |
With the lock on, typing 1200 in the width field of the same photo sets the height to 900. The 50% button turns it into 2000 × 1500.
For a true square, such as an Instagram post, select Cover and crop before clicking the 1080 × 1080 preset. Check the mode again if you have used a percentage, rotate or flip button, because those switch it to Stretch to exact size. To choose which part of the photo stays instead of using a centred crop, crop it first with the Image Crop Tool and then resize it.
Typical jobs this resizer handles
- Shrinking a phone photo before emailing it or uploading it to a form with a pixel limit: set Output format to JPEG first, then click 50% or type a width like 1600 and click Transform image.
- Making a 1920 × 1080 slide background or desktop wallpaper from a photo with a different shape, without black bars (Cover and crop).
- Producing a square avatar or product thumbnail for a marketplace listing.
- Turning a sideways scan upright with Rotate 90°, or mirroring a selfie with Flip H before resizing it.
- Converting while resizing: a photo or scanned document stored as PNG is usually much smaller when saved as JPEG or WebP. Keep screenshots with text in PNG, because JPEG blurs sharp edges.
The image is decoded and redrawn on a canvas in your browser. The article on working with images in the browser explains how this works.
Limits and things to watch for
- Input: PNG, JPEG or WebP only, up to 20 MB. GIF, HEIC, TIFF and SVG files are rejected.
- Size: width and height must be whole numbers from 1 to 12,000 px, and the image can be no larger than 40 megapixels. This applies to both the original and the target, so 150% of a large photo can exceed the limit.
- Transparency is kept in PNG and WebP. When you save as JPEG, transparent areas become white.
- Rotating resets the width and height to the full size of the rotated original, so rotate first and then set your target size.
- One image at a time. For a folder of photos, use the Batch image resizer. To hit a file-size target rather than a pixel size, finish in the Image Compressor.