Image Resizer
Resize a JPEG, PNG, or WebP image to exact pixel dimensions, with aspect ratio lock and exact resize math — no accidental distortion.
Supports JPEG, PNG, and WebP input and output — not AVIF, GIF, SVG, HEIC, TIFF, or BMP. JPEG photos are decoded through your browser's normal image renderer, which applies the EXIF orientation tag automatically (the same way it looks when you open the photo normally), so no manual rotation is applied. Re-encoding through canvas strips EXIF, GPS, and color-profile metadata from the output — this isn't a guarantee of anonymization, just a side effect of how canvas re-encoding works.
Your image is processed locally in your browser — it is never uploaded anywhere.
Resize a JPEG, PNG, or WebP image to exact pixel dimensions, with aspect ratio optionally locked so the math is always exact — no distortion unless you explicitly unlock the ratio and enter mismatched values yourself.
JPEG photos are decoded through your browser's normal image renderer, which already applies EXIF orientation the way it looks when you view the photo normally — this tool never applies a second, manual rotation on top of that.
How to use the Image Resizer
- Choose a JPEG, PNG, or WebP file in the Image field; the original size appears and fills Width (px) and Height (px).
- Enter the new Width (px) or Height (px); with Lock aspect ratio checked, the other field updates to match.
- Pick an Output format and, for JPEG or WebP, set the Quality slider.
- Click Resize, check the result size and preview, then click Download.
Example: Shrinking a 4000×3000 photo
Load IMG 2041.jpg (4000×3000), keep Lock aspect ratio checked, set Width (px) to 1200, and click Resize. The result is 1200×900px, and Download saves it as IMG-2041-resized.jpg. The file size depends on the image and the Quality setting.
Questions about the Image Resizer
- How do I resize by height?
- Type the height. With Lock aspect ratio checked, the field you typed in last decides the size and the other one updates: 1080 high on a 4000×3000 image gives 1440×1080.
- What if I unlock the ratio and fill in only one field?
- The empty field keeps its original value. Width 1200 on a 4000×3000 image with the ratio unlocked gives 1200×3000, which stretches the image.
- What happens to transparency when saving as JPEG?
- JPEG cannot store transparency, so transparent areas are filled with the Background color, white by default. The color picker appears when a PNG or WebP is converted to JPEG.
- Is there a size limit?
- Files can be up to 25 MiB and 25 megapixels, and the output has the same 25 MP limit, with at most 16,384 pixels per side. Enlarging a 4000×3000 photo to 8000 wide is refused, because 8000×6000 is 48 MP.