将 JPG 转换为 AVIF,在相似质量下,文件大小比 JPEG 最多减少 50%。AVIF 是浏览器支持的最现代图像格式,非常适合照片。
这款转换器完全在您的浏览器中运行,因此您的图片绝不会被上传。
如何使用此工具
添加 JPG
拖放您的 JPG 或点击选择文件。
AVIF 已默认选中
输出格式已设置为 AVIF。您可以根据需要调整质量 — 对于照片,50–60 是一个不错的起点。
对比
使用对比视图检查压缩结果。
下载
下载您的 AVIF 文件,打造更快的网站。
本节目前仅提供英文版本。
What AVIF buys you over JPEG
AVIF is based on the AV1 video codec, and it is the most efficient still-image format in wide use. Against JPEG at comparable quality, AVIF typically produces files 40–60% smaller — and unlike JPEG it supports transparency, wide colour gamuts and high dynamic range.
The reason to convert an existing JPEG is bandwidth: an image-heavy page can often be cut substantially in weight with no visible difference. The reason not to is compatibility, which is the next section.
The compatibility caveat
AVIF is supported in current versions of Chrome, Firefox, Safari and Edge. Older browsers — including Safari before version 16 — cannot decode it at all and will show nothing. Never replace a working JPEG with AVIF as the only source; serve AVIF from a <picture> element with the JPEG as a fallback.
Encoding is slow, and that is the trade-off
AVIF takes noticeably longer to encode than JPEG or WebP — often several times longer for the same image. For a handful of images that is irrelevant. For a library of thousands, it is the reason many pipelines still generate WebP first and add AVIF only for their most-viewed images.
常见问题
AVIF 比 JPEG 小多少?
在相同视觉质量下,AVIF 生成的文件通常比 JPEG 小 30–50%,而且它还支持透明度和 HDR。
AVIF 在浏览器中受支持吗?
是的 — Chrome、Firefox、Safari 和 Edge 都支持 AVIF 图片。
AVIF 能在所有地方使用吗?
AVIF 适用于所有现代浏览器。为了获得最大兼容性,您可以使用 HTML 的 picture 元素,以 JPEG 作为回退方案来提供 AVIF。