How to Compress an Image to an Exact Size in KB
No quality percentage maps to a file size, because size depends entirely on content. The only way to know what a JPEG weighs at 70% is to encode it and look.
Set a target in KB. The encoder is probed repeatedly until the output fits.

Workflow Lifecycle & Pipeline
Visual execution flow showing how Image Size Reducer to KB processes data directly in your local browser sandbox.
Image Size Reducer to KB Interactive Process Pipeline
Fast, zero-latency execution directly in your browser memory.
Before You Start
Ensure your source assets and browser environment meet the verified execution requirements.
Step-by-Step Instructions
Follow these verified steps to execute the task with Image Size Reducer to KB.
Add your JPG image
Open Image Size Reducer to KB and drop your image onto the page, or pick it from the file dialog. It reads JPG, JPEG, PNG or WEBP.
holiday-photo.jpgChoose your 3 settings
Target size (KB) takes a number from 1 to 20000, in steps of 10, Save as takes one of JPG, WebP or PNG and Scale the image down if quality alone is not enough takes on or off. Leave them alone and Image Size Reducer to KB uses 100, JPG and on.
Target size (KB) 100 · Save as JPG · Scale the image down if quality alone is not enough onPress Reduce to Target
Reduce to Target starts the work in this tab. Nothing is uploaded, so how long it takes is down to your own device.
Reduce to TargetImage Size Reducer to KB runs on your deviceDownload the JPG
The result appears with a download button, as JPG, WEBP or PNG. It was made on your device, so nothing has to be cleaned up afterwards.
Under the Hood: Canvas & Lossy Transform Encoding
When you process images with Image Size Reducer to KB, calculations execute directly in your browser's dedicated Web Worker via the OffscreenCanvas API. Lossy algorithms convert pixel matrices into the frequency domain using Discrete Cosine Transform (DCT) and Chroma Subsampling (4:2:0), removing imperceptible high-frequency color variations to compress payload size by up to 90% without visible degradation.
Frequency Domain Quantization
DCT decomposes 8x8 pixel blocks into spatial frequencies, discarding subtle chroma information the human eye cannot resolve.
Browser-Native Memory Isolation
Images are read as raw ArrayBuffers in client RAM. No byte stream is ever transferred across the public internet.
Fast LCP & Core Web Vitals
Optimized payloads load 3-5x faster on mobile networks, dramatically reducing Largest Contentful Paint (LCP).
Settings & Options Explained
Fine-tune quality, format, and compression parameters for your exact workflow.
Settings & Configuration Guide
| Setting | Recommended Value | How It Works & Impact |
|---|---|---|
| Target size (KB) | 100 | Takes a number from 1 to 20000, in steps of 10. Impact: The control runs from 1 to 20000; 20000 is as far as it goes. |
| Save as | JPG | Takes one of JPG, WebP or PNG. Impact: Each option is a different save as; switching it changes the result, not the speed. |
| Scale the image down if quality alone is not enough | on | Takes on or off. Impact: Left on, which is what the tool does when you change nothing. |
Best Practices & Key Considerations
Avoid common quality pitfalls and maximize output performance.
Expert Recommendations
- Quality is tried before dimensions on purpose. Dropping quality is often invisible on a photograph; dropping pixels is permanent and shows immediately.
- JPEG spends bits where there is detail, so size at a given quality is unpredictable from the quality alone. Measuring is the only honest method.
- PNG is lossless and cannot hit a target — there is no quality to trade. For photographs use JPG or WebP; keep PNG for screenshots and line art.
- A photograph at 60–80% quality is usually indistinguishable from the original. A screenshot of text at the same quality is visibly mushy, because sharp edges are what JPEG discards first.
- If the file is already under the limit it is left alone. Re-encoding a JPEG loses quality every time for no benefit.
Common Mistakes to Avoid
- Giving it a format it does not read — JPG, JPEG, PNG or WEBP are the ones it takes.
- Selecting several files at once; Image Size Reducer to KB works on one per run.
- Expecting Target size (KB) to go past 20000 — 1 to 20000 is the range the control offers.
- Leaving Save as on JPG when WebP or PNG was wanted.
Troubleshooting & Fixes
Quick solutions for common browser constraints, format issues, and edge cases.
Troubleshooting & Common Issues
The file is rejected before anything runs
Possible Cause: Image Size Reducer to KB reads JPG, JPEG, PNG or WEBP and nothing else.
Only one of several files comes back
Possible Cause: Image Size Reducer to KB handles one file per run.
Target size (KB) will not go above 20000
Possible Cause: The control runs from 1 to 20000.
Frequently Asked Questions
Everything you need to know about formats, privacy, and browser support.
Related Step-by-Step Guides
Explore companion workflows, optimization techniques, and verified tutorials.