How to Resize an Image to Exact Pixels
Resize a JPG, PNG or WebP image to exact pixel dimensions: pixels vs file size, keeping proportions, common sizes, quality and phone photo orientation, with Resize Image.
A photo straight from a phone is usually 4000 pixels wide or more. That is far bigger than almost anywhere you want to put it: a website banner, a shop listing, a profile picture or an online form that rejects anything over 1200 pixels. This guide explains pixel dimensions, how to resize to an exact size with Resize Image, and how to avoid the two classic mistakes: stretched pictures and blurry ones.
Pixels, not kilobytes
An image's dimensions are its width and height in pixels, such as 1920 × 1080. Its file size is how much storage it takes, such as 850 KB. They are related but not the same: a smaller image usually makes a smaller file, but not to a predictable number.
- If a site asks for "1200 pixels wide" or "400 × 400", you need resizing.
- If a form says "maximum 200 KB", you need compression: use Compress Image.
- If it asks for both, resize first, then compress.
How to resize an image to exact pixels
- Open Resize Image and upload a JPG, PNG or WebP image (up to 100 MB).
- Keep "By Dimensions" selected.
- Type the width, the height, or both, in pixels.
- Click Process and download the resized image.
The image is uploaded over an encrypted connection, resized in memory on our server and released as soon as the result is returned. We do not keep it.
One side or both?
Give one side to keep the proportions
Type only the width, and the height is worked out for you from the original shape (or the other way round). A 4032 × 3024 photo resized to a width of 1200 becomes 1200 × 900. This is the right choice almost every time, because the picture is never stretched.
Give both for an exact box
Type both and you get exactly that size. If the new shape differs from the original, for example a landscape photo into a 400 × 400 square, the picture is squeezed to fit and faces look wrong. To change the shape properly, crop first with Crop Image, choosing the area you want, and then resize.
Worked example: a product photo for a shop listing
An online shop asks for product images 1200 pixels wide. Your phone photo is 4000 × 3000. Open Resize Image, upload the file, keep "By Dimensions", and type 1200 in the width box, leaving the height empty. The height is worked out from the original shape: 3000 × (1200 ÷ 4000) = 900, so you get 1200 × 900, the same proportions as the original. Download it and check the result looks right before you upload it.
Now the shop also wants a thumbnail 500 pixels high. Type 500 in the height box with the width empty. The width becomes 4000 × (500 ÷ 3000), about 667, and the tool rounds to the nearest whole pixel, so the result is 667 × 500. If the shop insists on exactly 500 × 500, crop to a square first with Crop Image, then resize, so the picture is not squeezed.
If the same shop also limits files to 300 KB, resize first and then run the result through Compress Image. Doing it in this order gives the compressor less to work with, so it can reach the target size with fewer visible changes.
Common sizes
- Full-width website image: 1920 pixels wide.
- Blog or article image: 1200 pixels wide.
- YouTube thumbnail: 1280 × 720.
- Square profile picture: 400 × 400 (crop to a square first).
- Email newsletter image: about 600 pixels wide.
Platforms change their recommendations from time to time, so check the current help page of the site you are uploading to.
What happens to quality
Shrinking an image throws pixels away, but a good resampling filter keeps edges and text crisp. Resize Image uses the Lanczos filter, a standard high-quality choice for reducing images. JPEG files are saved again at quality 92, which is very close to the original; PNG and WebP keep their format, and transparency and the colour profile are kept.
Enlarging is different. Making a small image bigger cannot invent detail that was never captured, so it looks soft. Always start from the largest original you have, and keep it: once you have resized down, you cannot get the detail back.
Phone photos and orientation
Phones often save pictures sideways and add a small note (the EXIF orientation tag) telling viewers to turn them. Resize Image applies that note before resizing, so the width and height you type refer to the photo as you see it, and the result is the right way up in every app. The resized copy does not carry the original EXIF details such as GPS location, which also makes it safer to share.
Limits
Each side of the result can be up to 10,000 pixels, and the whole image up to 50 million pixels. Uploads can be up to 100 MB.
Quick checklist
- Read whether the site wants pixels or kilobytes.
- Enter one side to keep proportions; crop first if the shape must change.
- Shrink from the largest original; avoid enlarging.
- Compress afterwards if there is also a file size limit.
Common mistakes
- Typing both sides for a different shape. The picture is squeezed, not cropped. Crop first.
- Confusing pixels with kilobytes. A form asking for "max 2 MB" is about file size. Resize does not aim for a size; use Compress Image or the "By File Size" setting.
- Enlarging a small image. A 300-pixel-wide thumbnail stretched to 1200 pixels looks soft. Find the larger original instead.
- Resizing an already resized copy. Each save of a JPEG is another round of compression. Always start from the original and keep it.
- Going over the limits. More than 10,000 pixels on a side, or more than 50 million pixels in total, is rejected with the message "Width and height must be between 1 and 10000 pixels."
Short FAQ
Which formats can I resize?
JPG, PNG and WebP images up to 100 MB. The result keeps the same format as the file you upload.
Will the resized image keep its transparency?
PNG and WebP files keep their format, and the tool keeps the colour profile. Transparency is kept for formats that support it, as stated above.
Do I need an account or to install anything?
No. The tool is free and needs no signup. The image is uploaded to our server for processing, as described above.
I need the same size for many images. What now?
The page handles one image at a time, so repeat the steps for each. Use the same width every time and the heights will follow each picture's own shape.
EZEPDFTOOLS Team
Editorial team
Written by the team that builds and maintains the EZEPDFTOOLS tools.
Start Using Resize Image
Put this guide into practice immediately with our professional-grade Resize Image tool.
Go to Resize Image