How to Resize Images Online to Exact Pixel Dimensions
Resize a photo or picture online to an exact width and height in pixels. Keep the aspect ratio, choose the right file format and check the result before you use it.
An online image resizer changes a picture's pixel dimensions, which are its width and height in pixels, without installing any software. This guide shows how to resize a photo to an exact size in px. Typical uses are a profile picture, a thumbnail, or an upload form that rejects images above a certain width. It also covers how to check the result.
Before you start
Find out the exact width and height the destination requires, in pixels. Also check whether it limits file size or file format. If a requirement gives only one dimension, you can usually scale the other one proportionally.
Online or local processing
An online resizer runs in your web browser, but that doesn't tell you where your image is processed. Some tools upload the file to a server, and others process it inside the browser. Read the tool's own description and privacy policy to learn how it handles files, how long it keeps them and whether it deletes them. If that information is missing or unclear, assume the image leaves your device. In that case, don't use the tool for ID scans, documents or private photos. For sensitive images, use an image editor already installed on your computer or phone, which can resize without uploading anything.
- Keep a copy of the original file. Reducing an image discards pixels, and you can't recover them from the smaller version.
- Note the original pixel dimensions. Your image viewer or the file's properties usually show them.
- Check whether the image has transparent areas, such as a logo on a clear background. Transparency limits which file formats you can save to.
- If you use a free image resizer, check its limits before you upload. Look for limits on file size and number of images, and for whether it adds a watermark.
Step-by-step instructions
Labels and layouts differ between tools. The steps below describe which settings to look for, not specific buttons. Follow them in order.
- Open the resizer and load your image, usually by selecting the file or dragging it onto the page. Check that the tool shows the original dimensions you noted. If it doesn't, the file may not have loaded correctly.
- Set the unit to pixels. Some tools also offer percentage, centimetres or inches, but for an exact pixel size, choose px.
- Decide whether to keep the aspect ratio. With the ratio locked, entering the width calculates the height for you, which prevents stretching or squashing. The setting may be called keep proportions or lock aspect ratio, or appear as a chain icon.
- Enter the target width or height. If the destination needs a width and height that don't match the photo's proportions, see the next section first.
- Choose an output file format. If the tool offers a quality or compression setting, choose that too.
- Apply the resize and download the result. Save it under a new name so the original stays untouched.
When the exact size doesn't match the aspect ratio
The aspect ratio is the width divided by the height. For example, a 4000 × 3000 photo has a 4:3 ratio. Resized proportionally to 1200 pixels wide, it becomes 1200 × 900. If you need exactly 1200 × 1200, you have three options, and each changes the picture differently. Not every tool offers cropping or padding. If yours only resizes, crop the image in a separate step first.
- Crop: cut the image to the target ratio first (a square, in this example), then resize it. Nothing is distorted, but you lose the edges, so place the crop so the subject stays in frame.
- Fit with padding: shrink the image until it fits inside the target box, then fill the empty space with a background colour or transparency. Nothing is cut off, but you get bars along two sides.
- Stretch: unlock the aspect ratio and enter both numbers. The image fills the box exactly, but faces and objects look distorted. Use this only when the ratio change is small or distortion doesn't matter.
Choosing a format and compression
- JPEG suits photos. It uses lossy compression: lower quality settings make smaller files with more visible artefacts. JPEG doesn't support transparency, so transparent areas are filled with a solid colour chosen by the tool.
- PNG uses lossless compression and supports transparency, which makes it a good choice for logos, screenshots and graphics with text. A photo saved as PNG is typically much larger than the same photo saved as JPEG.
- WebP supports lossy compression, lossless compression and transparency. Before choosing it, confirm that the site or app you're uploading to accepts WebP.
Unless the destination requires a different format, keeping the original format is the safest choice. Also note that pixel dimensions and the DPI (or PPI) value are separate settings. Changing only the DPI doesn't change the width and height in pixels or how the image looks on screen. If a form asks for a size in pixels, set the pixels.
Check the output
- Open the downloaded file's properties or info view and confirm that the width and height match the target exactly. A tool that keeps proportions may round to the nearest whole pixel and leave you one pixel off. If the destination is strict, fix the other value by hand or crop.
- View the image at 100% zoom (actual size). Look for blur, jagged edges or blocky compression artefacts, especially around text and fine detail.
- Check the orientation. Phones and cameras often store rotation in a metadata tag. If the tool ignores or removes that tag, the result can appear sideways.
- If the original had transparency, place the result on a coloured background or open it in a viewer that shows a checkerboard. This confirms the transparent areas survived.
- Compare the file size with any limit at the destination.
- If privacy matters, check the metadata. A resizer may keep or remove EXIF data such as camera details and location. Don't assume either way; confirm it with a metadata viewer.
After you upload, check how the image looks at the destination. Some sites and apps compress or crop images again on their side, so a correct file can still display differently there.
Common problems and next steps
The resized photo looks blurry
Enlarging a small image can't add real detail, because the resizer can only estimate the new pixels. Start from the largest version of the photo you have. If the image looks soft after shrinking, the source may already have been heavily compressed, or the output quality setting may be too low. Raise the quality setting, or save graphics with text as PNG.
The output size differs from what you entered
With the aspect ratio locked, the tool recalculates the second value to keep the image's proportions. Unlock the ratio only if you accept stretching; otherwise, crop first. If width and height appear swapped, the tool may have read the orientation tag differently from your viewer. Rotate the image so it displays upright, then resize again. Some free tools also cap the maximum output size, so check the tool's stated limits.
The file is still too large
Pixel dimensions and file size are related, but they aren't the same thing. To reduce the size in bytes, lower the JPEG quality, reduce the dimensions further if the destination allows it, or save a photo as JPEG instead of PNG. Some resizers offer a target file size option, but how they reach that target varies, so check the result as described above.
A transparent background turned white or black
This usually means the image was saved as JPEG, which can't store transparency. Go back to the original file and export it as PNG or WebP.
Watermarks, upload limits or many images to resize
Free online tools differ in their limits on file size, number of uploads and watermarks. Read those terms before you start, not after. To give many images the same pixel dimensions, look for a batch option in the online tool or in a desktop image editor. Then spot-check several of the output files rather than assuming they all came out right.
If a result isn't right, resize again from the original rather than from the resized copy. Each lossy save loses more quality, and an image made smaller can't be enlarged back to its original detail.