Skip to content
Toolars
Explore

Image Compressor

Choose a target size or encoding quality for JPEG/WebP. Process locally, keep dimensions, check bytes, and download. A smaller file is not guaranteed.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Privacy information
Report bug
Worked example · Check a 100 KB ceiling with the built-in sample

Worked example

Check a 100 KB ceiling with the built-in sample

Rehearse a portal upload with the built-in synthetic image before choosing a personal file. The sample is 960 × 640 pixels. The target limits encoded bytes; it does not request exactly 100 KB or change the pixel dimensions.

Input and settings
Built-in JPEG sample · 960 × 640 · 100 KB = 100000 bytes
Expected output
Check JPEG · 960 × 640 · at most 100000 bytes if target reached

Steps to reproduce

Load the sample, keep target-size mode, select 100 KB and JPEG, then compress. Switch between Source and Result at 100% to inspect fine detail. Download the result and open the saved file separately.

Check before you use it

Check the saved file’s actual bytes and dimensions. Encoder output can vary by browser, so compare with the ceiling instead of expecting one exact size or reduction percentage. A closest result above 100000 bytes misses this requirement. Review visual quality even when the target is reached; use resizing only if the recipient allows smaller dimensions.

Task path / input to outcome

How to compress an image to a file-size limit

  1. 01

    Choose an image

    Select Choose an image and open one PNG, JPEG, or WebP — up to 12 MiB, 8,192 pixels per side, and 24 million pixels in total. The file opens inside this tab; nothing is uploaded, and the source file on your disk is never modified.

  2. 02

    Choose compression mode and output format

    The target is an upper byte limit, not an exact size or visual-quality guarantee. JPEG and WebP search between 50% and 95% encoder quality. Dimensions stay unchanged. A closest result still exceeds the limit; inspect the image before using it.

  3. 03

    Set a target size

    Enter a whole-number target from 1 to 12,000 KB (1 KB = 1,000 bytes) when the destination names a byte limit, or leave the target off and rely on the quality settings alone. Dimensions always stay unchanged; only the encoding changes.

  4. 04

    Check the result

    The result panel shows the measured before-and-after bytes and states plainly when the output is not smaller than the original. PNG is re-encoded without a quality search and may not get smaller; choose JPEG or WebP explicitly for lossy compression, and remember JPEG replaces transparency with the selected background color.

  5. 05

    Download

    Save the file and inspect it at full size: check text, faces and transparent edges where relevant. A closest result still exceeds the byte limit and does not meet that requirement. If the recipient permits smaller dimensions, use Image Delivery to resize explicitly, then inspect and measure the new output.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Nothing is stored
Price
Free

Your input stays in the browser.

Image Compressor uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Immediate reset

Clear the tab and the active working data is gone.

When Image Compressor is useful

Fit a photo under an email limit

A 3,000 KB phone photo needs to go under 1,000 KB before the mail service accepts it. Choose JPEG, enter 1000 as the target, and compress. The dimensions stay untouched; check the actual output bytes and the sharpness of faces before sending.

Shrink a transparent logo for a website

For a transparent PNG logo, choose WebP and try a 200 KB budget. JPEG and WebP search between 50% and 95% encoder quality, so the target may remain unmet. Check the actual output bytes and whether the result reached the target or is only the closest match. Confirm the destination accepts WebP, then inspect transparency and edges in the download.

When the PNG will not get smaller

PNG has no quality search. When keeping PNG and no pixel or orientation changes are needed, the tool can reuse the smaller metadata-stripped source; the output may stay similar in size or get smaller. Converting another format to PNG can increase bytes. Check the downloaded bytes: the target is not guaranteed. Try WebP only if the recipient accepts it, or use Image Delivery to resize only if smaller dimensions are allowed.

What Image Compressor actually does

A concise guide to the transformation, its boundaries, and the result you should expect.

Common questions

Which formats are supported?
One PNG, JPEG, or WebP; up to 12 MiB, 8,192 pixels per side and 24 million pixels. PNG is re-encoded without a quality search and may not get smaller. Choose JPEG or WebP explicitly for lossy compression.
Does the target guarantee an exact size?
The target is an upper byte limit, not an exact size or visual-quality guarantee. JPEG and WebP search between 50% and 95% encoder quality. Dimensions stay unchanged. A closest result still exceeds the limit; inspect the image before using it.
Does my image leave this device?
Processing stays in this browser. The original is unchanged; the new file is re-encoded and checked for metadata removal. Closing or resetting the workspace discards its in-memory files.
How do I prepare a JPEG for a 200 KB upload limit?
If the receiving form accepts JPEG and limits files to 200 KB, choose JPEG and enter 200 as the target (200,000 bytes). For example, a 1200 × 800 photo keeps those dimensions. Check the actual output bytes and inspect text or faces before downloading. A closest result is still over the limit. If resizing is allowed, use Image Delivery to reduce dimensions explicitly; check the receiving form’s own size and format rules.
How do I make a smaller web image while keeping transparency?
For an 800 × 800 transparent PNG, choose WebP and try a 300 KB target as a starting budget. Dimensions stay unchanged. Check transparent edges and fine text in the downloaded file, and confirm the destination accepts WebP. If WebP export is unavailable, choose PNG to keep transparency, but PNG may not become smaller or meet the target. JPEG fills transparent areas with a background color.
What should I compare when choosing an image tool?
This tool processes images in your browser. Compare accepted formats, file and pixel limits, available controls and the downloaded result. For another service, check its current privacy and usage terms before providing files.
Why did my PNG get bigger after compression?
PNG has no quality search. A same-format run can reuse the smaller metadata-stripped source when pixel data and orientation do not need changing, so the output may stay similar in size or get smaller. Converting JPEG or WebP to PNG can increase bytes. Check the downloaded bytes; reaching the target is not guaranteed. Change the output format or resize in Image Delivery only if the recipient permits it.
Does compression remove my photo's metadata?
Yes — the new file is re-encoded and checked for metadata removal, so EXIF fields such as camera model, GPS coordinates, and capture date do not carry into the output. That is usually what you want when sharing, but keep the original if the metadata itself matters to you.
Can I compress several images at once?
This tool processes one image per run. For batches, use Image Delivery and review its formats, limits and available steps before starting. Check each downloaded file against its own byte limit and visual requirements.

Keep reading

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

Image Resizer

Resize local PNG, JPEG, WebP, SVG or GIF images to an exact size with an optional aspect-ratio lock. PNG / JPEG / WebP / SVG / GIF. GIF input exports the first frame only; animation is not retained.

Edit

Image Format Converter

Convert HEIC/HEIF, AVIF, GIF, PNG, JPEG or WebP locally to PNG, JPEG, WebP or a static GIF. Choose the output format and applicable quality or background settings, then compare actual file sizes.

Convert

EXIF Metadata Viewer & Remover

Inspect GPS, camera, and exposure metadata in JPEG and PNG photos, then strip it losslessly — single files or batches of up to 12.

Protect

Image Cropper

Drag to crop, choose a ratio, and download your image. Rotation: 90° / 180° / 270°.

Edit