πΌοΈ Image Resizer
Resize images to exact pixel dimensions with aspect-ratio lock, then export as JPEG, WebP or PNG in your browser.
Drop your image here Release to upload
or click to browse your files
Max file size: 30 MB
Upscaling beyond the original size may result in a blurry image.
PNG is lossless β quality is always 100%.
About Image Resizer
- β’ Resize images to any custom width and height using your browser's Canvas API.
- β’ Lock ratio β keeps width and height proportional so the image isn't distorted.
- β’ Free resize β unlock the ratio to set any width and height independently.
- β’ Supports JPEG, PNG, and WebP output. GIF input is converted to a static image.
- π Your images are processed entirely in your browser β nothing is sent to any server.
Related Tools
Meme Generator
Add top and bottom captions to your own image and download the result as a PNG or JPEG.
Image Converter
Convert JPG, PNG, WebP, GIF or BMP images to JPEG, PNG or WebP with a quality slider and size comparison.
Watermark Tool
Overlay a text or logo watermark on a photo with control over size, opacity, rotation, position and tiling.
Image Compressor
Compress and resize JPG, PNG, WebP or GIF images in your browser with a quality slider and width presets.
How resizing works with the Canvas API
Resizing creates an off-screen canvas at exactly the target width and height, then draws the decoded image into it scaled to fill that canvas. The browser's own image-scaling routine does the interpolation. The canvas is then encoded to a blob in the chosen format, and for JPEG and WebP the quality value you set is passed to the encoder as a number between zero and one. PNG has no quality parameter because it is lossless, so the slider is hidden when PNG is selected.
With the ratio lock engaged, typing a width recalculates the height by dividing it by the stored ratio, and the height field becomes read-only. Unlocking frees both fields, allowing deliberate distortion when you need a specific frame. Preset buttons set the width and let the height follow.
Because every step happens on the canvas inside the page, the original file stays on your device throughout and nothing is transmitted to a server.
Worked example: a 4000 by 3000 photo down to 1280 wide
With the ratio lock on, pressing the 1280 preset sets the width to 1280. The stored ratio is 4000 divided by 3000, or 1.3333, so the height becomes 1280 divided by 1.3333, which is 960. The result is 1280 by 960, still exactly 4:3.
Pixel count falls from 12,000,000 to 1,228,800, a reduction to roughly one tenth. File size does not fall by exactly the same proportion, because JPEG compression already exploited redundancy in the original, but a result in the region of a few hundred kilobytes at 85 percent quality is typical, and the before and after sizes are shown so you can read the actual figure rather than estimate it.
Switching the output format to WebP at the same quality usually produces a noticeably smaller file again for the same visual result. If you unlocked the ratio and set 1280 by 1280 instead, the 4:3 photograph would be squeezed horizontally into a square, visibly distorting faces and straight lines, which is why the lock is on by default.
Choosing dimensions, format and quality
Pick the format to suit the content. JPEG is the right choice for photographs and is universally supported. WebP usually produces smaller files than JPEG at comparable quality and is now supported by every current browser, making it the better option for the web. PNG is lossless and preserves transparency, so it is the format for logos, screenshots, line art and anything with flat colour or an alpha channel, at the cost of a much larger file for photographic content.
On quality, 80 to 90 percent is the practical range for photographs. Below about 70 you see blocking around edges and in gradients. Above 95 the file grows quickly for little visible gain.
Two caveats. Animated GIFs load, but the canvas captures one frame, so the output is a still image. Re-encoding a JPEG also loses a little quality each time, so repeated resize cycles degrade it.