🗜️

Compress Image

Reduce JPG, PNG, or WebP file size locally

75%
—
No file selected.

Compress Image — what it does

Reduce the file size of a single JPG, PNG or WebP by re-encoding it at a quality level you set, entirely inside the browser. The pixel dimensions stay the same; what changes is how much data is spent describing them, which on a typical photo is where most of the megabytes are hiding.

Worked example

The same 1600 × 1200 office photo compressed three times; for the first run the result line on the page reads 143 KB → 21 KB.

InputQualityOutput
photo-1600x1200.jpg — 143 KB75 %photo-1600x1200-compressed.jpeg — 21 KB, still 1600 × 1200
photo-1600x1200.jpg — 143 KB40 %photo-1600x1200-compressed.jpeg — 15 KB
photo-1600x1200.png — 142 KB75 %photo-1600x1200-compressed.webp — 11 KB (PNG input is re-encoded as WebP)

A PNG does not come back as a PNG: the tool writes WebP for PNG input, and JPEG output uses the .jpeg extension rather than .jpg.

When this tool helps

  • Getting a photo under an upload size limit on a form or listing site.
  • Cutting page weight before publishing an image to a website.
  • Trimming an email attachment that a mail server would otherwise reject.

How to use it

  1. Choose the image file.
  2. Set the quality level.
  3. Process the compression.
  4. Compare the resulting size and download the file.

Accuracy, limits, and good practice

  • Quality between 0.7 and 0.8 usually removes half the file size with no difference visible at normal viewing size.
  • Screenshots with text degrade faster than photographs; keep them higher quality or use PNG to preserve sharp edges.
  • Compression is lossy and permanent, so always keep the original — you cannot re-derive detail from a compressed copy.
  • Compare the two files at full size before accepting the result; a saving that looks free at thumbnail size can be visible where it matters.

Frequently asked questions

Does it change the image dimensions?

No. Use the resizer if you need fewer pixels; compression only changes encoding quality.

Why did my PNG barely shrink?

PNG is lossless, so quality settings have limited effect. Convert photos to JPG or WebP for meaningful savings.

Can I compress a batch of images?

Yes, the batch image compressor applies one setting across many files and returns them as a ZIP.

Does the tool strip metadata as well?

Re-encoding drops EXIF, which shrinks the file a little further and removes camera and location tags along the way.

Why did my PNG come back as a .webp file?

PNG is lossless, so the quality slider would do nothing to it. The tool therefore re-encodes PNG input as lossy WebP at the chosen quality, which keeps transparency. If you need a PNG again, run the result through the format converter.

What does the quality number mean?

The slider runs from 10 to 100 and is passed to the JPEG or WebP encoder as 0.10–1.00. 100 is still lossy, just with the least loss. The before/after figures are rounded to whole kilobytes.

Related tools on this site

Everything above runs inside this page. Compress Image needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

壓縮圖片能做什麼

在瀏覽器內以你設定的品質重新編碼單張 JPG、PNG 或 WebP,降低檔案大小。像素尺寸不變,改變的是用多少資料來描述它們——在一般照片上,肥大的 MB 數多半就藏在這裡。

實際範例

同一張 1600 × 1200 的辦公室照片壓縮三次;第一次執行時頁面上的結果列顯示 143 KB → 21 KB。

輸入品質輸出
photo-1600x1200.jpg — 143 KB75 %photo-1600x1200-compressed.jpeg — 21 KB,仍是 1600 × 1200
photo-1600x1200.jpg — 143 KB40 %photo-1600x1200-compressed.jpeg — 15 KB
photo-1600x1200.png — 142 KB75 %photo-1600x1200-compressed.webp — 11 KB(PNG 輸入會重新編碼成 WebP)

PNG 不會以 PNG 回來:PNG 輸入會輸出 WebP,而 JPEG 輸出的副檔名是 .jpeg 而非 .jpg。

什麼時候用得上

  • 讓照片符合表單或刊登網站的上傳容量限制。
  • 在圖片發佈到網站前先減少頁面重量。
  • 縮減會被郵件伺服器退回的信件附件。

使用步驟

  1. 選擇圖片檔案。
  2. 設定品質等級。
  3. 執行壓縮。
  4. 比較結果大小並下載檔案。

精確度、限制與實務建議

  • 品質 0.7 至 0.8 通常能砍掉一半檔案大小,在正常觀看尺寸下看不出差異。
  • 含文字的截圖比照片更快劣化,請維持較高品質或改用 PNG 以保住銳利邊緣。
  • 壓縮是有損且不可逆的,原檔請務必保留——壓過的副本無法還原細節。
  • 接受結果前請以完整尺寸比較兩個檔案;在縮圖上看起來白賺的壓縮量,放大後可能就看得出代價。

常見問題

會改變圖片尺寸嗎?

不會。需要更少像素請用縮放工具;壓縮只改變編碼品質。

為什麼我的 PNG 幾乎沒變小?

PNG 是無損格式,品質設定作用有限。照片改存 JPG 或 WebP 才會明顯變小。

可以整批壓縮嗎?

可以,批量圖片壓縮工具會用同一組設定處理多個檔案並打包成 ZIP。

會順便清掉中繼資料嗎?

重新編碼會丟棄 EXIF,檔案再小一些,相機與定位標籤也一併移除。

我的 PNG 為何變成 .webp 檔?

PNG 是無損格式,品質滑桿對它沒有作用,所以工具會把 PNG 輸入以所選品質重新編碼成有損的 WebP,透明區域會保留。若還需要 PNG,可再用格式轉換工具轉回去。

品質數字代表什麼?

滑桿範圍 10 到 100,會換算成 0.10–1.00 交給 JPEG 或 WebP 編碼器。100 仍是有損壓縮,只是損失最少。壓縮前後的數字會四捨五入到整數 KB。

本站相關工具

以上步驟全部在這個頁面內完成,壓縮圖片 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。