Image Compressor
Try to meet an upload limit using JPEG or WebP. Files stay on your device. Check the measured size and preview before downloading; a target is not guaranteed.
No image selected.
Choose an image to begin.
Your compression result
Both previews fit their panels by default. Actual-size mode shows each image at its own pixel dimensions; resizing can make those dimensions differ. Check edges and small text before downloading.
Download resultNeed a specific pixel size? Use the image resizer. Choose the file again there.
Using Image Compressor
Prepare a still image for an upload form with a file-size limit, measuring the encoded result before you download it.
How to use it
- Choose a PNG, JPEG, or WebP file and enter your upload limit in decimal KB. For example, 200 KB means 200,000 bytes.
- Choose JPEG for an opaque output or WebP to keep transparent pixels. JPEG fills transparency with your chosen background color.
- Leave pixel bounds empty to keep dimensions. If the target is not reached, explicitly enter smaller width or height bounds, try the other format, or raise the target.
- Read the target status, actual byte count, and dimensions. Inspect text and edges in the preview before downloading; keep the original.
Worked example
- Input and settings
- A photo for a form with a 200 KB maximum; target 200; JPEG output.
- Expected result
- A measured 198,500-byte result qualifies. A 205,000-byte result does not, even if it looks small; the tool reports target not reached and offers the smallest tested result.
Limits and common mistakes
- Up to ten quality levels (95%, 85%, 75%, 65%, 55%, 45%, 35%, 25%, 15%, 10%) are tested in order. The first qualifying level is the highest tested level that fits, not a guaranteed optimal encoding. If none qualifies, the smallest measured result is retained.
- Compression is lossy and can blur small text or introduce artifacts. The output can exceed the original file size. PNG input is accepted, but PNG output is not offered because a PNG quality slider would not provide this search.
- Dimensions are never reduced automatically. Explicit pixel bounds preserve proportions with whole-pixel rounding and never enlarge the source.
- Input limit: 25 MiB. Output-area limit: 16,777,216 pixels. Large images can exceed device decoding memory. Browser encoders and output quality vary; unsupported format fallback is rejected.
- The output is a still image. Animation, metadata, and color-profile preservation are not guaranteed. Images are processed on your device without uploading the source.
Found a mismatch? Report a problem with a non-sensitive example. Read our privacy information before sharing inputs or links.
๐ Related Tools
Image Resizer
Fit PNG, JPEG, and WebP within width and height bounds, keeping proportions without enlarging the image.
Batch Image Converter
Convert up to 10 images locally, with progress, cancellation and individual or ZIP downloads.
JPG to WebP Converter
Convert JPG photos to WebP in your browser, with adjustable quality and dimensions. Nothing is uploaded, no signup.
PNG to WebP Converter
Convert PNG images to WebP in your browser. Adjust quality and dimensions with transparency preserved. Nothing is uploaded.