Skip to contentSkip to the inputSkip to the result

Resize an image

Change pixel dimensions and keep the original format.

Loading tool

Instructions

Resize an image

How to use

  1. Choose one image or several and enter dimensions.
  2. Fit to the width, fit inside a width × height box, or explicitly allow stretching.
  3. Several come as one ZIP.

Supported input

  • Up to 20 images; larger photos are read at 24MP; output up to 8192px and 24MP.
  • JPEG, PNG and WebP keep their format; GIF, BMP and AVIF become PNG.
  • Unlocking the ratio can distort the image.

Input example

1200 × 800 to width 600

Result example

600 × 400 when keeping the ratio

Troubleshooting

  • Check the supported format, file size and page selection.

How it works

  • Change pixel dimensions and keep the original format.

Three ways to fit a new pixel size, and when each one surprises you

Why you would change the pixel size

  • A forum, a marketplace or a CMS that wants images "no wider than 1080 px"
  • Slides that only show pictures at 1920 × 1080, so anything larger just makes the deck heavy
  • A row of product shots that must all fit the same box on a page
  • Thumbnails and icons that need an exact width and height

Same photo, three different answers

Keep ratio, fit width takes only a width and works the height out from the original proportions. Keep ratio, fit inside treats the width and height as a box and picks the largest size that fits it without distortion: the scale is the smaller of box width ÷ photo width and box height ÷ photo height. Turning the ratio off stretches or squashes the picture to exactly the numbers you typed.

Fit inside does not only shrink. A 1200 × 800 picture fitted to a 1920 × 1080 box comes out at 1620 × 1080 px, larger than it started and softer for it. Check the result size whenever the box is bigger than the original.

Worked example: a 1080 × 1080 box

  1. 1A landscape 4032 × 3024 photo has the smaller scale across (1080 ÷ 4032 ≈ 0.268), so it becomes 1080 × 810 px.
  2. 2A portrait 3024 × 4032 photo is limited by its height and becomes 810 × 1080 px. Both now have a 1080 px long side.
  3. 3With fit width set to 1080 instead, the portrait one becomes 1080 × 1440 px and overflows the box. To give a mixed batch the same long side, fit inside is the right choice.
  4. 4Phones often store a photo lying down with an orientation tag. The tag is applied first, so the sums use the width and height you actually see.

How the new pixels are made

The photo is redrawn at the new size on a browser canvas with image smoothing set to its highest level. The canvas standard names the levels but leaves the actual filter to each browser, so Chrome and Safari can differ slightly pixel by pixel even with identical settings.

Pictures beyond the working limit of 8192 px per side and 24 megapixels are decoded straight to a size within it: 5656 × 4242 px for a 4:3 photo, or 8192 × 2048 px for a 12000 × 3000 panorama.

Format, and what does not come along

  • JPEG, PNG and WebP keep their format. GIF, BMP and AVIF become PNG, so an animated GIF keeps only its first frame.
  • The file is newly made from a canvas, so EXIF details such as date taken, camera and location are not carried over. Keep the original if your photo library sorts by date taken.
  • If the real requirement is a file size in KB, resizing may not be enough on its own. Resize first, then use the compressor with a size goal.

Common mistakes

  • Making an image at exactly its display size for a high-density screen. A picture shown 540 px wide looks crisper when it is made 1080 px wide.
  • Running fit width over a mix of portrait and landscape photos, so the portrait ones end up far taller. Use fit inside for a mixed set.
  • Turning the ratio off to hit an exact size and stretching faces or text sideways. When the shape must be exact, crop the extra away with the crop tool instead.

Checked

Frequently asked questions

How is the height worked out when keeping the ratio?

Height = original height × new width ÷ original width, rounded to a whole pixel. A 4000×3000 photo resized to 1200 wide becomes 1200×900 px.

Can I resize several pictures at once?

Yes. Choose up to 20 and they are resized one after another with the same settings and saved as one ZIP. When keeping the ratio, each picture's height follows its own ratio. Each can also be saved on its own.

What is the largest size allowed?

Output must be at most 8192 px per side and 24 megapixels in total. Larger photos, such as 48 MP phone shots, are read at a size within that first. Enlarging a small photo cannot add detail, so it will look soft.