全球免费使用

把图片压缩到指定 KB 大小(20 KB、50 KB、100 KB)

把照片或扫描的签名压缩到在线表格要求的大小,例如 20 KB、50 KB 或 100 KB。先降低质量,必要时再缩小尺寸。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

Government portals, job applications and exam registrations often demand photos and signatures under a strict size such as 20 KB, 50 KB or 100 KB, sometimes with pixel limits too. Guessing the right quality setting in an editor takes many attempts. This tool searches automatically: it lowers the JPG or WebP quality step by step to reach your target and only reduces the dimensions if quality alone is not enough, so the image stays as large and sharp as possible.

Kilobytes are counted as 1,024 bytes, as most upload forms do.

使用方法

  1. Choose the photo or scanned signature.
  2. Enter the maximum file size in KB that the form allows.
  3. Optionally enter the longest side in pixels if the form specifies dimensions.
  4. Choose JPG or WebP and run it.

计算原理

A bisection search between 95% and 40% quality finds the highest quality whose encoded size is at or below the target. If even 40% is too big, the image is scaled down in proportion to how far it is over and the search repeats (below 320 px the quality floor drops to 10%). 1 KB = 1,024 bytes.

binary search on encoder quality (5–95 %), then scale by √(target ÷ size) until the file fits

计算示例

An exam portal requires a photo under 50 KB. A 2.4 MB phone photo (3000 × 4000) is reduced to photo-50kb.jpg: 49 KB at 1060 × 1413 pixels and quality 62%: sharp enough for a face on screen and accepted by the portal on the first try.

示例输入和结果

photo.jpg(2.4 MB,3000 × 4000)→ photo-50kb.jpg(49 KB,1060 × 1413,质量 62 %)

局限性

  • Very small targets (under about 10 KB) may require small dimensions.
  • Transparency is lost in JPG.
  • Metadata is not kept.

最后更新:

常见问题

Why is the result a little under the target?

The tool stops at the highest quality that fits, which is rarely exactly the limit.

The form also wants exact pixel dimensions.

Crop and resize to those dimensions first, or enter the longest side here.

Should I choose JPG or WebP?

JPG is accepted by almost every form; WebP gives better quality at the same size if accepted.

故障排除

The form still says the file is too large.

The form may count 1 KB as 1,000 bytes; enter a slightly lower target.

The face is blurry.

Crop to the face first so fewer pixels are needed.

The form wants a minimum size too.

Enter a higher target closer to the maximum.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步