What this tool does
This is a small, honest image utility. It decodes the image you pick, draws it onto a canvas at the width and height you choose, and re-encodes it in the format you select. Everything runs locally in your browser â your file never leaves your device, and there is no server round-trip.
Supported inputs and outputs
- Input: PNG, JPEG, WebP (whatever your browser can decode via
createImageBitmap). - Output: WebP (smallest for the web), JPEG (photos, no transparency), PNG (lossless, keeps transparency).
- Quality slider applies to WebP and JPEG. PNG ignores it.
How resizing works
If you leave the height blank, the tool preserves the original aspect ratio. If you set both width and height, the fit mode decides what happens:
- Contain fits the whole image inside the box and pads the rest with white (JPEG) or transparent (PNG/WebP).
- Cover fills the box and crops the overflow.
- Stretch distorts the image to exactly the box.
Limitations
- Maximum output dimension is 8,192 px per side to keep browser memory manageable.
- Very large inputs may fail on low-memory devices; try a smaller width.
- This tool does not do color management, EXIF rotation, or metadata preservation. It re-encodes pixels only.
- JPEG output has no transparency â transparent areas become white.
Is my image uploaded anywhere?
No. The file is read with the browser's File API and decoded locally. There is no network request carrying your image.
Why is my WebP smaller than my JPEG?
WebP generally compresses better at the same visual quality. The quality slider trades file size against visible artifacts; 80â90% is a good default for photos.
Can I batch convert many images?
This page handles one image at a time. For batches, run the tool once per file, or use a desktop utility.