How to Resize an Image to an Exact Size (Pixels, Ratio, and File Size)
Resize a photo to exact pixel dimensions for forms, profiles, and marketplaces. Pixels vs DPI, keeping the aspect ratio, cropping, and meeting KB limits.
To resize an image to an exact size, open the Image Resizer, load your photo, enter the width and height in pixels, and click resize. If the target has a different shape from your photo, crop it to that shape first or it will look stretched. If a form also sets a file-size limit in KB, compress the resized image afterwards with the Image Compressor.
Pixels, DPI, and why forms confuse them
Pixels are what matter for anything on a screen or uploaded to a website. An image that is 600 × 600 pixels has 600 columns and 600 rows of dots, whatever the "DPI" says.
DPI (dots per inch) only matters when printing. It says how many of those pixels to squeeze into an inch of paper. A 600 × 600 image printed at 300 DPI is 2 × 2 inches. The same file at 150 DPI prints at 4 × 4 inches.
When an upload form says "600 × 600 pixels", match the pixels. When it says "2 × 2 inches at 300 DPI", that also works out to 600 × 600 pixels: multiply inches by DPI.
Always check the official requirements for passports, visas, and exams. They specify exact pixel sizes, file types, KB limits, backgrounds, and head position, and these differ between countries and change over time.
Aspect ratio: the stretched-photo trap
Aspect ratio is the shape of an image: width divided by height. A typical phone photo is 4:3 (for example 4032 × 3024). A square profile picture is 1:1.
If you force a 4:3 photo into 600 × 600, it gets squashed. The Image Resizer has a lock aspect ratio option, on by default. While it is on, changing the width updates the height automatically so the shape is kept.
To reach an exact size with a different shape:
- Crop first to the target shape using your phone or computer's photo editor (most have preset ratios like Square or 3:4).
- Then resize with the aspect ratio locked. The numbers will now land exactly on the target.
Only unlock the ratio when you really need to fill exact dimensions and slight distortion doesn't matter.
Step by step
- Open the Image Resizer and choose your image (JPG, PNG, or WebP).
- Note the original size it shows, for example
Original: 4032 x 3024 px. - Enter the target width. With the ratio locked, the height follows.
- Resize, preview, and download.
The resizer keeps PNG files as PNG and saves other formats as high-quality JPG. Resizing happens on your device, so ID photos and personal pictures are never uploaded.
Hitting a KB or MB limit
Pixel size and file size are related but separate. If a form says "max 200 KB":
- Resize to the required pixel size first. Smaller dimensions alone often fix it.
- Still too large? Open the Image Compressor and lower the quality slider. It shows the new file size, so you can try 80%, 70%, 60% until you are under the limit.
- Use JPG for photos. PNG is lossless and usually much bigger for photographs. The Image Converter can switch formats.
Making images smaller vs larger
Shrinking an image works well. Enlarging can't add detail that was never captured: a 300-pixel image stretched to 1200 pixels just looks soft. If you need a large image, start from the original high-resolution file, not a copy taken from a chat app or social network, which usually downsizes uploads.
Typical sizes people resize to
These are common starting points. Platforms change their recommendations, so check their help pages:
- Profile pictures: square, often 400–1000 px.
- Website hero or banner images: 1600–2000 px wide is usually enough. See compressing images for a faster website.
- Images inside documents or PDFs: about 2000 px on the long side. See turning photos into a PDF.
- Email attachments: 1200–1600 px is plenty for viewing on screen.
Quick answers
Does resizing reduce quality? Shrinking keeps it looking sharp at the new size. Enlarging makes it soft.
Why does my resized photo look stretched? The aspect ratio was unlocked and the target had a different shape. Crop first, then resize.
Which format should I choose? JPG for photos, PNG for screenshots and graphics with sharp edges, WebP for websites. The details are in WebP vs AVIF vs JPEG vs PNG.
More tools for images are in the image tools collection.