Resize and Compress Images for Free
Set your image width and height, keep the aspect ratio or choose exact dimensions, then compress JPG, PNG, and WebP files in one step. Free, with no signup, watermark, or image uploads.
Drop images here or click to browse
Up to 10 files · JPG, PNG, WebP, GIF, BMP, AVIF — up to 50MB each. Files never leave your device.
Lower values shrink the file but soften fine detail. 70–85% is the sweet spot for photos.
Your before / after comparison will appear here.
How to use this tool
How to resize and compress an image online for free
A smaller image can mean fewer pixels, fewer kilobytes, or both. Use this free online image compressor when a photo is too large for an upload form, email attachment, or web page. Set pixel dimensions and compression together in the tool above. If you only need to reduce file size, leave the dimension fields blank or open the dedicated image compressor.
- Choose your images. Drop up to 10 files into the tool, with a maximum of 50MB per file. Supported inputs include JPG, PNG, WebP, GIF, BMP, and AVIF.
- Set the dimensions. Enter width, height, or both. Keep aspect ratio on to fit each image inside those bounds, or turn it off to use an exact width and height. Leave both blank when you want to keep the original size.
- Choose quality or a KB target. Both modes use your selected dimensions. If a KB target cannot be met at that size, the tool tells you. Choose JPG, PNG, or WebP output.
- Compare and download. Check the original and output sizes, dimensions, and preview. Verify the target status and small details before downloading individual images or a ZIP of completed results.
Resizing vs. compression: pixels and kilobytes
Resizing changes width and height; compression changes how the image is encoded. For example, resizing a 4000 × 3000 photo to 1000 × 750 leaves one-sixteenth of the original pixel count. The resulting file size still depends on its content, format, and quality. A 100KB target does not specify pixel dimensions, and a 1000-pixel width does not guarantee a 100KB file.
When a form limits both dimensions and file size, enter the required pixels and select a KB target above. Resizing happens before encoding in the same run. Keep the aspect ratio locked to avoid stretching. Enlarging a small image can soften detail. If the required shape differs from your original, crop the image before resizing.
Choose a quality setting or a file-size target
Use the quality slider when you want control over appearance at your chosen dimensions. Start around 80–85% for JPG and WebP photos and inspect faces, text, and gradients. Lower quality can introduce visible artifacts; savings vary between files.
Use Exact KB target for an upload limit. With custom dimensions, it searches quality settings while keeping the chosen size; a missed target means you need a larger budget, smaller dimensions, or another format. When both dimension fields are blank, target mode can shrink dimensions automatically. Check the final result rather than assuming every file fits. For common limits, use the presets to compress to 20KB, 50KB, or 100KB.
Which image format should you choose?
- JPG: a common choice for photos and forms that require JPEG. Transparency is replaced with a white background.
- WebP: supports transparency and adjustable compression for web images. Confirm that the receiving app or website accepts it.
- PNG: preserves pixel detail and transparency at the output dimensions. The quality slider does not reduce PNG size; choose smaller dimensions to reduce its pixel count.
If the file type is the main problem, the image converter can help you switch formats. Animated inputs are exported as a still image by these canvas-based tools; they do not preserve the animation.
Free image processing that stays on your device
There is no signup, watermark, or image upload. Your browser decodes and processes the files locally, and re-encoding strips the original EXIF metadata. Keep an untouched original if you need camera settings or location data later. JPEG and WebP compression can discard detail, so compare the exported image at its intended display size before replacing an original. For more advice, read our guide to reducing image size without visible quality loss.
Frequently asked questions
Can I resize and compress an image online for free?
Yes. Enter a width, height, or both in Image dimensions, then choose a quality setting or KB target. The tool resizes and compresses each image in one run, locally in your browser, with no account or watermark.
Does compressing an image always change its dimensions?
No. Leave both dimension fields blank to keep the original size in quality mode. Enter dimensions to resize before compression. With aspect ratio locked, each image fits within the entered width and height. When custom dimensions are entered, target mode keeps them and reports a missed KB target rather than shrinking them further.
How do I set an exact width and height?
Enter both pixel dimensions and turn off Keep aspect ratio to use that exact width and height. This can stretch the image if the proportions differ from the original. To preserve proportions, leave the lock on: the result fits inside your chosen dimensions. Each output dimension can be up to 8000 pixels.
How does online image compression work?
The tool decodes your image and re-encodes it in your browser. Lower JPEG or WebP quality settings can reduce file size by discarding detail. PNG output is lossless at the chosen dimensions, so lowering a quality setting does not make it smaller; use a smaller canvas or another format when appropriate.
What quality setting should I choose?
Start around 80–85% for JPG or WebP photos, then compare the result with your original at full size. Increase quality if faces, small text, or gradients look damaged. The best setting and file-size savings depend on the image, output format, and browser.
Should I choose JPEG, PNG, or WebP output?
JPG is a common choice for photos and upload forms that require JPEG. WebP supports transparency and is useful for web images. PNG preserves pixel detail and transparency at the output dimensions, but photographic PNGs can be large. Always check which formats your destination accepts.
Are my images uploaded to a server?
No. Your image is decoded, resized when needed, and compressed locally in your browser. The image file is never uploaded to PixelShrink. No account is required to use the tool.
Why is my PNG still large after compressing?
PNG does not use the lossy quality slider. Enter smaller dimensions to make a smaller PNG, or leave dimensions blank to let target mode reduce them automatically. If custom dimensions are fixed and the target is missed, choose a larger KB target or try JPG/WebP. JPG replaces transparency with a white background.
Will compression remove EXIF and metadata?
Yes. Browser encoders write only pixel data, so camera settings, GPS coordinates, and timestamps in the original EXIF block are stripped from the output. That shrinks the file slightly and protects your privacy when sharing photos publicly.
Related tools
Compress Image
Shrink JPG, PNG, and WebP with a quality slider or KB target. Keep original dimensions in quality mode.
Resize Image
Change pixel dimensions with aspect-ratio lock and social-media presets.
Crop Image
Trim photos to 1:1, 4:3, 16:9, or a free selection — right in your browser.
Convert Image
Switch between JPEG, PNG, and WebP without uploading anything.
Compress to 20KB
Force an image under 20KB for exam forms and application portals.
Compress to 50KB
Hit a 50KB upload limit for resumes, ID proofs, and signatures.
Articles and practical advice
Open a topic when you need a little more guidance.
Resize and compress images for upload
Separate pixel requirements from the upload limit. A form can reject a small file because its width is wrong, or reject correctly sized pixels because the encoded file is too large.
A situation you might recognize
For a hypothetical 1200 by 800 photo needed at 600 by 400, lock the aspect ratio and halve the width. Then set the upload limit. Reducing both dimensions by half leaves one quarter of the pixels to encode.
What to do next
Read the destination requirements first. Set the final dimensions, select a supported output format, then apply compression. Inspect the downloaded result rather than assuming the preview meets the form rules.
When the upload form asks for two different sizes
You have probably seen a form ask for a photo in pixels and then give a separate limit in KB. Those numbers describe different things. Pixels describe the canvas; KB describes the saved file. Changing one may help with the other, but it does not prove that both requirements are satisfied.
Write the requirements down before editing. If the photo needs a different shape, crop it first. Then set its dimensions and compress the final canvas. This saves you from repeatedly exporting a photo that was the wrong shape to begin with.