🖼️ Image Processing Utility

Image Resizer & WebP Converter

Resize image pixel resolution, control quality compression percentage, and convert photos to WebP format instantly inside your browser.

What happens when an image is resized

Resizing is resampling: the image is rebuilt on a new pixel grid, and each new pixel's colour is estimated from the original pixels around it. Shrinking averages several source pixels into one, which also smooths noise. Enlarging has to invent in-between values, so it produces a larger but softer image without adding any real detail.

This tool draws your image onto a canvas at the width and height you set, using the browser's built-in interpolation, and exports it as WebP, JPG or PNG. If the browser cannot encode the chosen format and falls back to PNG, the tool says so and saves the file with a .png extension. Everything runs locally in the page. Width and height can each be set from 10 to 10,000 pixels.

With Lock Aspect Ratio on, changing one side recalculates the other from the original proportions and rounds to whole pixels. With it off, the image is scaled to exactly the numbers you enter, which stretches it if the proportions change. The tool resizes; it does not crop.

Worked example: sizing a photo for a web page

A phone photo is 4000 x 3000 pixels, 12 megapixels. Decoded in memory it occupies about 48 MB as raw RGBA pixels, whatever its file size on disk. On a blog page it will be shown in a column 600 CSS pixels wide.

High-density screens use two or three device pixels per CSS pixel, so a 1200 pixel wide file covers most phones and laptops sharply. Setting the width to 1200 with the ratio locked gives a height of 1200 x 3000 / 4000 = 900. The new image has 1.08 megapixels, about 9 percent of the original pixel count, and its file size falls roughly in proportion before format and quality choices are even applied.

For a full-width hero image, 1920 to 2560 pixels wide is usually enough. Going beyond the largest size the image will be displayed at only adds bytes.

Choosing the size before choosing the format

Pixel dimensions usually matter more for file size than the format does. An oversized image at quality 80 is still heavier than a correctly sized one at quality 90. Resize first, then pick the format and quality.

  • Photos: WebP or JPG at quality 75 to 85.
  • Screenshots, charts and graphics with text: PNG, or WebP at high quality.
  • Images with transparency: PNG or WebP. JPG has no transparency, so this tool fills transparent areas with white before exporting a JPG.
  • The quality slider is hidden for PNG because PNG is lossless.
  • Export filenames include the final dimensions, which makes it easy to keep several sizes of the same image apart.

Quality pitfalls and how to avoid them

Large single-step reductions, such as 6000 pixels down to 300, can look jagged or shimmer on fine patterns like fabric and brickwork, because browsers sample only part of the source when the scale factor is extreme. If the result looks rough, resize in two passes, for example to half size first and then to the final size.

Do not upscale to meet a minimum size requirement if you can avoid it. Doubling a 500 pixel image to 1000 pixels satisfies the rule but looks soft. Use a larger original when one exists.

Canvas exports contain pixels only, so EXIF data including camera details and GPS location is removed. Images on the web generally should not carry that data anyway, but keep the original if you need it for your records.

For responsive websites, export two or three widths, for example 600, 1200 and 1800 pixels, and let the browser choose with the srcset attribute instead of serving one large file to every device.

Image Resizer & WebP: frequently asked questions

Does resizing an image reduce its quality?

Shrinking removes detail you could not see at the display size anyway, so the image usually looks just as sharp where it is used. Enlarging always looks softer because the extra pixels are estimated rather than captured.

What size should images be for a website?

Size them for the largest width they will actually be displayed at, multiplied by two for high-density screens. A 600 pixel content column needs about 1200 pixel wide images; a full-width banner rarely needs more than 2560.

What is the difference between resizing and compressing?

Resizing changes the pixel dimensions. Compressing keeps the dimensions and stores the pixels more efficiently, losslessly or by discarding detail. The smallest files come from doing both: the right dimensions, then a sensible quality setting.

Why does my resized image look stretched?

The aspect ratio lock was off and the width and height were changed by different proportions. Turn the lock on, re-enter one dimension, and the other will follow the original shape.

How many pixels do I need to print a photo?

About 300 pixels per inch for close viewing. A 6 x 4 inch print needs 1800 x 1200 pixels, and a 10 x 8 inch print needs 3000 x 2400. Posters viewed from a distance can use less.

All image & media suite