Skip to main content
SkyyCast
Image tool

Get Your Image Under the File Size You Need

Pick a target size, drop your images, and this tool automatically finds the best quality that fits — without anything leaving your device.

  • Processed locally
  • No account required
  • Batch up to 12 images

Drop images here

or

JPEG, PNG or WebP · Up to 12 images

Your result will appear here

Add an image on the left to get started.

How to Use This Tool

  1. 01 Add an image

    Choose a JPEG, PNG or WebP file. The tool works on a local copy in your browser.

    Target-size compressor drop area ready for a synthetic sample image
    Pick the image whose file size you need to reduce.
  2. 02 Set a target size

    Choose a preset or enter a target, then set the preferred output format if needed.

    Target-size compressor with a synthetic image and a 25 kilobyte custom target
    Some images cannot reach a very small target without visible quality loss.
  3. 03 Compress and review

    Press Compress, compare the resulting size and quality, then download the file. If a photo looks soft after upload, see why that can happen.

    Compressed synthetic image showing its resulting file details and download action
    The tool reports the actual result; it does not promise every target is achievable.
Enjoy this free tool? Help support SkyyCast and keep more free creator tools coming.

Image optimization reference

When a maximum file size matters

Use this compressor when a form, upload service or email attachment sets a byte limit. It searches for a useful quality level instead of asking you to guess with a slider.

When this helps

Choose this tool after the dimensions are already appropriate. If a form says “under 200 KB” but does not prescribe a width, the target-size workflow is more direct than repeatedly trying arbitrary quality values.

Practical example

A 2.1 MB phone photo can stay at its original dimensions while the tool searches for the closest result under a 500 KB limit. Open the output at the size it will be used; a pass under the byte limit is not useful if small text or a face has become unreadable.

Reference at a glance

Reference at a glance for Target Size Compressor
What changesThe tool re-encodes the image to approach the target; dimensions are not the primary control.
TransparencyA transparent source stays in a transparency-capable output where supported; JPEG cannot retain alpha.
Target is a ceilingThe closest result may be larger than an aggressive target when further reduction would cause unacceptable damage.
Use the right orderResize first when the image is far larger than its destination, then optimize the resized result.

Troubleshooting

  • A nearly optimized file can be larger after re-encoding. Keep the original when the result is not a real byte saving.
  • If dimensions are the real requirement, use Image Resizer first, then run the resized file through this tool.
  • Compare the result at normal viewing size; a very small target can trade away text edges before it makes a visible difference in a large photograph.

Questions worth checking

Will every file reach the exact target?

No. Images with fine texture, noise or transparency may need more bytes. The tool reports the closest result instead of hiding that trade-off.

Does this tool change dimensions?

It is primarily a byte-size tool. Use Image Resizer when a required width or height matters.

Keep in mind: Processing is browser-side and the workspace is temporary; close or reload the page to discard the files.

How target-size compression works

This tool searches for the highest encoding quality that still keeps your image at or under the target size you pick, instead of making you guess with a quality slider. If the target can't be reached through quality alone, it falls back to reducing the image's pixel dimensions in steps and searches again at each size — the same approach as the Target File Size mode in the Smart Image Compressor, built specifically for this one job.

Why can't every image hit an exact size?

File size depends on how much detail an image actually contains, not just its target. A busy, high-detail photo needs more data to look acceptable than a simple graphic with flat colors, even at the same pixel dimensions. This tool always tries quality reduction first since it best preserves the image's look; it only shrinks the dimensions when quality reduction alone genuinely cannot reach your target without the result looking noticeably degraded.

What the tool did with test files

We ran this tool in Chromium on files whose properties we know and recorded what it reported. The photo-like file is a synthetic 4000 × 3000 JPEG (2.51 MB) that we generated from gradients, colour blobs and fine noise, so it is not a camera photo and your own results will differ. We recorded sizes and dimensions only; check the result on your own image before you publish it. The second file is SkyyCast’s own 2000 × 2000 logo PNG (917 KB), which has transparency.

  • 2.51 MB JPEG, 100 KB target98.7 KB, 96% smaller.
  • Same file, 200 KB target199 KB WebP at the full 4000 × 3000 pixels, 92% smaller.
  • Same file, 500 KB target500 KB WebP at 4000 × 3000, 80% smaller.
  • Same file, 1 MB target976 KB, 61% smaller.
  • 842 KB, 2400 × 1600 JPEG, 200 KB target175 KB WebP at the same dimensions, 79% smaller.
  • 917 KB logo PNG, 200 KB or 500 KB target194 KB WebP both times, still 2000 × 2000. The highest quality the tool tried already fit under 200 KB, so a larger target changed nothing.

Two things to take from these runs. Reaching a small size did not require shrinking the picture: lowering the encoder quality and switching to WebP was enough, and the pixel dimensions stayed the same. And the result lands just under the target, not on it. If you need fewer pixels as well as fewer bytes, resize first with the Image Resizer, then use this tool for the final size.

Four ways to make an image smaller

  • Lower the qualityThe same pixels with less detail stored per pixel. This is what this tool searches over first.
  • Reduce the dimensionsFewer pixels, usually the biggest saving. The same 2.51 MB photo resized to 1080 × 810 with the Image Resizer came out at 124 KB.
  • Change the formatWebP is usually smaller than JPEG or PNG at similar quality, and a photographic PNG is far larger than the JPEG it came from. The Image Format Converter changes format and nothing else.
  • Combine themResize to the size the page or post will actually display, then compress. The Smart Image Compressor does both in one place.

If a photo still looks soft after you upload it, the cause is often the platform’s own re-compression rather than your file. Our guide Why your photos look blurry on social media explains what to check, and JPEG vs PNG vs WebP vs AVIF helps you choose a format.

100 KB vs. 200 KB vs. 500 KB vs. 1 MB — which should you pick?

  • 100 KBVery lightweight — email attachments, slow connections, or pages that need to load as fast as possible.
  • 200 KBA solid general-purpose default for a web page or article image (this tool's starting point).
  • 500 KBHigher fidelity for images where detail matters more than load time, while still far lighter than a typical camera photo.
  • 1 MBClose to original quality for most photos, useful when you only need to trim an unusually large file.

Why do the image's dimensions sometimes change?

Only when needed. If your target is reachable by adjusting quality alone, the pixel dimensions stay exactly as they were. The tool only reduces dimensions as a fallback when the target is genuinely too small for the image's detail at its original size — it tells you when this happens, and by how much, rather than changing dimensions silently.

JPEG vs. WebP vs. PNG for a target size

By default this tool tries WebP and JPEG (or WebP and PNG for an image with transparency) and keeps whichever reaches your target at the better quality. WebP is usually the most efficient choice, JPEG is the safest for universal compatibility, and PNG is kept lossless, which makes it the hardest format to shrink — a photographic PNG usually reaches a small target far more easily once converted to JPEG or WebP. A transparent image is never converted to JPEG, since JPEG cannot store transparency.

Does SkyyCast upload my images?

No. Every image is read, measured and re-encoded by your own browser using the File API, <canvas> and, where supported, createImageBitmap. Nothing is sent to SkyyCast or any other service, no account is needed, and closing or reloading the page discards everything.

Frequently asked questions

Can this guarantee an exact file size?

It guarantees the result is at or under your chosen target whenever that's achievable, not an exact byte count — encoders don't work that way. The result is usually close to the target since the search tests quality levels right up to the limit.

Why did my image come out noticeably smaller than my target?

The search looks for the highest quality that still fits under the target — it stops increasing quality once going higher would exceed it. A result well under the target usually means a simpler image reached a clean, high-quality encoding comfortably inside the limit.

Will this ever make my image look bad?

An unrealistically small target for a detailed image can require visible quality loss — there's no way around that trade-off. When the target genuinely can't be reached without severe degradation, this tool says so directly and shows the closest result it found, rather than quietly producing a poor-looking image.

Can I compress several images to the same target at once?

Yes. Add up to 12 images, pick one target size, and press Compress to process all of them, then use Download all to save every result.

What's the difference between this and the Smart Image Compressor?

This tool does one thing: hit a target file size, with the size picker as the very first thing you see. The Smart Image Compressor covers more ground — an automatic "Smart Compress" mode, manual resize controls, and quality/format overrides — including its own Target File Size mode this tool is built from.

More free tools

See all free SkyyCast tools. Need to change an image's dimensions instead of its file size? The Image Resizer resizes by exact width/height or percentage. Need a different file format, like JPG to WebP? The Image Format Converter handles that directly. Turning several images into one document? The Image to PDF Converter combines them into a single PDF. Want more control over quality, format and resizing in one place? The Smart Image Compressor covers all of it.