Image Resizer
Resize an image to exact pixels, a percent, or cm, mm or inches at a DPI, with the aspect ratio locked or free, and save PNG, JPEG or WebP under a KB target. How it works
Use the Image Resizer
About the Image Resizer
To resize an image and keep its shape, the new height is the new width × the original height ÷ the original width, rounded to whole pixels: a 4000 x 3000 photo at 1200 px wide becomes 1200 x 900. The Image Resizer does that while Maintain Aspect Ratio is ticked, lets you type both sides when it is not, takes sizes in pixels, percent, cm, mm or inches at a DPI, and saves PNG, JPEG or WebP at a quality from 1 to 100 or under a target file size in KB.
Width typed and the height the aspect lock gives
| Original (px) | Width typed | Height |
|---|---|---|
| 4000 x 3000 | 1200 | 900 |
| 1920 x 1080 | 1280 | 720 |
| 3024 x 4032 | 1080 | 1440 |
| 1000 x 667 | 500 | 334 |
| 6000 x 4000 | 2000 | 1333 |
Rounded to the nearest pixel (1000 x 667 at 500 wide is 333.5, shown as 334). Typing a height works the same way.
Large photos: where the size fields start
| Original (px) | Megapixels | Starting size (px) | Pixels |
|---|---|---|---|
| 4096 x 4096 | 16.8 | 4,000 x 4,000 | 16,000,000 |
| 5472 x 3648 | 20.0 | 4,898 x 3,265 | 15,991,970 |
| 6000 x 4000 | 24.0 | 4,898 x 3,265 | 15,991,970 |
| 7000 x 5000 | 35.0 | 4,732 x 3,380 | 15,994,160 |
| 9000 x 4000 | 36.0 | 5,999 x 2,666 | 15,993,334 |
An original over 16,000,000 pixels starts at the largest size of the same shape the canvas allows; you can type any smaller size.
Print sizes and percentages in pixels
| Typed | DPI | Pixels |
|---|---|---|
| 10 cm | 96 | 378 |
| 10 cm | 300 | 1,181 |
| 148 mm (A5 width) | 300 | 1,748 |
| 210 mm (A4 width) | 300 | 2,480 |
| 297 mm (A4 height) | 300 | 3,508 |
| 4 in | 300 | 1,200 |
| 6 in | 300 | 1,800 |
| 8.5 in | 300 | 2,550 |
| 50% of 4000 px | - | 2,000 |
Pixels = inches × DPI, with 1 in = 2.54 cm = 25.4 mm, rounded to the nearest pixel. A percentage is of the original side and needs no DPI.
Frequently asked questions
- What is the largest size I can save?
- 10,000 px on a side and 16,000,000 pixels in all, so 4,000 x 4,000 is the largest square. A larger size shows a message such as 5,000 x 4,000 px is 20.0 megapixels, and Download stays off. The limit sits under the 4,096 x 4,096 pixel canvas that MDN says iOS devices allow, 16,777,216 pixels.
- Does resizing make the file smaller?
- Fewer pixels usually give a smaller file, and JPEG or WebP at a lower quality smaller still. PNG is lossless, so a photo saved as PNG can be larger than the JPEG it came from. After the download the page shows the result, for example Saved photo-800x600.jpg: 800 x 600 px and the file size.
- How do I resize a photo to under 500 KB?
- Choose JPEG or WebP and type 500 as the target file size. The page halves the range of qualities from 1 to 100, at most 7 tries, saves at the highest quality that fits and says which one it was. If even quality 1 is too big, it saves at quality 1 and says so; choose a smaller size in pixels then. A target overrides the typed quality.
- Which resampling method does it use?
- Your browser's own: the image is drawn on a canvas with image smoothing set to high, and the browser chooses the filter. There is no choice of algorithm. Enlarging adds no detail, and the page says so when the new size is larger than the original.
- Is the EXIF data kept?
- No. EXIF, GPS and the color profile are not copied into the saved file. The picture is drawn upright when your browser applies the EXIF orientation while decoding it.
- What is the resized file called?
- The original name plus the new size and the format's extension: photo.jpeg saved as an 800 x 600 JPEG is photo-800x600.jpg, and My Holiday (2).PNG saved at 1200 x 900 as WebP is My-Holiday-2-1200x900.webp.
Related Tools
View all toolsImage Cropper
Crop an image to 1:1, 4:5, 16:9, 9:16, golden or a custom ratio, type exact pixels or rotate it, and save PNG, JPEG or WebP at full size, with no scaling.
Aspect Ratio Calculator
Find the aspect ratio of a size in pixels, such as 1920 × 1080 = 16:9, resize while keeping it, or get the missing side from a ratio like 21:9.
Image Filters
Set brightness, contrast, grayscale, sepia, saturation, hue, invert and blur, or pick a look, then save as PNG, JPEG or WebP. Works in Chrome, Edge and Firefox.
Favicon Generator
Turn an image or a letter into favicon.ico (16, 32 and 48 px) and PNG icons at 16, 32, 180, 192 and 512 px, with the link tags and a site.webmanifest.
Exif Reader
Exif viewer for JPEG, PNG, WebP, TIFF, HEIC and AVIF: camera, lens, exposure, GPS in decimal degrees, IPTC and XMP captions, and a copy without metadata.
Color Palette Extractor
Extract 4 to 12 colors from an image by median cut and copy them as HEX, RGB, HSL or CSS variables, or download JSON; near-white is left out by default.