How resizing works
Resizing changes the number of pixels in an image. This tool draws your picture onto an HTML <canvas> at the new dimensions; the browser's built-in bilinear scaler interpolates the pixels, then the canvas exports a fresh PNG (or the original format) you can download.
When Keep aspect ratio is on, setting either width or height computes the other side with the ratio above, so the image never looks stretched. A scale percentage simply multiplies both sides by that fraction.
Worked example
A 4000 × 3000 photo you want 1000 px wide:
Quality and formats
Making an image smaller looks clean; making it much larger than the original cannot add detail and will look soft, because the browser invents in-between pixels. PNG, JPG, GIF and WebP all load; the download is a PNG by default to preserve quality without re-compression artefacts. Because everything happens on the canvas in your browser, your photo is never sent to a server.