Image tools

Image Compressor

Compress PNG, JPG, JPEG, and WebP images with quality and max-width controls, without uploading the image.

Your PNG, JPG, JPEG, or WebP preview will appear here.

WebP quality

78%

Lower quality usually creates a smaller file. Higher quality keeps more detail.

Maximum output dimension is 8000px per side to keep browser memory usage reasonable.

When should you compress an image?

Compress images before uploading them to websites, blogs, CMS libraries, email campaigns, or product pages where file size affects load time and Core Web Vitals.

Use the optional max-width setting when you want to reduce both pixel dimensions and file size for hero images, article thumbnails, or screenshots that do not need full source resolution.

Choosing JPG vs WebP

WebP is usually the better default for modern sites because it often produces smaller files than JPG and can preserve transparency from PNG sources.

JPG is useful for broad compatibility, email workflows, and legacy systems, but transparent pixels are flattened onto the selected background color.

Common compression mistakes

The most common mistake is lowering quality too far before checking text, UI edges, or product details. Quality values around 70 to 82 usually work well for photos, but screenshots and diagrams usually need more.

If the compressed file is still too large, reduce width as well as quality. A blog hero often does not need more than 1600px, and many inline article images work fine at 1200px or 1024px.

Example output

Input
Output
A large JPG photo, transparent PNG graphic, or WebP website image
A smaller JPG or WebP file using your selected quality and optional max-width setting

The browser decodes the source image, draws it onto a canvas, and re-encodes it as a compressed file. In practice, a multi-megabyte upload can often become a few hundred kilobytes when width and quality are tuned for web delivery instead of archival storage.

FAQ

Does this upload my image?

No. The compression runs locally in your browser with Canvas APIs. Your image is not uploaded or stored by this tool.

Why did my PNG become JPG or WebP?

PNG is lossless and often not ideal for heavy compression. This tool re-encodes images as JPG or WebP so you can reduce file size.

Can compression make images look worse?

Yes. Lower quality values usually create smaller files, but they can add blur, banding, or artifacts. Preview the result and adjust quality as needed.

What is a realistic file-size improvement?

Large source images often shrink by 40% to 80%, especially when you combine lossy output with a smaller max width. The exact result depends on the source format and image detail.

Last updated: May 14, 2026

Related tools