What this tool does
This is a browser-based image resizer and converter. It takes a PNG, JPEG, WebP, GIF or AVIF file, scales it to the exact pixel dimensions you enter, and re-encodes it as WebP, JPEG or PNG. The preview you see is the actual output canvas, and the download button saves those exact bytes. No file ever leaves your device â the whole pipeline runs on the HTML canvas API.
It is useful for the small, recurring jobs that come up constantly: shrinking a screenshot before pasting it into a doc, converting a phone photo to WebP for a landing page, or forcing a product image to a fixed 1200Ã800 slot without opening a desktop editor.
How to use it
- Pick a file. Use the file input, or press Sample to load a generated test image so you can see the workflow without uploading anything.
- Set the output size. Enter a width and height in pixels. With Keep aspect ratio on, changing one dimension recalculates the other from the source image.
- Choose a format. WebP is usually smallest for photos and screenshots. JPEG is the safest for email and older software. PNG keeps transparency and is best for logos and UI assets.
- Press Convert. The preview canvas updates and the result panel shows the output dimensions and file size.
- Download. The button saves the encoded file with a sensible name.
Choosing a format
| Format | Best for | Transparency | Typical size |
|---|---|---|---|
| WebP | Web pages, product photos, screenshots | Yes | Smallest for photos |
| JPEG | Email, print previews, compatibility | No (flattened to background) | Small for photos, larger for flat art |
| PNG | Logos, icons, UI, anything with alpha | Yes | Largest, but lossless |
Quality only applies to WebP and JPEG. PNG is lossless, so the slider has no effect on it. When you export JPEG from an image with transparency, the transparent areas are filled with the background colour you choose in Advanced options.
Fit modes explained
- Cover scales the image so it fills the target box, cropping the overflow. Good for thumbnails and hero images where the frame must be exactly filled.
- Contain scales the image so the whole thing fits inside the box, leaving empty space. Good for previews and when nothing may be cropped.
- Stretch ignores the aspect ratio and forces the image to the exact width and height. Useful for correcting a distorted scan, but usually avoid it for photos.
Limits and honest caveats
- Maximum output is 8192 px on either side. Larger values are rejected to keep browser memory manageable.
- Very large source images (for example 100 MP phone panoramas) may fail to decode on low-memory phones. Try a smaller source or a desktop browser.
- This tool does not do AI upscaling, background removal or content-aware cropping. It is a straightforward resample and re-encode.
- Animated GIFs are decoded to their first frame only.
- Colour profiles are not preserved; the browser decodes to sRGB before encoding.
Frequently asked questions
Is my image uploaded anywhere?
No. The file is read with createImageBitmap and drawn to a canvas in your browser. There is no server call in the conversion path.
Why is my PNG larger than the original?
PNG is lossless, so re-encoding a photo that was originally a JPEG often produces a bigger file. Choose WebP or JPEG for photos.
Can I resize several images at once?
This page handles one image at a time. For batches, run each file through the same controls, or use a script with the same canvas API.
What does the quality slider do?
It sets the encoder quality for WebP and JPEG, from 20% to 100%. Lower values produce smaller files with more visible artefacts. PNG ignores it.
Why did my download fail?
Some browsers block downloads triggered from a background tab. Keep this tab focused and press Convert again. If the format is unsupported, the status line will say so.