Image Compressor

Compress JPEG, PNG and WebP locally to JPEG/WebP, targeting a file size or quality and reporting actual results.

Local processing. JPEG, PNG and WebP input. Converted JPEG/WebP outputs discard metadata. Target size is best effort. Originals are kept when a conversion would be larger, unless you turn that protection off. Kept originals retain their metadata and dimensions.

Drop images here, or use the file chooser. For other formats, convert HEIC to JPG, SVG to PNG or PSD to PNG first.
1 KiB = 1024 bytes.
Target file size mode only. Tries smaller dimensions if adjusting quality at the selected size is insufficient.
Original format, dimensions and metadata may be kept. Turn off only when conversion or resizing is required.

About this tool

Reduce image dimensions and choose JPEG or WebP output locally. Use a quality value or a target file size; the tool reports actual achieved bytes and explicitly flags a target it could not meet.

Use this tool step by step

  1. Choose JPEG, PNG or WebP images and review quality, output format and optional resizing. Quality mode is the starting mode; choose a target size when a destination sets a limit.
  2. The original is kept when conversion would not reduce file size. Kept originals retain their format, dimensions and metadata. Turn that protection off only when you need a specific conversion or resize, then check the actual output size and preview.

How it works

Target mode searches quality from 1% to 100% at the chosen dimensions, retaining the highest tested quality that meets the byte limit. If minimum quality still exceeds the target, optionally try smaller dimensions in steps, keeping the aspect ratio as closely as whole pixels allow. Check the reported final dimensions and actual file size before downloading.

Example workflow

A 2,400 × 1,600 image with maximum edge 1,200 becomes 1,200 × 800. A 100 KiB target means 102,400 bytes. Success is measured against the downloaded bytes, not an estimated compression ratio.

Compress an image to a 100 KB upload limit

If an upload form caps each image at 100,000 bytes, choose Target file size and enter 97.65625 in Target KiB / image. One KiB equals 1,024 bytes, so 100 KiB would allow up to 102,400 bytes. If the form only says 100 KB, 97.65 KiB is a slightly smaller target.

Choose the output format your upload form accepts. Leave Allow smaller dimensions to hit the target off if the form requires specific dimensions, and set Maximum edge to 0 to retain them. If the result still exceeds the limit and the form accepts smaller images, turn on resizing and try again. Check that the result meets the target before downloading it, and check its dimensions if the form specifies them.

Go to the image compressor

Resize an image to exact pixel dimensions

NIST explanation of KB and KiB

When your source file is a PDF

If an upload form asks for a JPG, export only the PDF pages you need as images, then compress those JPGs individually. If the form accepts a PDF, compress the PDF directly so selectable text can stay in the document.

Export selected PDF pages as JPG images

Compress the PDF to an upload limit

Estimate how much faster a smaller image transfers

Use the actual output size shown after compression. For example, at a measured 8 Mbps, a 12 MB image takes about 12 seconds to transfer. If the compressed image is 3 MB, the same transfer takes about 3 seconds.

These examples use decimal megabytes and a steady measured speed, with no extra bandwidth deduction. Time spent connecting to a service or waiting for it to process the file is separate.

Estimate the transfer time for the original 12 MB image

Estimate the transfer time for the compressed 3 MB image

Assumptions and limitations

Inputs: JPEG, PNG and WebP. Converted outputs: JPEG or WebP when the browser encoder supports it. Converted JPEG flattens transparency to white and converted images discard metadata and use one browser-decoded animation frame. When original protection is on, a file that would not get smaller is kept in its original format, dimensions and bytes, including any metadata or animation. No AVIF encoder is implied.

To compress a photo to 100 KiB or less, select Target file size and enter 100. Allow smaller dimensions if the destination sets a byte limit and accepts smaller pixel dimensions. For a strict 100,000-byte limit, enter 97 KiB or lower. Inspect small text and fine detail at full size. A PNG with sharp graphics may be better left unchanged than converted to a lossy image.

Sources and editorial responsibility

Maintained by Renvoro Pty Ltd. Sources inform the methods and assumptions shown here; outputs have the limitations described on this page.

Common questions

How do I set a 100 KB upload limit?

For a 100,000-byte limit, enter about 97.65 KiB. A KiB is 1,024 bytes. Check the resulting byte count before uploading it elsewhere.

Will compressing an image change its dimensions?

It can when you allow a size reduction to meet a limit. Keep that option off when a form requires exact dimensions. Some files cannot meet the target at their original size.

Can I keep a transparent background?

JPEG outputs flatten transparency onto white. Choose a supported transparent output format such as WebP when a transparent background matters.

Guide updated 2026-11-22. Calculation method and source dates remain separate.

Method reviewed 2026-10-11. Calculation standards · Report an issue