Resize Image to 20KB Online
Compress a photo or a signature scan down to 20 KB in your browser. Every result shows its real byte size and pixel dimensions, and the tool says plainly when 20 KB is out of reach.
将图片拖放到此处或点击上传
支持JPG, PNG, WEBP, BMP
What Fits in 20 Kilobytes
20 KB is 20,480 bytes. A JPEG of an ordinary photograph costs somewhere between a quarter and a half a byte for every pixel it stores, so 20 KB buys roughly 50,000 to 80,000 pixels in total - about 300 by 230. That is the honest arithmetic behind this page: a 12 megapixel phone photo cannot become a 20 KB file and stay 12 megapixels. Something has to go, and this tool gives up resolution rather than quality, because a small sharp picture is more useful than a full sized smeared one. Flat artwork behaves completely differently. A scanned signature is mostly white with a few thousand dark pixels, and JPEG spends almost nothing on flat areas, so a 600 by 200 signature commonly lands at 8 to 15 KB with no downscaling at all. The tool works by measuring rather than guessing. It encodes once, reads the exact byte count and pixel count of what came out, computes the bytes per pixel that this specific image actually costs, and solves for the pixel count that would fit the budget. That solved size drives the next attempt. Two or three rounds is normally enough. There are hard stops in both directions: quality never drops below about 0.54 on the JPEG scale, the long side never goes below 96 pixels, and no more than five encodes ever run. When those limits are hit before 20 KB is, the page says so and reports the smallest file it did produce. Camera metadata is stripped, because an EXIF block alone can eat several kilobytes of a 20 KB allowance. Everything runs on the canvas element in your own browser; no file is uploaded anywhere.
Why People Need Exactly 20KB
Almost nobody wants a 20 KB image for its own sake. They want it because a form refuses to accept anything larger. Government examination portals are the biggest single source of this: application systems for staff selection, banking, university entrance and civil service recruitment routinely cap the candidate photograph at 20 to 50 KB and the signature at 10 to 20 KB, and they reject the upload outright rather than compressing it for you. The same ceiling shows up on older municipal record systems, visa appointment sites, insurance claim portals and internal HR tools built a decade ago against a database column that was sized once and never revisited. These limits are almost never about bandwidth today. They exist because a field was defined long ago, thousands of records depend on it, and nobody is going to migrate a production database so an applicant can upload a nicer photo. That makes 20 KB a fixed obstacle rather than a preference, and it makes an honest answer more valuable than an optimistic one: if your document scan genuinely cannot fit, you need to know that now, not after the portal rejects it on the last day of the application window. It is also why this page reports the output resolution as prominently as the byte count - many of the same forms specify a pixel range alongside the size cap, and a file that clears 20 KB by becoming a 140 pixel thumbnail will fail the second check just as surely.
How to Compress an Image to 20KB
Start from the highest quality copy you have. Compressing an image that has already been squeezed once gives a worse result at the same byte count, because the first pass has already thrown away the detail the second pass would have used.
Drop in your photo or signature scan. JPG, PNG, WebP and BMP are accepted; several files at once is fine
Leave the output format on JPEG. It is the only format that reliably reaches 20 KB for a photograph
Click Apply and read the result panel - it reports the exact byte size and the exact output dimensions for each file
If a file is marked as not reaching 20 KB, check the reason given, then either accept the closest result or crop the image tighter before trying again
Frequently Asked Questions
更多图片工具
探索其他强大的图片编辑工具
压缩图片
减小文件大小
裁剪图片
裁剪区域
格式转换
转换格式
照片编辑器
编辑照片
旋转图片
旋转图片
镜像翻转
水平/垂直翻转
添加水印
添加水印
添加边框
为图片加边框
圆角裁剪
添加圆角效果
滤镜调整
亮度对比度等
模糊面部
隐藏面部
马赛克
局部打码
去除背景
去除背景
提升质量
AI 提升
添加文字
在图片上加字
图片拼接
拼接多张图片
HTML 转图片
网页转图片
GIF 转图片
提取序列帧
裁剪空白
移除空白边缘
批量重命名图片
安全地批量修改文件名
圆形裁剪
将图像裁剪为圆形
黑白
将图像转换为灰度
分割图像
将图像切割为网格
合并图像
将多张图像合并为一张
更改DPI
设置图像DPI元数据
图像转Base64
将图像编码为Base64
图片转PDF
将多张图片合并成一个PDF
HEIC 转 JPG
将 iPhone 的 HEIC 照片转换为 JPG
EXIF 元数据移除器
查看并清除照片中隐藏的元数据,包括 GPS 位置信息
Favicon 生成器
全套图标加 HTML
色板
从图片中提取颜色
Base64 to Image
Decode Base64 back to an image
HEIC to PNG
Convert iPhone HEIC photos to lossless PNG
Text Behind Image
Put text behind the subject of a photo, entirely in your browser
Color Picker
Get the HEX, RGB and HSL of any pixel
Signature Maker
Draw a signature and download it as a transparent PNG
Signature Background Remover
Ink from paper, on transparency
Transparent Background Maker
Make a background transparent