Resize images to exact pixel dimensions

Set a new width or height, keep the proportions locked, and download the resized image.

Illustration of a photo with resize handles and width and height guides

Drop an image here or choose one:

Supported inputs and limits

JPEG, PNG and WebP images up to 25 MB. Each output side can be up to 8,000 px, with a total under 40 million pixels, because larger canvases fail in many browsers.

How to use this tool

  1. Choose an image. Its width and height appear in the boxes.
  2. Type a new width or height. With “Keep aspect ratio” ticked, the other value updates automatically.
  3. Untick the box only if you intentionally want to stretch or squash the picture.
  4. Press Resize image, check the preview and the new dimensions and size.
  5. Download the file. The name includes the new dimensions.

Examples

Width-based. A 4000 × 3000 image resized to width 1200 gives height 900 (1200 × 3000 ÷ 4000).

Height-based. A 1920 × 1080 image set to height 540 gives width 960.

Square crop is not resizing. Forcing 800 × 800 on a 3:2 photo with the lock off distorts it. Resizing changes every pixel’s scale; cropping removes part of the picture. This tool resizes only.

How it works

The tool draws the original onto a canvas of the new size with high-quality smoothing and re-encodes it in the original format (JPEG at quality 92, PNG lossless, WebP at 92). Shrinking is generally safe. Enlarging cannot add real detail and often looks soft.

Limits and troubleshooting

If the numbers change unexpectedly, check the aspect-ratio box. Whole numbers are required, and rounding can leave a one-pixel difference from the exact ratio. Transparent areas in PNG stay transparent; in JPEG they become white. EXIF data is not preserved.

Privacy

Your image is processed locally by browser APIs and is not uploaded by the tool code. Server access logs and other practices are described in the Privacy Policy.

Choosing the right size

Work backwards from where the picture will be used. A page that shows an image 600 pixels wide benefits from a file around 1200 pixels wide, which keeps it sharp on high-density screens. A thumbnail of 200 pixels does not need a 4000-pixel original. For print, multiply the print size in inches by 300: a 6 × 4 inch print needs about 1800 × 1200 pixels. Whenever a form states required dimensions, use exactly those.

How rounding works with the ratio lock

Pixels are whole numbers, so the other dimension is rounded. Suppose you have 1920 × 1080 and set the width to 1000. The exact height would be 562.5, and the tool rounds it to 563. The result is very slightly different from the original ratio, which is invisible in practice. If a form insists on an exact ratio, choose a width that divides evenly, for example 960 (height 540) or 1280 (height 720).

More examples

What stays the same and what changes

The output keeps the file type you loaded. JPEG output is written at a fixed high quality of 92, PNG is lossless, and WebP is written at quality 92. Transparency in PNG and WebP is kept; in JPEG there is none to keep. Metadata is not carried over. If you also need a smaller file, run the resized copy through the Image Compressor.

Limits

Troubleshooting

What you seeLikely reasonWhat to try
Image looks stretchedThe ratio lock was offTick “Keep aspect ratio” and re-enter one dimension
Error about sizeDimensions exceed the limitsUse smaller values
Fuzzy pictureThe image was enlargedStart from a higher-resolution original
File size barely changedDimensions changed littleResize more, then compress

For a deeper explanation of ratios, see how to resize images without losing their aspect ratio.

Frequently asked questions

What is the difference between resizing and cropping?

Resizing scales the whole picture. Cropping cuts away part of it.

Why is my image blurry after enlarging?

Enlarging stretches existing pixels and cannot create detail that was never captured.

Which format is the output?

The same format as the file you uploaded.

Related tools

Related articles