IMAGE RESIZING GUIDE

How to Resize an Image to Specific Dimensions

If a website or document asks for an image with a particular width and height, you need to change its pixel dimensions. This guide explains how image resizing works and how to avoid making a picture look stretched or squashed.

What do image dimensions mean?

Image dimensions are usually written as width × height in pixels. For example, an image that is 1920 × 1080 pixels is 1920 pixels wide and 1080 pixels tall. Changing those numbers changes the number of pixels used to display the image.

Pixel dimensions are different from file size. A JPG can be large or small in kilobytes while having the same dimensions. If your requirement is about file size rather than width and height, use an Image Compressor instead.

Resize vs. compress vs. crop

These operations can be combined. For example, an oversized photo might first be resized to more appropriate dimensions and then compressed to meet a file-size limit. If you need both, see How to Compress a JPG to 100KB Online.

How to resize an image to exact dimensions

  1. Open the ToolAlto Image Resizer.
  2. Select the image you want to resize.
  3. Enter the desired width in pixels.
  4. Enter the desired height in pixels.
  5. Choose Resize image.
  6. Download the resized result.

ToolAlto uses the exact width and height you enter. This is useful when a form, website, document, or other destination gives you a specific pixel requirement.

How to avoid stretching or squashing

An image has an aspect ratio: its width compared with its height. If you resize it to dimensions with a different aspect ratio, the image can look stretched or compressed in one direction.

For example, changing a wide 16:9 image to a much more square shape without cropping can distort people, objects, and text. When the original proportions matter, calculate a matching height from the desired width or crop the image first.

ToolAlto's Image Resizer deliberately uses the exact dimensions you provide rather than silently changing one of them. That gives you control, but it also means you should check that the two numbers have the proportions you want.

When should you resize by width or height?

If a destination only specifies one dimension, preserving the original aspect ratio is often the simplest approach. For example, you may know the maximum width you want while allowing the height to follow the original proportions.

If a destination requires both dimensions, enter both exact values. If those values do not match the original aspect ratio, consider whether the destination expects cropping rather than distortion.

Common dimension examples

Different projects use different image sizes, so there is no single correct dimension for every situation. As examples, 1920 × 1080 is a common widescreen shape, while 1080 × 1080 is a square shape. Treat these as examples rather than universal requirements and follow the dimensions specified by your destination.

What happens when you enlarge an image?

Making an image larger does not create the missing original detail. The browser has to interpolate pixels, so an enlarged image can look softer or less sharp than the source. For the best result, start with an image that already has enough resolution for the intended size.

JPG or PNG after resizing?

ToolAlto keeps PNG input as PNG so transparency can be preserved. Other supported image types are saved as JPEG. For photographs, JPEG is often a practical choice when file size matters; for graphics that need transparency, PNG may be preferable.

For more detail on the formats, read JPG vs PNG: Which Image Format Should You Use?.

Frequently asked questions

Can I resize an image to exact pixels?

Yes. ToolAlto's Image Resizer accepts a width and height in pixels and creates a result using those exact dimensions.

Will resizing reduce the file size?

It can, because fewer pixels can require less storage, but the final file size also depends on the image format and encoding. If you have a specific KB or MB limit, check the final file size and use the Image Compressor when necessary.

Will resizing preserve the aspect ratio?

Not automatically. The tool uses the exact width and height you enter. To preserve proportions, choose dimensions with the same aspect ratio as the original image.

Can I resize a transparent PNG?

Yes. PNG input is kept as PNG, allowing transparency to be preserved in the resized result.

Is the Image Resizer free?

Yes. ToolAlto's Image Resizer is free to use online without an unnecessary signup step.

Resize your image

Enter the exact pixel dimensions you need and create a resized image directly in your browser.

Open Image Resizer →

← Browse all guides · Browse all tools →