How to Resize an Image to Exact Pixel Dimensions
By Tools Star Hub Editorial Team · Published
Quick answer: open the Image Resizer, choose a JPG, PNG or WebP file, and type the new width in pixels. With Lock aspect ratio on, the height is calculated for you so the picture is not stretched. Pick JPG, PNG or WebP as the output, resize, and download the new file. Both sides can be anywhere from 1 to 8,192 pixels, and the image never leaves your browser.
Websites, forms, marketplaces and email clients often expect images of a certain width, or reject files that are too large. A phone photo can be 4,000 pixels wide or more, far bigger than most pages display. Resizing to the size you actually need makes pages load faster, uploads succeed, and attachments smaller, without changing what the picture shows.
What does resizing an image actually change?
A digital image is a grid of pixels. A photo that is 4,000 by 3,000 pixels has 12 million of them. Resizing creates a new grid at the size you choose and redraws the picture into it. Shrinking merges neighbouring pixels, so fine detail is averaged away. Enlarging spreads the existing pixels over more space, so the result can look soft.
Resizing is different from cropping. Resizing keeps the whole scene and changes how many pixels describe it. Cropping cuts away the edges and keeps the remaining pixels as they were. If you need a different shape, such as a square from a landscape photo, crop first and then resize.
How do I resize without stretching the picture?
Keep the aspect ratio, which is the relationship between width and height. A 4,000 by 3,000 photo has a 4:3 ratio. If you make it 1,200 pixels wide, the matching height is 1,200 × 3,000 ÷ 4,000 = 900 pixels.
With Lock aspect ratio switched on, the tool does that calculation whenever you change one side, and rounds to the nearest whole pixel. Switch it off only when you deliberately want to force a shape. A 4:3 photo forced into a 1,000 by 1,000 square will look squashed sideways, because the content is stretched rather than trimmed.
| New width | Calculated height | Typical use |
|---|---|---|
| 2,000 px | 1,500 px | Full-width image on a large screen |
| 1,200 px | 900 px | Blog or article image |
| 800 px | 600 px | Email or document |
| 400 px | 300 px | Thumbnail or preview |
Will a smaller image have a smaller file size?
Usually, yes. Fewer pixels means less data to store, so halving both the width and the height leaves a quarter of the pixels. The exact saving depends on the content and the format, and the tool shows the original and output sizes so you can compare.
The output is always a fresh encode. JPG and WebP are saved at a fixed quality of 90, which keeps photos looking clean. PNG is lossless, so a large PNG photo can stay big even after resizing. If the file is still too heavy, run it through the Image Compressor afterwards, where you can lower the quality yourself.
Which output format should I choose?
Choose JPG for photographs that will be shared widely, because almost everything can open it. Choose PNG for screenshots, logos, diagrams and anything with sharp edges or transparency. Choose WebP when the image is going on a website and you want small files with good quality.
One detail to watch: JPG cannot store transparency. If you resize a PNG logo with a transparent background and save it as JPG, the transparent areas are filled with white. Keep PNG or WebP output if the transparency matters.
Can I make a small image bigger?
You can enter a larger size, up to 8,192 pixels a side, and the tool will produce it. What it cannot do is invent detail that was never captured. A 300-pixel logo enlarged to 1,200 pixels will look blurry or blocky around the edges. For sharp large images, go back to the original file, a higher-resolution export, or a vector version of a logo.
What are the limits and privacy details?
The tool accepts JPG, PNG and WebP files up to 25 MB, with each side of the original at 8,192 pixels or smaller. Everything is drawn on a canvas inside your browser tab, so the photo is not uploaded. Because the image is redrawn, camera metadata such as EXIF details is not copied into the new file, which is also a quiet privacy bonus when sharing photos.
Animated images are not supported, and the downloaded name is your original name with “-resized” added, so you will not overwrite the source by accident.
What size should I resize to for common uses?
Start from where the image will be shown. A blog or documentation page usually displays images somewhere between 700 and 1,200 pixels wide, so a width in that range is plenty. Email newsletters are often designed around a column of about 600 pixels. Thumbnails and avatars are much smaller still.
High-density phone and laptop screens pack more pixels into the same space, which is why many sites serve images at up to twice the displayed width. Going beyond that rarely adds visible sharpness but does add weight.
When an upload form names exact dimensions, such as a marketplace asking for a square image, use those numbers. If the shape does not match your photo, decide whether you would rather crop or add space around it before resizing, because forcing a different ratio distorts the picture.
Does DPI matter when I resize?
Screens care only about pixel dimensions. DPI, or dots per inch, is a print setting that tells a printer how large to make those pixels on paper. Changing it without changing the pixels does not make an image sharper.
For print, work backwards from the paper size. A 6 × 4 inch print at 300 dots per inch needs about 1,800 × 1,200 pixels. If your file is smaller than that, the print may look soft, and resizing up will not add real detail.
How to resize an image online
- Choose the image. Select or drop a JPG, PNG or WebP file. The tool shows the original width, height, file size and name.
- Enter the new size. Type a width or height in pixels. Keep Lock aspect ratio on to have the other side calculated, or switch it off to set both yourself.
- Pick the output format. Choose JPG, PNG or WebP. JPG is the default and suits most photos.
- Resize and download. Run the resize, check the new dimensions and output size, and download the file with “-resized” in its name.
Example
A phone photo for a blog post
A 4,032 × 3,024 photo is resized to 1,200 pixels wide with the ratio locked. The height becomes 900 pixels, and the JPG output is far lighter than the original camera file.
A profile picture that must be square
The source is 1,600 × 1,200. Forcing 400 × 400 would distort a face, so crop a 1:1 square in the Image Cropper first, then resize the square to 400 × 400.
A transparent logo for a website
A 2,000-pixel PNG logo is resized to 500 pixels wide and kept as PNG, so the transparent background survives. Saving it as JPG would put it on white.
Tips and limitations
Resize from the original
Each resize redraws the image. Starting again from the original each time gives better results than resizing an already-resized copy.
Know the display size
If a page shows an image at 800 pixels wide, a 4,000-pixel file wastes bandwidth. Allow up to twice the display width for sharp screens.
Use the Aspect Ratio Calculator for planning
When a platform gives you a ratio rather than a size, work out the pixel pair there and type it in here.
FAQ
- What is the largest size I can resize to?
- Each side can be up to 8,192 pixels. The smallest allowed size is 1 pixel.
- Why did my height change on its own?
- Lock aspect ratio is on, so the height follows the width to keep the picture in proportion. Switch it off to set both values freely.
- Does resizing remove EXIF data such as location?
- The new file is redrawn from the pixels, so camera metadata is not copied into it. Keep the original if you need that information.
- Why is my resized PNG still large?
- PNG is lossless and stores every pixel exactly. For photos, choose JPG or WebP output, or compress the PNG afterwards.
- Can I resize several images at once?
- No. The tool handles one image at a time, which keeps the browser responsive.
- What JPG quality does the resizer use?
- JPG and WebP outputs are saved at quality 90. Use the Image Compressor if you want to set a lower quality.
- Can I resize by percentage?
- Not directly. Multiply the original width by your percentage, type the result as the width, and let the locked ratio set the height.
- Does it work with HEIC or GIF files?
- No. It accepts JPG, PNG and WebP. Convert other formats on your device first.
- Will enlarging a photo make it sharper?
- No. Enlarging spreads existing pixels over a bigger grid, so it usually looks softer, not sharper.
- What will the downloaded file be called?
- Your original file name with “-resized” added and the extension of the format you chose, such as holiday-resized.jpg.
- Should I resize before or after color correction?
- Either works; many people color-correct the master, then export resized derivatives so edits stay consistent.
- How do I keep aspect ratio when only width is known?
- Enter width and leave height locked so the tool scales height proportionally.
- Is nearest-neighbor better for pixel art?
- Yes for sharp pixels—avoid soft resampling that blurs hard edges.
- Can I downsize for email attachments?
- Yes—pick a width that fits the client and compress after if the file is still heavy.
- Why does my print look soft after upsizing?
- Enlarging invents pixels; start from a higher-resolution original when print sharpness matters.
- Do social platforms need exact pixel sizes?
- They often accept a range, but matching published sizes reduces unexpected crops.
- How should I name resized exports?
- Include dimensions in the filename so teams can tell 1080-wide from 2048-wide versions.
- Can SVG icons be resized in this flow?
- This path targets raster photos; scale SVGs in a vector editor or as CSS.
- Does locking aspect ratio affect crop needs?
- Locking scales the whole frame; cropping is still required when composition must change.
- What if my form rejects files over a max dimension?
- Set both sides at or under the limit, then recheck the download’s pixel size.
Resize a photo to the exact size you need with the free Image Resizer.
To change the shape before resizing, use the Image Cropper.
To shrink the file further, try the Image Compressor.