Toolshub
压缩 · 在浏览器中运行

把图片压到指定文件大小

输入你必须满足的字节上限,页面在画质与像素宽度之间反复搜索,直到编码结果正好落进上限;全过程在浏览器里,不上传。

$35 买断 · 免费上限每文件 25 MB· 每天 5 次免费

文件
未选择文件

填你必须满足的上限——表单限制、上传上限——而不是画质设置。

在本标签页内运行,不上传任何内容。

结果

免费档:每文件最多 25 MB,每次 3 个文件,每天 5 次。这件工具单件买断 $35,一次付款。对比价格。

正在使用免费额度。这件工具的买断是一次付款,不是订阅。

这页与别处不同之处

表单要求不超过 2 MB、上传接口卡在 500 KB——真正要满足的是一个字节数,不是某个画质档位。这个页面按你给的字节上限做二分搜索,在画质与像素宽度之间找到最能守住细节的组合,并把结果压进上限之内。编码在本地完成,文件不离开标签页。

按字节上限而不是画质档位工作,并在结果里说明为达标牺牲了什么。

示例输入与输出

环节 情形 体积 说明
输入 8.4 MB 手机照片 8.0 MB 4032 by 3024 JPEG taken on a phone, the usual shape of an upload that gets rejected
输出 压在 2 MB 上限下的 1.9 MB 结果 1.8 MB same framing, resampled to about 2560 px wide, quality settled near 0.72

这里写的是本页构建时对照的演示数字,不是对每个文件的承诺。

你可以自己核对什么

承诺 测试结果
200 KB 的上限会落在 1% 以内,而不是远远压过头。 7.6 MB 的噪声 PNG 在 200 KB 目标下输出 204,647 字节,在 500 KB 目标下输出 506,107 字节,深测实测。
缩小的同时,画面比例保持不变。 4:3 照片压到 200 KB 后输出 1085×814 像素,比例在缩放中保留,没有被挤扁。

常见问题

以下问答目前仍为英文原文。

Does the photo get uploaded anywhere?

No. The file is decoded with the browser image decoder and re-encoded on a canvas in this tab. There is no upload endpoint on this site at all.

Why is the result size not exactly the number I typed?

Encoding is not perfectly predictable, so the page stops at the highest quality that still lands under your ceiling. Expect a few percent below it, never above.

What happens when the ceiling is impossible?

If even the lowest quality at the smallest allowed width cannot fit, the page tells you the smallest size it could reach instead of silently returning a file that fails your limit.

Is the original file modified?

No. The page only reads it and hands back a new file. Your original stays exactly as it was on disk, so you can retry with a different ceiling.

What are the free limits?

Free runs take files up to 25 MB, three at a time, five runs a day. A buyout removes the daily count and raises the batch size; a site-wide yearly pass raises it further.

价格

这件工具一次性 $35,只要工具还在就一直可用。一次付款,不是订阅。授权存在当前浏览器里,凭交易号可在别处恢复。

免费档:每次 3 个文件,每文件 25 MB,每天 5 次。买断:50 个文件,每文件 200 MB。

相关工具