Compress an image to a target file size
Choose a target KB size and this browser tool searches for the highest quality export under that limit. Files stay on your device.
Use this tool freeBrowser tool
Image file size targeter
Runs locally in your browser. The selected image is not uploaded by this tool.
JPEG, PNG, and WebP are supported by default. Specialized converters restrict the file picker to their required input format.
How to use
Upload images
Drag and drop JPEG, PNG, or WebP files into the drop zone, or click to browse. Each file can be up to 50 MB.
Set target size
Enter the maximum KB size required for your upload or website performance budget.
Download the closest match
Run the targeter, review the output size, and download the browser-generated file. If it cannot hit the exact cap, use the warning to adjust the target.
Features
Target KB input
Set an exact file size goal, then let the browser find the highest quality output under that limit.
Fast size presets
Pick common limits like 50 KB, 100 KB, 200 KB, 500 KB, or 1 MB, then fine-tune the exact number when a form has a strict upload cap.
Closest-match warnings
If the requested size is too aggressive for the image dimensions, the tool explains the closest export and suggests raising the target or resizing first.
Private browser export
Compression runs with Canvas and Blob APIs in your browser. The image is not uploaded to a server before download.
After this task
After this free tool, open Ai Enhance for the next AI editing workflow.
Continue with Ai EnhanceSpecifications
| Supported formats | JPEG, PNG, WebP |
| Max file size | 50 MB per image |
| Search range | 20–95% canvas export quality |
| Typical reduction | 40–80 % smaller |
| Target presets | 50 KB, 100 KB, 200 KB, 500 KB, 1 MB |
| Processing | Client-side (no upload) |
Related Magic Eraser Tools
Common questions
Why did the result miss my exact target?
+
Some images cannot fit under very small limits without resizing dimensions. The tool returns the closest browser export and tells you when to raise the target or resize first.
Should I compress images before uploading to my website?
+
Yes. Smaller images load faster, improve Core Web Vitals scores, and reduce bandwidth costs. Aim for under 200 KB per hero image and under 100 KB per thumbnail.
What happens to PNG uploads?
+
PNG uploads are exported as WebP because target-size workflows usually need the smallest acceptable web file. Use the PNG to JPG or WebP converter if you need a specific format.
Compressed but blurry?
AI Enhance can restore sharpness and detail to over-compressed images. Run your photo through the enhancer after compressing for the best of both worlds.
Try it freeMore free tools
Explore our other limited free edits after sign-in photo and image tools.
Design linear, radial, and conic gradients with multiple color stops. Copy the CSS code or download as a PNG image.
Convert colors between HEX, RGB, HSL, HSB, CMYK, and CSS named formats. See a live preview, copy any value, and export a color card.
Convert HEX color codes to RGB values and vice versa. Live preview, one-click copy, and CSS snippet output. works in your browser.
Pick any color from an uploaded image and get its HEX, RGB, and HSL codes instantly. Build palettes from photos for web design, branding, and illustration.
Upload a photo and extract 5-10 dominant colors with HEX, RGB, and HSL codes. Copy swatches, export as ASE or CSS variables.
Generate QR codes for URLs, text, WiFi credentials, and vCards. Customize colors, add a center logo, and download as PNG or SVG.