Doviren
中文 ▾

TinyPNG

通过减少颜色数据压缩 PNG 和 JPEG,通常能小 50–70%,肉眼差别不大。

它到底是什么怎么用免费档给到哪强在哪、弱在哪适合谁

它到底是什么

原条目说页面加载慢、测速过不了时,开发者常先来找它:减少图片里的颜色数据,把体积压下来。

怎么用

拖入 PNG 或 JPEG,下载压缩后的版本,再替换到站点里。

免费档给到哪

免费档限制批量上传数量,具体额度以对方官网为准。

强在哪、弱在哪

压完肉眼差别小、对页面速度帮助直接;但这是有损压缩,反复压会累积损失,重要原图一定要留备份。

适合谁

上线前统一压一轮图、或要给页面减重的人。

常见问题

能小多少?

原条目给的是通常 50–70%。

是无损吗?

不是,靠减少颜色数据实现,属有损。

原图要留吗?

要,别用压缩版当唯一母版。

关于原文与更新

本页中文部分按中文习惯重写,只转述原条目已有的事实,不新增功能承诺。下面是原站评测全文,一字未删照搬,便于逐条核对;第三方服务的功能与免费额度会变,以英文原条目和对方官网为准。

打开英文完整条目 →

原站评测全文(英文原文,照搬)

TinyPNG

TinyPNG is the tool most web developers reach for when a page fails a speed audit. Drop in your images and it returns versions that are typically 50–70% smaller, with a difference most people cannot see.

What It Is

The technique is called quantisation: instead of blurring pixels the way a naive JPEG re-save does, it reduces the number of distinct colours in the file and, where possible, switches to a more efficient encoding. For PNGs with transparency it uses a palette-based approach that preserves alpha channels. The result is a genuinely smaller file without the smeared artefacts of aggressive JPEG compression.

The practical impact is large. A hero image that was 1.8MB comes back at perhaps 550KB, which meaningfully improves page load time and Core Web Vitals scores — the metrics Google uses as ranking signals.

There is a free tier with a per-batch image limit, plus a paid option and an API for automated build pipelines.

Open TinyPNG →

How To Use It

  1. Go to tinypng.com
  2. Drag in up to the free-tier limit of images at once (PNG, JPEG or WebP).
  3. Wait while each file is processed — usually a few seconds each.
  4. Check the reported saving percentage for each file; download individually or as a zip.
  5. Compare the result against the original at 100% zoom before publishing.
tip

Free Plan Details

RegistrationNot required for the web tool
WatermarkNone
Free tierLimited number of images per batch (API has a monthly free allowance)
Typical saving50–70% reduction
Supported formatsPNG, JPEG, WebP
TransparencyPreserved for PNG
ExtrasAPI for automated optimisation, Photoshop plugin

Check before you rely on it: free quotas, file limits and pricing change frequently. Confirm current terms on the official site before depending on it for regular work.

Strengths And Limitations

What works well

  • Large size reductions with minimal visible quality loss
  • Preserves PNG transparency, which naive JPEG conversion destroys
  • No registration needed for the browser tool
  • Shows exact saving percentage per file
  • API fits into automated build and CI pipelines

Limitations

  • Batch size limited on the free tier
  • Photographs with smooth gradients can show banding
  • Savings vary wildly by image type — flat graphics compress far better than photos
  • No fine-grained quality slider in the free tool

Who Should Use It

Web developers optimising page speed, designers preparing assets for a site, and anyone whose CMS or email rejects uploads for being too large. It is particularly effective on screenshots, logos and flat-colour graphics.

Frequently Asked Questions

Does TinyPNG reduce image quality?

It uses lossy compression, so technically yes — but it works by reducing the colour palette rather than blurring detail. For most images the difference is invisible to the naked eye.

Does it keep transparency?

Yes, PNG transparency is preserved, which is one of its main advantages over simply converting to JPEG.

How many images can I compress for free?

The browser tool accepts a limited batch per upload. The API has a monthly free allowance; beyond that it is paid.

Can it compress WebP?

Yes, WebP is supported alongside PNG and JPEG.

Is there an API for automated use?

Yes, with client libraries for several languages, commonly wired into deployment pipelines.

Does it work on photographs?

Yes, but continuous-tone photos with skies or gradients sometimes band. Check those at 100% zoom before publishing.