Typing 30 × 30 for a 40 × 20 image gives you 30 × 15. A transparent logo comes back on a white square. A photo cut to half its width and height (a quarter of the pixels) can still be a larger file as PNG than the original JPEG. Each of these has a specific cause in how the Image Resizer works, and most are fixed by changing one setting.

Getting exactly 1080 × 1080 instead of something smaller

The default mode, "Fit within bounds", treats the width and height you type as a box. It scales the image proportionally until all of it fits inside, and it never adds padding. When the image's proportions differ from the box, one side comes out shorter than you typed. That is how 40 × 20 in a 30 × 30 box becomes 30 × 15.

To get the exact size, pick one of the other two options under Resize mode:

  • "Cover and crop" fills the box exactly and trims whatever overflows. The trim is always centred, so frame an off-centre subject in Image Crop first.
  • "Stretch to exact size" also fills the box exactly, but it distorts the proportions.

The fixed 1080 × 1080 and 1920 × 1080 buttons use whichever mode is active. In the default mode, pressing 1920 × 1080 for a 3000 × 4000 portrait photo gives 810 × 1080. The tool page compares all three modes on the same photo.

Rotating or scaling without losing your settings

Some buttons change the resize mode for you. The 50%, 75% and 150% buttons switch the mode to "Stretch to exact size" and render straight away. So do the rotate and flip buttons under Rotate and flip. Afterwards the dropdown shows the new mode.

For the scale buttons, the mode change rarely matters: both sides are multiplied by the same factor, so the result keeps its proportions. They also replace any typed width and height with the source size times the factor. Rotation resets both fields to the rotated size of the source image. Flipping keeps the values you typed, but it still resets the mode. If you had typed a custom size or picked "Cover and crop", set them again after scaling, rotating or flipping and press Transform image.

Lock aspect ratio recalculates the other field only while you type into a field. The presets and scale buttons ignore it.

Keeping a logo's transparent background

A transparent logo ends up on white when JPEG is the output format. JPEG has no alpha channel, so the tool paints the canvas white before drawing the image, and every transparent pixel turns white.

PNG keeps transparency (W3C PNG specification). So does WebP, which supports alpha in both its lossy and lossless modes, according to Google's WebP documentation. For logos, icons and cut-outs, choose PNG or WebP under Output format. If you need one icon in a whole set of sizes, the App Icon Generator produces them in one go.

Making the file lighter, not heavier

The default output format is PNG, which is lossless (W3C PNG specification). Lossless compression must keep every pixel's exact value, and photographic grain and fine texture leave little to compress. That is why a photo cut to a quarter of its pixels can still be a larger file as PNG than the original lossy JPEG.

The hero image shows how much the result depends on content and settings. On this synthetic test image, with JPEG saved at 100% quality, PNG comes out smaller; at normal JPEG quality settings and on busy photos it is usually the other way round.

Before you download, compare the two lines in the Result panel. "Before" and "After" each show "width × height · size". The "Before" size is the real size of your file, and the "After" size is a close estimate of the download.

If "After" is too heavy, switch to JPEG or WebP, lower the quality and press Transform image before you compare again or download. By Google's own measurements, lossy WebP files are 25–34% smaller than comparable JPEGs at equivalent SSIM quality (Google for Developers). That is the vendor's figure, not a guarantee, and your own images will vary.

The Quality slider affects only JPEG and WebP, and it is disabled for PNG. This follows from how canvas export works: browsers apply a quality value only to lossy formats (WHATWG HTML Standard, MDN). For what the number actually changes inside the file, see what an image quality setting really controls.

If an upload form still rejects the file, what actually makes an image file smaller compares dimensions, format and quality as levers. When weight is all you care about, use the Image Compressor. To change only the format, use the Image Converter.

Why scaling up hits the size limit so quickly

When a size you type is not accepted, the tool shows "Use dimensions from 1 to 12,000 px and no more than 40 megapixels." and keeps the previous result on screen. The same message appears if the source image itself is larger than these limits when you load it. In that case no result is shown.

The limit counts pixels, and the pixel count grows with the square of the scale. The 150% button multiplies each side by 1.5, which multiplies the pixel count by 2.25. A 6000 × 4000 photo is 24 megapixels, so 150% asks for 9000 × 6000, which is 54 megapixels, and the request is refused. Pressing 75% instead (4500 × 3000, 13.5 megapixels) works, as does any typed size up to 12,000 px per side and 40 megapixels in total, in whole pixels. The same square rule works the other way: 50% leaves a quarter of the pixels.

A file can also be refused with "Choose a valid PNG, JPEG or WebP image up to 20 MB." The tool checks the file type your browser reports, which usually follows the extension, and then tries to decode the image. A damaged file, or one that is not an image your browser can open, fails at that step with the same message.

Privacy

The image is decoded, redrawn and encoded in your browser, and the download is created there as well. The page makes no upload. In the page's own words: "Private by design: the image never leaves this browser." For more on how browser-based image tools handle files, see working with images in the browser.

FAQ

Why did the height change by itself when I typed a new width?

Lock aspect ratio is checked by default. While it is on, typing into one field recalculates the other from the proportions of the source image, after any rotation. Uncheck it to set width and height independently.

Why does a downloaded WebP sometimes turn out to be a PNG?

Browser tools that export through a canvas can only rely on PNG, the one format browsers are required to produce. When a browser cannot encode the requested type, it returns PNG data instead and reports no error (WHATWG HTML Standard, MDN). The file name can still end in .webp. If that happens, the browser you used cannot encode WebP. Try another browser, or pick JPEG for a smaller lossy file.