Image Compressor & Resizer

Compress JPG, PNG, and WebP images, resize dimensions, or target a smaller file size locally.

Compress and resize JPG, PNG, and WebP images locally in your browser without uploading them. Adjust JPEG or WebP quality, choose a target such as 100KB or 200KB, or limit width and height for upload forms and web use. PNG target sizes are less predictable, so resize or convert PNG files when a specific size limit matters.

Runs locally in your browser. Images, settings, file metadata, and generated files are not uploaded.
Image file
No file selected
JPG, PNG or WebP · max 40 MB
Original preview

Choose a raster image to preview it locally.

Compressed preview

Your compressed preview will appear here.

Compression settings
Output format
Compression mode
Resize settings

Leave fields blank to keep the original size. With aspect ratio on, Width + Height form a bounding box; max values only scale down.

Processing stays in this browser tab. Images, output blobs, settings, file names, dimensions, and target sizes are not uploaded, persisted, logged, added to URLs, or sent to analytics, ads, error reporting, or external APIs.
Canvas export may remove metadata and keeps only the decoded frame of an animated WebP. Very large images can exceed browser memory, and JPEG/WebP target sizes may require smaller dimensions.

How to use Image Compressor

  1. Choose a JPG, PNG, or WebP image from your device.
  2. Select JPEG, WebP, or PNG as the output format.
  3. For JPEG or WebP, choose Quality mode or a target size such as 100KB or 200KB. PNG does not provide predictable quality-based target compression.
  4. Optionally set width, height, maximum width, or maximum height, and keep Preserve aspect ratio on when you do not want the image stretched.
  5. When converting a transparent image to JPEG, choose the background color used to replace transparent pixels.
  6. Compress the image, review the before-and-after size, dimensions, format, and any target warning, then download the result.

Examples

Copy patterns and edge cases worth checking.

Compress a JPG for an upload form

If the target is missed, reduce the dimensions and try again.

2.4 MB JPG, JPEG output, target size 200KB
A JPEG at or below 200KB when the browser encoder can reach the target, or the smallest quality attempt with a warning.

Resize by maximum width

The final file size still depends on the image content, output format, and quality.

4000 × 3000 image, max width 1600 px, preserve aspect ratio
1600 × 1200 output without enlarging the image.

Convert PNG or JPG to a smaller format

Compare the preview and output size because format conversion does not guarantee a reduction for every image.

PNG or JPG input, WebP or JPEG output, quality 75%
A WebP or JPEG file that may be smaller than the source.

FAQ

Short answers before you paste real data.

Are images uploaded to a server?

No. Image decoding, resizing, compression, preview, and export run in the current browser tab. Images, settings, file details, and generated files are not uploaded.

Can this compress an image to exactly 100KB or 200KB?

Not to an exact byte count. For JPEG and WebP, the tool searches for the highest quality output at or below the selected target when possible. Some images still exceed the target at minimum quality; reduce their dimensions, choose another format, or try again with different settings.

Why is PNG target-size compression less predictable?

Browser canvas export does not expose a reliable PNG quality control. Resize the image or convert it to JPEG or WebP when a practical target size matters. JPEG and WebP quality can be adjusted directly.

What happens to transparency when I choose JPEG?

JPEG cannot preserve transparency. Transparent pixels are flattened onto the background color you choose. Use PNG or WebP output when you need to keep transparency.

Does the compressed image keep metadata or animation?

Canvas export may remove image metadata. An animated WebP is processed as its decoded still frame, so the downloaded output is not animated.

Can I compress very large images?

Browser memory and canvas limits still apply. The tool rejects inputs or dimensions that are unsafe to process, and a very large image may require resizing before it can be exported reliably.

Related tools

Useful next steps that also run locally in your browser.