Resize an image to a specific width or height

Set image dimensions in pixels for a form, website or document.

Local processing
YOUR WORKSPACE

Your image stays on this device.

Generated test graphic · 1,200 × 800 px · Transparent PNG

Try 600 × 400 px with proportions locked. Compare the fine lines and corner markers with the original.

Loading the sample replaces the workspace image. Your original file stays unchanged.

Output settings

JPG uses a white background for transparent areas.

Choose an image or load the sample to get started.

Image preview

Your image will appear here

Processed in your browser

No upload, no sign-up. Your original file is never changed.

Your inputs stay on this device. No account or file upload needed.

Does changing pixels also change print resolution?

Pixel dimensions describe the image grid. Print resolution describes how densely that grid is placed on paper. A 1200-pixel image printed at 300 pixels per inch spans 4 inches; changing a resolution label alone does not create more detail. This tool changes the grid, not a selectable print-resolution setting.

Worked examples

Starting point
A 4032 × 3024 photo; set width to 1200 with proportions locked.
Result
The output is 1200 × 900 pixels.
Why it happens
Both dimensions scale by the same factor. The resulting 1,080,000 pixels do not imply a fixed file size: format and image content still matter.
Starting point
A 101 × 67 image; set width to 50 with proportions locked.
Result
The calculated height rounds to 33 pixels.
Why it happens
50 × 67 ÷ 101 is about 33.17. Pixel dimensions must be whole numbers, so small images can have a slight ratio difference after rounding.
Starting point
An 800 × 600 image enlarged to 1600 × 1200.
Result
Four times as many output pixels, without recovering missing source detail.
Why it happens
The browser interpolates the enlarged grid. More pixels are not the same as a sharper original photograph.

Choose for the job

Only one dimension is required.
Keep proportions locked and enter that dimension. Let the other dimension follow.
A landscape image must fill a square avatar.
Crop to a square before resizing. Unlocking proportions to force a square stretches the subject.

A DPI label is not an image upgrade

A printing requirement can involve both pixels and resolution metadata. This resizer does not set custom DPI metadata; confirm print requirements with the application that will place the image.

How these examples are derived

The locked dimension is calculated from the decoded source ratio and rounded to the nearest whole pixel. The browser draws the image onto a canvas of the selected dimensions, then exports a new file. Output dimensions must fit the 16-million-pixel limit.

How to use image resizer

Resize a photo or graphic to a specific width or height in pixels for a form, website or document. The proportions are locked by default, so changing one dimension updates the other without stretching the image.

  1. Choose a JPG, PNG or WebP image.
  2. Enter the width or height in pixels. Keep the aspect ratio locked to avoid stretching.
  3. Choose the output format, resize the image and check the final dimensions before downloading.
TRY THIS EXAMPLE

Make a photo 1200 pixels wide

Start with a 2400 × 1600 photograph and set the width to 1200 with the aspect ratio locked. The height becomes 800, preserving the original 3:2 shape. This reduces the total pixel count to one quarter of the original.

Next steps for this image

Tools do not carry images between pages. Download any result you want to keep before opening another tool, then choose that file in the next tool.

Good to know

  • Unlocking the aspect ratio lets you enter independent dimensions, which can stretch the image.
  • Enlarging an image adds interpolated pixels; it does not recover detail that was not present in the original.
  • Dimensions are pixels. This tool does not set print sizes or DPI metadata.

Common questions

How is resizing different from cropping?

Resizing changes the dimensions of the whole image. Cropping removes part of it. To fit a square frame without stretching a landscape photo, crop it to a square first and then resize.

Will resizing make the file smaller?

Reducing pixel dimensions often helps, but file size also depends on the format and image content. The tool shows the actual output size rather than assuming a saving.