Compress Image to Target Size
Compress JPG, PNG and WebP images to a target file size such as 20KB, 50KB or 100KB online.
Compress images to a target file size
Reduce image size online by choosing the maximum file size that fits your upload requirement. Compress JPG, PNG and WebP images to common targets such as 20KB, 50KB, 100KB, 200KB, 500KB, 1MB, 2MB or 5MB, or enter a custom target between 20KB and 5MB.
This photo compressor is useful when a form, application or website gives you a file-size limit. Choose the largest limit the destination allows so the image has more room to keep useful detail.
Choose the image size you need
If a website or form gives you a maximum file size, choose that limit here. Common targets include 20KB, 50KB, 100KB and 200KB. Larger targets such as 500KB, 1MB, 2MB and 5MB are also available.
Use the largest file size the destination allows when image quality matters. A very small target may require lower quality or smaller image dimensions.
What is a target-size image compressor?
Sometimes an image is not too large in width or height, but the file size is too large for the website where you want to upload it. You may be asked to submit a photo below 20KB, 50KB, 100KB or another file-size limit.
A target-size image compressor solves this problem by letting you choose the maximum file size you need. Instead of changing image quality again and again and checking the file size after every attempt, you can select a target and let the compressor work toward it.
iToolsEra can compress JPG, JPEG, PNG and WebP images online. It is useful as a photo compressor or photo size reducer when you need to reduce image size in KB before an upload.
Compress an image to a specific file size
Different websites and applications have different upload limits. One form may accept an image below 20KB, while another may allow 100KB, 200KB or 1MB.
Select the target that matches the requirement you have been given. The available target sizes include:
- 20KB for very strict upload limits
- 50KB for small online forms and applications
- 100KB for many common photo upload limits
- 200KB when a little more image detail is useful
- 500KB when the destination allows a larger image
- 1MB, 2MB or 5MB when a larger file is acceptable
- Custom target for a supported size between 20KB and 5MB
If you need to compress JPEG to 50KB, 100KB or 200KB, choose the matching target. The same target-size approach works for JPG, PNG and WebP files.
The selected size is a maximum target. The final file can be smaller. For example, if you choose 100KB and the compressor produces a good result at 82KB, there is no reason to make the file larger just to reach exactly 100KB.
How does the image compressor work?
The compressor first checks the uploaded image and its dimensions. If the original file is already within the selected limit, it can be kept without unnecessary re-compression.
When the image is larger than the target, the tool works toward the requested size. For JPG and WebP images, compression quality can be adjusted. If quality changes alone are not enough, the image dimensions can also be reduced.
- Choose a target file size.
- Upload one or more JPG, PNG or WebP images.
- The tool works toward the selected maximum size.
- Review the original and compressed file sizes.
- Download the result you want to use.
Your original uploaded image is not overwritten. The compressed result is created as a separate file.
Which target size should I choose?
The simplest rule is: choose the largest file size allowed by the destination website or application.
If a form says the photo must be below 100KB, using a 100KB target normally gives you more room to preserve detail than forcing the same image down to 20KB.
Do not choose a smaller file simply because smaller sounds better. A smaller file can be easier to upload, but unnecessary compression can make a photo look worse.
Reduce image size without unnecessary quality loss
File size and image quality are connected. A photograph contains a lot of visual information, so making it much smaller means that some information may need to be removed.
A photo that is several megabytes in size may still look good at 500KB or 1MB, but pushing the same photo down to 20KB can cause visible changes. You may notice softer details, compression artifacts or smaller image dimensions.
For the best balance, use the largest target size that the website accepts. This is especially important for photos that contain faces, text, fine patterns or other details that you need to remain clear.
JPG, PNG and WebP compression
The image format affects how easily an image can be made smaller.
JPG or JPEG
JPG is often a practical format for photographs because it can create relatively small files while keeping a useful level of visual quality. If you need to compress JPG online or reduce the size of a JPEG photo, JPG is usually a good starting point.
PNG
PNG is useful for graphics, screenshots, illustrations and images that need transparency. PNG encoding is lossless, so very small targets can be harder to reach without reducing the image dimensions.
WebP
WebP can produce compact files while keeping good visual quality. It can be a useful option for websites, but always check whether the destination accepts WebP before uploading it.
If a website requires a particular format, follow that requirement even if another format could produce a smaller file.
Why can a 20KB image look different from the original?
20KB is a very small file size for many photographs. A detailed photo contains more information than can normally fit into such a small file without some loss.
For example, a 4000 × 3000 photograph may start at several megabytes. Trying to make it fit below 20KB can require both stronger compression and smaller dimensions. A simple image with large areas of similar color may reach the same target more easily than a detailed photograph.
This is why two images with the same original file size can produce very different results at the same target size.
When is a target-size image compressor useful?
A target-size image compressor is useful whenever another website or application gives you a file-size restriction. It can work as a photo compressor, picture compressor or simple image size reducer when the goal is to make an upload smaller.
- Online application and registration forms
- School, college or job applications
- Profile-photo uploads
- Websites with image upload limits
- Document submission portals
- Email attachments and other file-size limits
- Reducing image size in KB before an upload
- Compressing JPG, PNG or WebP images without installing software
If the destination also specifies width, height, aspect ratio or file format, check those requirements too. Meeting the file-size limit alone may not be enough.
Simple examples of reducing image size
Your photo is 1.2MB and the application accepts files up to 100KB. Select 100KB. If the result is 86KB, it already meets the file-size requirement.
Your photo is 900KB and the application accepts files up to 20KB. This is a much more aggressive reduction, so check the final image carefully for loss of detail.
Your photo is 650KB and the website allows up to 500KB. There is little reason to force it down to 50KB when a 500KB target can preserve more of the original detail.
Tips for getting a better compression result
- Use the largest allowed target. If the limit is 200KB, there is usually no need to aim for 50KB.
- Start with the original image. Re-compressing an already compressed image can make quality loss more noticeable.
- Check the final image. Very small targets can affect faces, text and fine details.
- Check dimensions as well as file size. Some forms require a specific width or height in addition to a KB or MB limit.
- Keep the required format in mind. If the website requires JPG, do not upload WebP simply because it is smaller.
- Use a custom target only when you need it. A preset such as 100KB or 200KB is often easier when it matches the upload rule.
Check the image before you upload it
After you reduce image size, compare the result with the original and make sure it still looks suitable for its purpose.
Before submitting the file, check:
- Is the file below the required KB or MB limit?
- Is the image format accepted?
- Are the width and height within the required range?
- Is the image clear enough for the form or website?
A smaller file is not always a better file. The right result is the smallest file that meets the destination requirement while keeping the quality you actually need.
Helpful Guides
Learn how to use this tool for common real-world tasks.
Frequently Asked Questions
Related Tools
Explore more useful tools.