Compress Image to Target Size

Compress JPG, PNG and WebP images to a target file size such as 20KB, 50KB or 100KB online.

All tools
image Tool

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.

image Category Collection

Drop images here

or choose images from your device

JPG, PNG or WebP · Maximum 10 files · Maximum 20 MB per file
Target File Size
Choose the maximum file size you need. The final image can be smaller than the target.
KB
Current target: 100KB
JPG and WebP use automatic quality selection. PNG uses lossless encoding and may require dimension reduction.

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.

  1. Choose a target file size.
  2. Upload one or more JPG, PNG or WebP images.
  3. The tool works toward the selected maximum size.
  4. Review the original and compressed file sizes.
  5. 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.

Example: If the upload limit is 200KB, start with 200KB. If the result is 145KB, it already meets the limit. There is usually no benefit in reducing it further to 50KB unless the website specifically requires it.

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

Example 1 — 100KB limit:
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.
Example 2 — 20KB limit:
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.
Example 3 — 500KB limit:
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.

Frequently Asked Questions

It means reducing an image until its file size is at or below a size you choose, such as 20KB, 50KB, 100KB or 200KB.
Yes. Select 20KB as the target and upload your image. Because 20KB is a very small size for many photos, the result may need stronger compression or smaller dimensions.
Yes. Select 50KB or 100KB from the target-size options. These targets are useful when an online form or application has a strict image-size limit.
Yes. You can choose 200KB, 500KB or 1MB. Larger targets can give the image more room to keep detail when the destination allows a larger file.
Yes. Both 2MB and 5MB are supported target sizes. You can also enter a custom target between 20KB and 5MB.
Not necessarily. The target is a maximum file size. If the image can be made smaller, the final file may be below the selected target.
The tool supports JPG, JPEG, PNG and WebP images.
It can be. Very small targets may require more compression or smaller image dimensions. For better quality, choose the largest file size allowed by the website or application.
Some images cannot reach a very small file-size target through compression alone. Reducing the dimensions can help the image reach the selected target while keeping the file within the size limit.
Yes. You can upload multiple supported images and process them together, up to the tool limit shown on the page.
Usually no. If the website allows 100KB, choosing 100KB gives the compressor more room to preserve image quality. Use a smaller target only when the destination requires it.
The result depends on the image content, format, dimensions and selected target. If the image is already within the selected limit, it may not need further compression. For very small targets, the tool may reduce dimensions to help reach the limit.
Yes. This online image compressor supports JPG and JPEG files. Upload the image, choose the target size and download the compressed result.
No. The original uploaded file is not overwritten. The compressed image is generated as a separate result.
Check the final file size, image format and image dimensions. Some websites have limits for all three, so meeting the KB or MB limit alone may not be enough.