Image Size Targeter
Use this free tool to compress image to target size. Set an exact byte limit, choose your quality floor, and allow smaller dimensions only if you want them.
- Free
- Works Offline
- No Uploads
Find an Image Within a Byte Limit
- Open the HTML, review Security Check, then select Continue.
- Drop a still image into Choose Image or select Open Sample.
- Set the size limit, unit, output format and applicable quality floor.
- To allow a smaller image, select Allow Smaller Dimensions and set minimum width and height.
- Select Find Target Size. Review the measured result and choose Download or Save As if the target was met.
Exact Sizes and Explicit Minimums
- Enter Bytes, decimal KB, or binary KiB and see the exact byte limit.
- Keep the source dimensions or explicitly allow smaller output with width and height floors.
- Verify the measured output before downloading, or see the smallest measured attempt if the search misses.
Formats and Compatibility
| Input | One still PNG, JPEG, or WebP. Set an exact positive byte limit and choose format, size, and quality constraints. |
|---|---|
| Output | One verified JPEG, WebP, or PNG when the search finds a file that meets the target and minimums. |
| Browser | A modern browser with local file support. |
| Scope | One still JPEG, PNG, or WebP up to 24 MiB and 8 megapixels. JPEG, PNG, and WebP output uses the browser’s encoder. Up to 18 measured encodes per search. |
| Operating Systems |
Local Processing Without Uploads
This browser-based, local tool lets you compress image to target size without uploading. File selection and all encodes happen on your device, with no upload.
Select Open Sample to see the workflow with the included example.
KB, KiB and Encoder Quality
To save an image under 100KB, choose a 100 KB decimal cap for at most 100,000 bytes, or enter 99,999 bytes for a strict under-100KB limit. To compress photo under 1MB, enter 999,999 bytes for a strict decimal limit. JPEG and WebP use an encoder quality hint. PNG uses lossless pixel encoding and can search smaller dimensions if allowed.
Check the Saved Image
Check the actual bytes, dimensions and format and compare the output preview. If the bounded search misses, review the smallest measured file and adjust your limit or minimums.
Frequently Asked Questions
Can I compress image to target size offline?
Yes. Extract the compress image to target size download, then open ImageSizeTargeter.html. The encodes and byte checks run locally.
How can I compress image to target size in browser?
Choose an image, pick a byte limit and minimums, and use Find Target Size. The tool verifies the saved file’s actual bytes.
What does a local compress image to target size workflow keep?
The tool keeps the current image dimensions by default. You can allow smaller dimensions and set two lower bounds. It saves a new image when the target is met.
Where is the free compress image to target size tool?
Select Open Targeter on this page or download the tool ZIP to run it from disk.
Why is there no download when the target is missed?
No candidate tested by the bounded search was within your target and selected minimums. The smallest measured size is shown for comparison.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.