Image Resizer
Resize JPG, PNG, and WebP images while preserving their aspect ratio.
Your files are not uploaded to a server. All processing is performed locally in your browser.
Drop images here
or
JPG, PNG, WebP · up to 30 files · 30 MiB each · 150 MiB input total. Input/output maximum: 8,192px per side and 40 million pixels. ZIP maximum: 100 MiB.
Paste copied images with Ctrl / ⌘ + V.
Files are resized automatically using the current settings.
Before / after comparison
A comparison will appear after an image is resized.
Both images are fit to the same displayed size. After zooming, drag or use arrow keys to inspect matching positions. 100% means fit to view.
Resized images
Resized images will appear here.
ZIP downloads are limited to 100 MiB total. Download the images individually.
About image resizing
Change image dimensions by entering a width, height, or percentage. The other dimension is calculated for each image so its original aspect ratio is preserved.
When this tool is useful
Set a consistent pixel width for website photos or resize several images together while preserving aspect ratio. Use the Image Cropper if you need to remove unwanted parts.
How to use
Up to 30 images, 30 MiB each and 150 MiB combined input. Input and output are limited to 8,192px per side / 40 million pixels, with a 150 MiB combined output cap. Each image keeps its aspect ratio.
- Choose or drag JPG, PNG, or WebP images, or paste a copied image with Ctrl / ⌘ + V.
- Select Width, Height, or Scale to resize automatically while the progress bar tracks completed and failed images.
- Download results with dimension-suffixed filenames individually or in a ZIP up to 100 MiB. Remove unwanted images or retry failed ones.
Resize methods
The “Do not enlarge beyond the original” option is on by default. An image that would be enlarged is instead re-encoded at its original dimensions. Turn this option off only when enlargement is intended.
Width
Set the output width in pixels. Height is calculated automatically.
Height
Set the output height in pixels. Width is calculated automatically.
Scale
Resize relative to the original dimensions. Use a preset or enter any value from 1% to 500%.
Aspect ratio
This tool always preserves aspect ratio and never stretches images. Width and height cannot be changed independently, and images are not cropped.
Output quality and comparing sizes
For JPG/WebP choose encoder quality 95, 92 (default), 85, or 70. These are encoder settings, not percentages of the original quality. PNG does not use this setting. Files can grow after re-encoding, depending on the source image.
Compare original and resized images side by side at equal displayed size. Zoom, drag, or use the arrow keys to inspect corresponding regions. A 100% display zoom means fit to view, not original-pixel 1:1. The total byte comparison and percentage change include successful results only.
Your images are not uploaded
Images are decoded, resized, and encoded in your browser. tools.yayao.site does not receive or store your image files.
FAQ
Can I resize multiple images at once?
Yes. Apply one setting to up to 30 images, with a maximum of 30 MiB each and 150 MiB in total.
Is the aspect ratio preserved?
Yes. It is always preserved.
Can I set width and height separately?
No. This tool always preserves aspect ratio so images are not distorted.
Can I make an image twice as large?
Yes. Turn off “Do not enlarge beyond the original,” then select 200%. Enlarging does not create missing detail and is not AI upscaling.
Is PNG transparency preserved?
Standard transparent PNG images keep their transparent areas when resized.
Are images uploaded to a server?
No. Processing takes place entirely in your browser.
Which formats are supported?
JPG, JPEG, PNG, and WebP.
Does the file format change?
No. Each resized image keeps its original file format.
Can I adjust JPG or WebP quality?
Yes. Choose 95, 92, 85, or 70. The quality setting does not apply to PNG.
Will the file always get smaller?
No. Re-encoding can increase file size. The results show the byte difference and percentage change.
Can I compare the images before and after resizing?
Yes. Select Compare to view both images at the same displayed size, then zoom, drag or use the arrow keys to inspect matching areas.
Can I paste an image?
Yes, in supported browsers. Use Ctrl / ⌘ + V after copying a JPG, PNG or WebP image. Normal paste operations in text fields remain unchanged.
What happens to downloaded filenames?
The tool keeps the original extension and adds output dimensions, for example photo_1200x800.jpg. Individual downloads and ZIP entries use the same names.
Will small images be enlarged automatically?
Not by default. Turn off “Do not enlarge beyond the original” if you want to enlarge an image to your chosen width, height or scale.
Can I resize animated WebP images?
The output is a still image. Animation frames are not preserved when an animated WebP is resized.
Are EXIF, location data and color profiles retained?
Images are re-encoded through Canvas, so EXIF, GPS and ICC metadata are not guaranteed to be retained. This is also not a tool that guarantees complete metadata removal.