How to Resize a Photo to Exact Pixel Dimensions

What pixels really mean, why your photo stretches, how to work out the matching height, and how to resize several pictures to exact sizes in your browser.
Table of Contents
A website asks for a photo of 600 by 600 pixels. Your picture is 4032 by 3024. If you drag it smaller in a random editor, the face may come out squashed or the form may refuse it again. Resizing is simple once three ideas are clear: what a pixel size is, what aspect ratio means, and which of the two numbers you actually have to type.
Pixels, kilobytes and print size are different things
The pixel size is the width and height of the image measured in dots, for example 1920 by 1080. The file size, measured in KB or MB, is how much storage the file takes. They are related, because more pixels usually mean a bigger file, but they are not the same. Two photos with identical pixel sizes can differ a lot in kilobytes depending on their content and format.
Print size is a third thing. It depends on how many pixels you place on each inch of paper. For a sharp print people usually aim for around 300 pixels per inch, so a 10 by 15 centimetre photo needs roughly 1200 by 1800 pixels. On screens this number matters much less than the plain pixel size.
Aspect ratio, the reason photos stretch
The aspect ratio is the shape of the picture, the relationship between width and height. A photo of 4000 by 3000 has a ratio of 4 to 3. If you force it into a square, the horizontal and vertical directions are scaled by different amounts and people look wider or thinner.
To find the matching height for a new width, multiply the new width by the old height and divide by the old width. For a 4000 by 3000 photo resized to 800 wide: 800 times 3000 divided by 4000 equals 600. The result is 800 by 600, the same shape. With the keep aspect ratio option switched on, the tool does this calculation for you.
Resizing step by step
Open the Resize Image tool and add your photo. It accepts JPG, PNG and WEBP. Choose how to resize.
Percentage scales both sides by the same amount, so 50 percent turns 4000 by 3000 into 2000 by 1500. It is the fastest option when you only need a smaller copy. Width and height lets you type exact numbers, up to 10000 pixels per side, and the original size is shown beside the new one so you can compare.
Press the button and download the result. The image keeps its original format, and everything runs in your browser, so the photo is not uploaded.
When the form wants a square from a rectangle
This is the case that trips people up. You cannot turn a 4 to 3 photo into a square by resizing without distorting it. You have to cut away part of it first. Use Crop Image to select a square area around the subject, then resize that square to the requested pixels, for example 600 by 600.
Typical sizes people need
Profile pictures on many platforms are square, often a few hundred to a thousand pixels per side. Images inside a web page rarely need to be wider than about 1600 pixels. Forms for personal photos state their own numbers, and you should follow them exactly rather than guessing. For email and chat, a width around 1200 to 1600 pixels looks sharp and loads quickly.
Making an image bigger
Shrinking removes pixels cleanly. Enlarging is different, because the software has to invent the missing dots from their neighbours. A small increase often looks acceptable, but doubling or tripling a small image usually looks soft or blocky. If you need a large print, go back to the original photo if you still have it.
Resizing several images at once
You can add up to fifty pictures, each up to 30 MB. With the ratio locked, each keeps its own shape at the width you set, which is handy for a gallery where everything should be, say, 1200 pixels wide. They download together in a ZIP.
Checking the result
Open the new file and look at it at actual size. Faces should look natural, small text should be readable, and the dimensions should match what was requested. If the upload form also limits kilobytes, run the resized copy through Compress Image afterwards. Resizing first makes that second step much more effective.
A worked example for a website photo
Suppose a shop owner has product pictures straight from the phone at 4032 by 3024, and the web page shows them at 800 pixels wide. Sending the originals makes the page slow, especially on mobile data. Set the width to 800 with the ratio locked and the height becomes 600. For very sharp screens, some people use double the displayed width, so 1600 by 1200 is a sensible choice. Resize all the product photos together, then compress the results, and the page loads far faster while looking the same.
The same reasoning works for a school assignment, a slide deck or a newsletter: find the width at which the picture will actually be shown, resize to that, and stop there.
Common mistakes
Typing both numbers without locking the ratio when you only meant to make the picture smaller is the most frequent one, and it is what produces the stretched look. The second is resizing the only copy: always work on a duplicate so you can start again. The third is confusing a request for pixels with a request for kilobytes. Read the instruction twice before you change anything.
Why the same photo can look different on two screens
Screens have different pixel densities. A modern phone packs many physical pixels into a small area, so an image that looks sharp on a laptop may look slightly soft on a phone if it is too small. This is why web designers often prepare a version around twice the displayed width. For forms and documents you do not need to think about this; follow the numbers they request.
What to do when the numbers do not fit
Sometimes a form asks for a size that does not match your photo's shape at all, such as a tall portrait rectangle from a landscape picture. Resizing alone would stretch it. Decide what part of the image matters most, crop to the requested shape around it, and then resize to the exact pixels. Two steps, no distortion, and the subject stays centred.
Keeping track of your versions
If you resize the same picture for different places, name each copy with its size, such as photo 600x600 and photo 1600x1200. It sounds fussy, but it stops you uploading the wrong one and having to start over.
Dimensions and page speed
If you run a website or a shop, image dimensions are one of the biggest factors in how fast your pages feel. A picture 4000 pixels wide shown at 800 means every visitor downloads far more than they see. Resizing to the displayed size saves their data and makes pages appear sooner, especially on slow networks, with no visible loss.
Questions people ask
Will the image lose quality when I shrink it?
A smaller image keeps looking sharp at its new size. The tool uses smooth resampling so edges stay clean.
Can I resize on a phone?
Yes, the tool works in mobile browsers. Type the numbers and download the result.
What happens to a transparent PNG?
It stays a PNG, so the transparent areas are kept.
In short
Know whether you need pixels or kilobytes, keep the aspect ratio unless you intentionally want another shape, crop before resizing into a square, and avoid enlarging small photos. The Resize Image tool takes care of the calculation.
Ready to try Resize Image?
Change the width and height of JPG, PNG, and WEBP images — by percentage or exact pixels.


