Resize images to exact pixel dimensions
Set a new width or height, keep the proportions locked, and download the resized image.
Drop an image here or choose one:
Supported inputs and limits
JPEG, PNG and WebP images up to 25 MB. Each output side can be up to 8,000 px, with a total under 40 million pixels, because larger canvases fail in many browsers.
How to use this tool
- Choose an image. Its width and height appear in the boxes.
- Type a new width or height. With “Keep aspect ratio” ticked, the other value updates automatically.
- Untick the box only if you intentionally want to stretch or squash the picture.
- Press Resize image, check the preview and the new dimensions and size.
- Download the file. The name includes the new dimensions.
Examples
Width-based. A 4000 × 3000 image resized to width 1200 gives height 900 (1200 × 3000 ÷ 4000).
Height-based. A 1920 × 1080 image set to height 540 gives width 960.
Square crop is not resizing. Forcing 800 × 800 on a 3:2 photo with the lock off distorts it. Resizing changes every pixel’s scale; cropping removes part of the picture. This tool resizes only.
How it works
The tool draws the original onto a canvas of the new size with high-quality smoothing and re-encodes it in the original format (JPEG at quality 92, PNG lossless, WebP at 92). Shrinking is generally safe. Enlarging cannot add real detail and often looks soft.
Limits and troubleshooting
If the numbers change unexpectedly, check the aspect-ratio box. Whole numbers are required, and rounding can leave a one-pixel difference from the exact ratio. Transparent areas in PNG stay transparent; in JPEG they become white. EXIF data is not preserved.
Privacy
Your image is processed locally by browser APIs and is not uploaded by the tool code. Server access logs and other practices are described in the Privacy Policy.
Choosing the right size
Work backwards from where the picture will be used. A page that shows an image 600 pixels wide benefits from a file around 1200 pixels wide, which keeps it sharp on high-density screens. A thumbnail of 200 pixels does not need a 4000-pixel original. For print, multiply the print size in inches by 300: a 6 × 4 inch print needs about 1800 × 1200 pixels. Whenever a form states required dimensions, use exactly those.
How rounding works with the ratio lock
Pixels are whole numbers, so the other dimension is rounded. Suppose you have 1920 × 1080 and set the width to 1000. The exact height would be 562.5, and the tool rounds it to 563. The result is very slightly different from the original ratio, which is invisible in practice. If a form insists on an exact ratio, choose a width that divides evenly, for example 960 (height 540) or 1280 (height 720).
More examples
- 6000 × 4000 to height 1000 gives width 1500.
- 1200 × 1200 (a square) to width 300 gives 300 × 300.
- 800 × 600 to width 1600 doubles the size, but adds no new detail.
What stays the same and what changes
The output keeps the file type you loaded. JPEG output is written at a fixed high quality of 92, PNG is lossless, and WebP is written at quality 92. Transparency in PNG and WebP is kept; in JPEG there is none to keep. Metadata is not carried over. If you also need a smaller file, run the resized copy through the Image Compressor.
Limits
- Each side can be up to 8,000 pixels and the total area up to 40 million pixels, because larger canvases fail in many browsers.
- Files up to 25 MB are accepted.
- Enlarging is allowed but not recommended, because the result looks soft.
Troubleshooting
| What you see | Likely reason | What to try |
|---|---|---|
| Image looks stretched | The ratio lock was off | Tick “Keep aspect ratio” and re-enter one dimension |
| Error about size | Dimensions exceed the limits | Use smaller values |
| Fuzzy picture | The image was enlarged | Start from a higher-resolution original |
| File size barely changed | Dimensions changed little | Resize more, then compress |
For a deeper explanation of ratios, see how to resize images without losing their aspect ratio.
Frequently asked questions
What is the difference between resizing and cropping?
Resizing scales the whole picture. Cropping cuts away part of it.
Why is my image blurry after enlarging?
Enlarging stretches existing pixels and cannot create detail that was never captured.
Which format is the output?
The same format as the file you uploaded.