How to Compress Images to a Specific Size in KB or MB
Learn how to compress images to 50 KB, 100 KB, 200 KB, 1 MB, or another file-size limit while balancing image quality, dimensions, and format compatibility.
Updated

Compress images to a specific file-size limit with Daily Image's Image Compressor. Reduce photos to 50 KB, 100 KB, 1 MB, or another target size for online forms, websites, email attachments, and everyday projects.
Choose how your images are compressed, preserve dimensions when needed, and process one or multiple images directly in your browser. Your original files remain unchanged.
How to compress an image to a specific file size
Follow these simple steps to compress your images:
-
Select your images.
Open the Image Compressor, then select or drag and drop one or more images from your device. You can add or remove images before compression.
-
Enter your target file size.
In Maximum file size, enter your desired value and choose KB or MB. For example, enter 100 and select KB to compress each image to 100 KB or less. This is a maximum file size, not an exact output size.
-
Choose a compression method.
Start with Auto for most compression tasks, or choose a specific method if you need to preserve image dimensions or meet an exact dimension requirement.
-
Choose an output format.
Select Original to retain supported source formats, or choose JPG, JPEG, PNG, or WebP. Review any confirmation messages about transparency, animated images, or format-specific limitations.
-
Compress and download.
Select Compress images, review the resulting file sizes and dimensions, and download your images individually or together with Download All (ZIP). Save your results before leaving the download page.
Choose your target file size
Different websites, applications, and online forms may have different image file-size requirements.
Choose a maximum file size based on the requirements of your intended destination.
| Target file size | Common use cases |
|---|---|
| 20 KB | Forms with very strict upload limits |
| 50 KB | Small profile photos and online form images |
| 100 KB | Application forms and document uploads |
| 200 KB | Web forms and smaller photo attachments |
| 500 KB | Website images and everyday photo sharing |
| 1 MB | Online applications and email attachments |
| 2 MB | Larger photo uploads and document attachments |
These are common examples, not universal upload requirements. Always check the actual file-size limit before compressing your image.
You can also explore our image compression presets to quickly select a target file size.
Understanding KB and MB
KB (kilobytes) and MB (megabytes) measure file size, not image dimensions. Daily Image uses decimal units, where 1 KB equals 1,000 bytes and 1 MB equals 1,000 KB.
For example, 500 KB equals 0.5 MB, and 2 MB equals 2,000 KB.
Maximum file size vs. exact file size
Your target is a maximum file size for each image. For example, if you choose 100 KB, a successful result may be 95 KB or 80 KB, but it will not exceed 100 KB.
Some targets may not be achievable with the selected compression settings.
Choose the right compression method
Daily Image provides four compression methods to help you control how images are compressed.
| Method | How it works |
|---|---|
| Auto | Adjusts quality where supported at the original dimensions, then reduces dimensions if needed.Best for most file-size requirements. |
| Scale dimensions | Reduces dimensions proportionally while using high encoding quality where supported.Best for images that are larger than necessary. |
| Fixed size | Keeps your requested dimensions and adjusts quality where supported.Best when both exact dimensions and a maximum file size are required. |
| Quality only | Preserves original pixel dimensions and adjusts encoding quality where supported.Best when width and height must remain unchanged. |
Auto
Auto is selected by default and is suitable for most compression tasks. If the target cannot be reached at the original dimensions, the compressor can reduce the image dimensions. Formats without adjustable quality are tried once at their original dimensions before dimensions are reduced. If the target still cannot be achieved, the image is reported as failed.
Scale dimensions
Use this method when smaller image dimensions are acceptable. For example, a large photograph intended for a website thumbnail may not need its original resolution.
The image is scaled proportionally, keeping its aspect ratio, while prioritizing high encoding quality where supported. High encoding quality does not mean lossless output.
Fixed size
Use Fixed size when your destination specifies both exact dimensions and a maximum file size, such as 600 × 600 px and 100 KB.
Enter your required width and height, and choose a fit method (stretch, crop, pad, or fill) if the target aspect ratio differs from the original. The compressor keeps the requested dimensions rather than reducing them further to achieve the file-size target. If the target cannot be achieved, the compression attempt fails.
Fixed size is available only when all selected images have the same aspect ratio, because one set of dimensions is applied to the whole batch. Process images with different aspect ratios in separate batches.
For more information about sizing units and fit methods, see our image resizing guide.
Quality only — compress without changing image dimensions
Use Quality only when you need to preserve the original width and height of your image.
For example, compressing a 2,000 × 1,500 px image with this method keeps the same pixel dimensions. Encoding quality is adjusted where supported, so at least one selected output must be JPG, WebP, or AVIF. In a mixed-format batch, formats without adjustable quality receive one encoding attempt at their original dimensions and may not meet the target.
The achievable file size depends on the image content and selected output format. If the target cannot be reached, try a more efficient supported format or increase the maximum file size if your destination allows it.
If smaller dimensions are acceptable, try Auto or Scale dimensions.
Choose the right output format for compression
The selected output format affects how small an image can become.
| Output format | When to choose it |
|---|---|
| Original | Retain supported source formats when possible |
| JPG/JPEG | Compress photographs with broad compatibility when transparency is not required |
| PNG | Preserve transparency or use lossless encoding, although very small targets may be harder to achieve |
| WebP | Achieve efficient compression when the intended destination supports WebP |
Supported AVIF images can be compressed through Original. AVIF is not a separate output option, and SVG input requires an explicit raster output format.
Not every output format supports adjustable quality, and a different format does not always produce a smaller file. JPG does not support transparency: transparent areas become white, and you must confirm this before compressing.
For detailed guidance on format selection, transparency, encoding, and compatibility, read our image format conversion guide.
How to compress images without losing too much quality
Reducing an image's file size often requires a trade-off between image quality, dimensions, and format. Very small targets may require more aggressive adjustments, and compression is not guaranteed to be visually lossless. For more about lossy and lossless encoding, see our image format conversion guide.
To achieve better results:
- Start with the highest-quality original image available.
- Avoid unnecessarily restrictive file-size targets.
- Choose an output format appropriate for the image content.
- Keep enough image dimensions for your intended use.
- Check important details, including faces, text, and fine edges.
- Avoid repeatedly compressing previously compressed images.
How to compress multiple images at once
Select multiple images, including different supported input formats, to compress them with shared settings. The maximum file size applies to each image independently.
If you select three images and set a maximum file size of 100 KB, each successfully compressed image must be 100 KB or less. The combined size of the three results can exceed 100 KB because the target applies to each image individually, not to the entire batch.
After processing:
- Review each result.
- Download successful images individually or together with Download All (ZIP).
- Select Retry file or Retry Failed to process failed images again.
- Save your results before leaving the download page.
If different images need different compression settings, process them in separate batches.
What to do if an image cannot reach the target size
Some file-size targets cannot be achieved with the selected dimensions, output format, or compression method.
This is more likely when an image is complex, the target is extremely small, or the original dimensions must remain unchanged.
| Problem | What to try |
|---|---|
| Quality only cannot reach the limit | Try Auto if smaller dimensions are acceptable |
| PNG output remains too large | Try JPG or WebP if compatible |
| Fixed size cannot reach the limit | Reduce the requested dimensions or increase the limit if permitted |
| Compressed image looks blurry | Increase the file-size limit or preserve larger dimensions |
| Transparency is lost | Choose a compatible transparent format |
| Some images fail in a batch | Review the errors and retry the affected images |
Always follow the destination's requirements. Do not change required dimensions or formats simply to achieve a smaller file.
A successful result meets the selected maximum file size. If the target cannot be achieved, the application reports the affected image as Target not met, and no output above the target is offered as a result. Successfully processed images remain available for download even if other images in the batch fail.
Each result is one of three outcomes: Unchanged, a newly encoded result that meets the target, or a failed attempt. An image marked Unchanged has retained its original file bytes. This applies only to still PNG or WebP images that stay in their original format, are already within the target, contain no extra metadata, and are not using Fixed size. Other images below the target are re-encoded according to the selected settings.
Image compression vs. resizing and conversion
These tools help solve different image-related problems.
| Tool | Main purpose |
|---|---|
| Image Compressor | Reduce an image to a maximum file size in KB or MB |
| Image Resizer | Change an image's width and height |
| Image Converter | Change an image's file format |
Image compression can reduce quality, change image dimensions, or use a different output format depending on the selected settings.
If you only need to change image dimensions, use the Image Resizer or read our image resizing guide.
If you only need to change an image's file format, use the Image Converter or read our image format conversion guide.
Supported formats and compression limits
The Image Compressor accepts supported JPG/JPEG, PNG, WebP, AVIF, GIF, BMP, TIFF/TIF, ICO, and compatible SVG images as input. HEIC and HEIF are not currently supported.
The following limits apply when selecting images:
| Limit | Maximum |
|---|---|
| Images per batch | 50 |
| Input file size per image | 50 MB (50,000,000 bytes) |
| Total input batch size | 200 MB (200,000,000 bytes) |
The supported maximum file-size setting ranges from 1 KB to 50 MB per image. This range describes the configurable compression target, not the permitted input file size.
Large or complex images may exceed your browser's available memory or processing capabilities, even when they meet the input limits.
Additional limitations:
- Some supported input formats have limited compression options.
- Animated and multi-page images produce a single still image when re-encoded. An Unchanged result keeps the original file bytes.
- ICO inputs may lose additional embedded icon sizes when re-encoded.
- Source metadata is not copied to re-encoded results.
- Not every combination of image dimensions, output format, and target file size is achievable.
- Combined output size and your browser's available memory can limit ZIP creation. If it fails, download successful images individually.
For shared image format restrictions and processing limitations, see our image format conversion guide.
Frequently asked questions
How do I compress an image to 100 KB?
Open the Image Compressor, select your image, enter 100 as the maximum file size, and choose KB. Select Auto or another suitable compression method, choose an output format, and compress your image. You can also start from the 100 KB preset.
Can I compress an image to 50 KB or 200 KB?
How do I compress an image to 1 MB or 2 MB?
Will my image have the exact file size I enter?
Not necessarily. The value you enter is a maximum file size per image. A successfully compressed image will be at or below that limit, but it may be smaller.
Can I compress an image without losing quality?
Some images can be compressed with little or no noticeable quality loss. However, very small file-size targets may require reducing encoding quality or image dimensions. Always review the result before using it.
Can I compress an image without changing its dimensions?
Yes. Choose Quality only to keep the original width and height while adjusting encoding quality where supported. Very small file-size targets may not be achievable with this method.
Can I compress an image to a specific file size and dimensions?
Yes. Choose Fixed size, enter your required width and height, and set a maximum file size. The selected combination of dimensions, format, and file-size target must be achievable.
Why can't my image reach the target file size?
The target may be too small for the selected dimensions, format, or compression method. Try Auto, a more efficient supported format, smaller dimensions, or a higher file-size limit if your destination permits it.
Can I compress an image that is already smaller than my target?
Yes. An image may remain unchanged if it is eligible for reuse, or it may be re-encoded according to the selected settings. An image already below the target does not always remain unchanged.
How many images can I compress at once?
You can select up to 50 images in one batch. Each image can be up to 50 MB, with a total input batch size of up to 200 MB. The compression target applies to each image individually.
Can I compress images on my phone?
Yes. Daily Image works directly in compatible mobile browsers, so you can compress images on your phone or tablet without installing an app.
Is it free and private to compress images with Daily Image?
Yes. Image processing takes place locally in your browser, and your images are not uploaded to our servers. Daily Image is free to use, with no account required and no watermark.
Ready to compress your images?
Reduce your images to your desired file-size limit, choose the right compression method, and download your results directly to your device.
Free to use. No sign-up. No watermark.