Image Tool

在线压缩图片

几秒内减小图片文件大小。使用质量滑块或 KB 目标大小压缩 JPEG、PNG、WEBP 和 HEIC 照片。无需账户。

Free to use No account required Stays on your device Nothing uploaded

What this image compressor does

This tool takes an image you upload and re-encodes it so the file uses fewer bytes. Compressing an image is different from resizing it: resizing changes the width and height in pixels, while compression reduces image file size and usually leaves the dimensions untouched. A photo can stay 4000 × 3000 pixels and still lose most of its weight, or barely shrink at all if it was already optimized.

Use it when a JPEG is too big for a website upload form, an email attachment limit, a social platform, or a product listing. If you also need different dimensions, run the image resizer first and compress afterwards.

How to compress an image online

  1. 上传图片. 将 JPEG、PNG、WEBP、HEIC 或其他支持的图片拖放到上传区域,或一次选择多张图片。
  2. 选择质量级别. 移动质量滑块(默认 80%)。质量越低文件越小,可见伪影越多。
  3. 或设置目标文件大小. 输入 KB 目标大小,质量会自动调整以接近该文件大小。
  4. 压缩并下载. 点击压缩图片,等待处理完成,对比前后效果,然后下载更小的文件。

Three ways to reduce image size

File size comes from three things: how much detail the encoder keeps, how many pixels the image has, and which format stores those pixels. You can pull any of those levers, and combining them gives the biggest reduction.

1. Lower the encoding quality

The quickest way to reduce image file size is to compress at a lower quality. Dropping a photo from 100% to 80% often removes more than half the bytes with no obvious difference on screen. This is what the quality slider above does.

2. Reduce the pixel dimensions

A 6000-pixel-wide photo displayed in a 1200-pixel column is carrying five times more data than it needs. Cutting the width in half removes roughly three quarters of the pixels. Use the resize image tool to set exact dimensions or a percentage, then compress the result.

3. Switch to a lighter format

Format matters as much as quality. A screenshot saved as PNG can shrink dramatically as WEBP, and a photo stored as PNG is often much smaller as JPEG. Keep PNG only when you need transparency or pixel-exact graphics.

Compressing JPEG, PNG, WEBP, and HEIC

Compress JPEG

JPEG is built for photographs and responds well to compression. Camera and phone JPEGs are usually saved at a very high quality setting, so re-encoding at 75–85% typically cuts the file size in half while the photo still looks the same at normal viewing size.

Compress PNG

PNG is lossless. This compressor runs OxiPNG in your browser on the original PNG bytes — it does not re-encode through Canvas. Flat graphics, logos, and screenshots compress well. Photographs saved as PNG usually get much smaller by converting them instead.

Compress WEBP and AVIF

WEBP and AVIF are already efficient modern formats, so expect smaller gains than with an untouched JPEG. They are still worth compressing when you are chasing page speed and every kilobyte in the payload counts.

Compress HEIC photos from an iPhone

HEIC uploads are compressed and saved as JPEG, which makes them viewable everywhere. If you only need the format change without extra compression, use the dedicated HEIC to JPG converter.

Which quality setting should you use?

Quality What you get Good for
85–90% Modest size reduction, detail kept Portfolios, print-adjacent work, photo archives
75–85% Large saving, hard to tell apart from the original Website images, blog posts, product photos
60–75% Small file, slight softness in fine texture Email attachments, forms with upload limits
10–60% Smallest file, visible blocking and banding Thumbnails, previews, strict size caps

These are starting points, not rules. After compressing you get a before and after slider, so you can raise or lower the quality and re-apply until the balance looks right.

Why people reduce image file size

  • Faster pages. Images are usually the heaviest part of a page, so compressing them is the simplest way to improve load time and Core Web Vitals.
  • Email and messaging limits. Most providers cap attachments, and a handful of phone photos passes that cap quickly.
  • Upload forms. Job applications, government portals, and school systems often reject anything over a fixed number of kilobytes.
  • Marketplace and CMS rules. Storefronts and content platforms enforce their own maximum file size per image.
  • Storage and backups. Smaller files mean more photos in the same space and quicker syncing.

Supported formats and limits

Accepted uploads: JPEG, PNG, WEBP, GIF, BMP, TIFF, AVIF, HEIC. Maximum size: 200 MB per image.

Limitations: Compression can reduce visual quality. HEIC inputs are saved as JPEG. Transparent PNGs converted through JPEG-oriented paths lose transparency. Savings depend on the original file.

Privacy: Your image is processed locally in your browser and is not uploaded to ImgTask's server. Image files never leave your device. No account is needed and results carry no watermark.

More Tools

Frequently Asked Questions

压缩减小图片文件大小,便于上传、发送邮件或在网站上加载。通常调整编码质量,不一定改变图片的宽度和高度。
压缩前在目标文件大小(KB)字段输入数值。质量会自动调整以接近该大小 — 例如表单上传 100 KB 或网页图片 500 KB。
从约 80% 质量开始,对比前后预览。大多数照片在 75–85% 时看起来相同,而文件明显变小。
压缩针对文件大小。调整大小改变像素尺寸(宽度和高度)。可以两者结合:先调整大小,若文件仍大再压缩。
可上传 JPEG、PNG、WEBP、GIF、BMP、TIFF、AVIF 和 HEIC/HEIF。HEIC 照片压缩后保存为 JPEG。结果和节省空间因格式而异。
每张图片最大 200 MB。非常大的像素尺寸可能在浏览器中失败。处理在浏览器中进行 — 文件不会发送到后台服务器队列。
压缩在浏览器中运行。图片在本地处理,不会上传到 ImgTask 的服务器。图片文件绝不会离开您的设备。
可在上传器中选择多张图片。每张图片作为独立任务处理。

Blog

Guides and tips from the blog

Short, practical articles to get more out of ImgTask and your image or PDF workflow.

View all articles

Processing…