JPG, PNG and WebP Image Resizer and Cropper
Change an image's dimensions or cut out the part you need without leaving your browser. Resize to fit inside a width and height, or crop to fill an exact size by moving a selection over the original. Enlarging is blocked unless you turn it on, the result shows its real dimensions and file size, and the image is not uploaded to a server.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Resize or crop an image
Drag and drop an image here
or
JPG, PNG or WebP, up to 25 MB. Your image stays in this browser.
How to use it
Choose an image
Select a JPG, PNG or WebP file, or drop it onto the box. The tool shows its dimensions and file size, with any EXIF rotation already applied.
Pick a mode
Resize to fit scales the whole image to fit inside the width and height you enter. Crop to fill cuts out part of the image and scales it to exactly that size.
Set the size
Type a width and height in pixels. With the aspect ratio locked, changing one side updates the other so the image is not stretched. Sizes larger than the original are blocked unless you tick Allow enlarging.
Position the crop (Crop to fill)
Drag the selection to move it and its handles to resize it, or use the keyboard: arrow keys move it and plus and minus resize it. The Left, Top, Crop width and Crop height fields give exact control. Choose Freeform, Square, Portrait or Landscape for the crop's shape.
Create, check and download
Choose JPG, PNG or WebP, select Create image, and check the result's dimensions and file size. Changing any setting and creating again always starts from your original image.
Example: a square profile picture from a wide photo
Suppose you have a wide landscape photo and want a square picture. Choose the photo, switch to Crop to fill, and select Square 1:1. A square selection appears on the original; drag it over the part you want to keep. Set the width to the size you need, for instance 400, and the height follows. Select Create image to get a 400 by 400 pixel file that you can compare with the selection before downloading.
Supported formats
You can open JPG, PNG and WebP files and save the result as any of the three. Transparent areas stay transparent in PNG and WebP; JPG fills them with a background color you choose.
| Format | Extensions | Transparency | Compression | Good for |
|---|---|---|---|---|
| JPG | .jpg, .jpeg | No. Transparent areas and padding are filled with the background color you choose. | Lossy, with a quality setting. | Photographs and places that require JPG. |
| PNG | .png | Yes. Padding can stay transparent or use a color. | Lossless, so there is no quality setting. | Screenshots, logos and graphics with sharp edges or transparency. |
| WebP | .webp | Yes. Padding can stay transparent or use a color. | Lossy here, with a quality setting. | Web images where small files matter and the destination supports WebP. |
Limits and limitations
- Files up to 25 MB are accepted. Both the original and the output can be at most 40 megapixels and 16,000 pixels on either side. Large images may still fail on phones or devices with little free memory.
- Only static JPG, PNG and WebP images are accepted. The format is detected from the file's contents, not its name. Animated PNG and animated WebP files are rejected, as are GIF, HEIC, AVIF, SVG, BMP, TIFF and PDF files.
- Width and height must be whole numbers of pixels, at least 1. Sizes larger than the original are blocked unless you turn on Allow enlarging; enlarged images look softer because no detail is added.
- Resize to fit keeps the image's proportions. If your width and height have a different shape than the image, the leftover space is padding rather than a stretched picture.
- Dragging the crop selection needs a mouse, finger or pen. The number fields and keyboard controls do the same job without dragging. On a touch screen, touching the selection moves it instead of scrolling the page, so scroll by touching outside it.
- The crop selection works in whole pixels of the original, so the crop's edges are rounded to the nearest pixel.
- Scaling is done by your browser's canvas, so very large reductions can look slightly different between browsers.
- Metadata such as camera details, GPS location and embedded color profiles is not kept. One image is processed at a time.
Frequently asked questions
Is my image uploaded to a server?
No. Your browser reads, decodes, resizes and re-encodes the file using the Canvas API, and the image data is not sent anywhere. The page itself still loads from a web server like any website. This site can load advertising or analytics scripts, but only after you accept them in the cookie notice. They are separate from the tools, which never pass the files or text you work with to them.
What is the difference between Resize to fit and Crop to fill?
Resize to fit never cuts anything off: the whole image is scaled to fit inside the size you set and keeps its proportions, with padding if the shape differs. Crop to fill keeps only the part inside your selection and scales it to exactly the size you set, so nothing is padded and the rest is discarded.
Why is my size blocked as enlarging?
The size you entered is larger than the original (or the selected crop), so the image would have to be stretched. Stretching adds no detail and usually looks blurry, so it is off by default. Choose a smaller size, or tick Allow enlarging if you really want it.
Why does the other side change when I type?
The aspect ratio lock is on, which keeps the image's proportions. Untick Lock aspect ratio to enter both sides freely. In Resize to fit, the image still keeps its proportions and any extra space becomes padding.
Can I crop without using a mouse?
Yes. Focus the crop box and use the arrow keys to move it (hold Shift for larger steps) and plus or minus to resize it, or type exact values into the Left, Top, Crop width and Crop height fields.
What happens to transparency and padding?
PNG and WebP keep transparent areas, and padding can be left transparent or filled with a color. JPG cannot store transparency, so transparent areas and padding are filled with the background color you choose.
Will my photo come out the right way up?
Yes. Photos that store their rotation in EXIF data are turned upright first, and all sizes and crop positions refer to the upright image you see.
Does each change stack on the last one?
No. Every time you select Create image, the tool starts again from the original file you chose, so resizing several times does not add blur or compression damage.
Are the Square, Portrait and Landscape shapes official sizes for a website?
No. They are generic shapes (1:1, 4:5 and 16:9) for convenience. Check the requirements of the place you are uploading to and enter the exact size you need.