Image editors · Very small file limit
Reduce an image to 20 KB or less.
For forms that cap a signature, thumbprint or small photo at 20 KB. The photo is shrunk on this device, you see the exact size reached, and if 20 KB cannot be done honestly the tool says so instead of handing you a broken file.
What fits in 20 KB
Twenty kilobytes is 20,480 bytes, or about 164,000 bits. A JPEG photograph at ordinary web quality spends somewhere around one to two bits on each pixel, so as a rough rule 20 KB holds a photo of somewhere around 100,000 to 200,000 pixels, something like 320 by 320 or 400 by 300. That is a rough rule, not a promise. Flat areas such as a white signature page compress far better than a detailed scene, and a noisy phone photo in dim light compresses worse.
That is why a 4,000 by 3,000 pixel phone photo cannot be squeezed to 20 KB by quality alone. Below roughly 55% JPEG quality, blocks and smears appear. This tool therefore lowers quality only down to a floor and then shrinks the pixel dimensions, keeping the aspect ratio, until the file fits. You see the final size, the pixel dimensions and the quality it settled on.
Signatures and thumbprints
The usual reason for a 20 KB limit is a signature or thumbprint upload on an application form. Scan or photograph the signature on plain white paper in good light, crop tight to the ink with the image cropper, then use the "Signature strip" shape above. The preset makes the output exactly 400 by 100 pixels. Because the page behind a signature is almost uniform, 20 KB is usually easy at that size. The shapes in the menu are common proportions, not the rules of any particular agency. Always read your form's instructions for the exact pixel size, file type and size range it wants, and use the Width and Height boxes to match them.
How the size search works
JPEG output size is not something you can set directly. The browser encodes at a quality between 0 and 1, and the size follows from the picture. This page encodes at high quality first. If that is already under 20 KB it stops. If not, it tries the lowest allowed quality; if even that is too big it reduces the pixel count by an amount estimated from how far over it is and tries again. When a quality fits, it halves the gap between a fitting and a non-fitting quality about seven times to find the highest quality that is still under the limit. The result is the best file under 20 KB, not just any file under it.
Resizing uses the browser's high-quality resampling, and a white background is painted first so transparent PNGs do not turn black. Output is always JPEG, because PNG has no quality dial.
A worked example
Measured on this page's own code with a real photograph: a 3,840 by 2,160 pixel aerial picture, 5.36 MB. With a 20 KB limit and Balanced mode the result was 20.0 KB at 611 by 344 pixels and JPEG quality 60%. The picture had to lose almost all of its pixels, and that is typical: a big photo cannot keep its size at 20 KB. For a signature the situation is easier. Choose your scan, pick "Signature strip, 4:1" and press Resize: the output is exactly 400 by 100 pixels, and a mostly white scan with a few ink strokes normally fits comfortably. The result line always states the real size, so you never have to guess.
When 20 KB is not achievable
With "Keep pixels" or an exact size set, the tool never shrinks the dimensions, so a large exact size may not fit. For example, a detailed 1,000 by 1,000 photo at the lowest JPEG quality can still be well over 20 KB. In that case no file is offered. The message gives the smallest size it reached and why it stopped. Your choices are fewer pixels, a plainer background, or a larger limit.
iPhone HEIC photos are accepted as input too. Browsers that cannot decode HEIC load a separate decoder (libheif 1.19.8, LGPL-3.0, unmodified) once, only after you choose a HEIC file; Safari uses its own.
Common mistakes
- Shrinking the same JPEG repeatedly. Each save adds loss. Start again from the original.
- Using "Stretch" to hit an exact shape. It distorts handwriting. Crop instead.
- Photographing a signature in shadow. Shadows cost bytes and clarity; use even light.
- Assuming the file extension tells you the size. Check the result line, then check the downloaded file's size in your system.
Frequently asked questions
Is my image uploaded to shrink it?
No. The photo is decoded, resized and re-encoded in this page on your device, inside a sandboxed frame whose security policy blocks network requests. Only you have the file.
Can any photo be reduced to 20 KB?
Not honestly at full size. A large detailed photo needs fewer pixels to fit 20 KB. In balanced and sharp modes the tool reduces the dimensions for you. If you fix the pixel size or choose to keep pixels, it may be unable to fit and then tells you instead of producing a poor file.
Will the result be exactly 20 KB?
It will be at or just under the limit, as close to it as the quality search gets. It will not be padded up to exactly 20 KB. If a form also demands a minimum size, check the result line and adjust the limit.
What pixel size should I use for a signature?
Use whatever your form specifies. The 400 by 100 strip is only a common proportion. Type the required width and height under "Use an exact pixel size".
Why is the output always a JPG?
JPEG has a quality setting the tool can search to land under a size. PNG is lossless and has none, so it cannot be tuned to a byte limit by quality.
Does it remove the location from my photo?
Yes. The picture is redrawn and re-encoded, so GPS, camera and date metadata are not copied into the result.
Can I shrink an iPhone HEIC photo?
Yes. HEIC files are accepted and converted to a JPG under your limit. See the HEIC to JPG converter if you only need a conversion.
How many images can I do at once?
Up to 40 files per run, each up to 25 MB and 50 megapixels. They are processed one at a time, and several results are offered as one ZIP.
Sources
Checked
- MDN: HTMLCanvasElement.toBlob() — how the canvas produces a JPEG at a chosen 0 to 1 quality value, which is the dial this tool searches (retrieved 2026-10)
- MDN: imageSmoothingQuality — the high-quality resampling setting used when pixels are reduced (retrieved 2026-10)
- ITU-T T.81 (JPEG) — the lossy DCT coding whose quantisation the quality value controls (retrieved 2026-10)
- MDN: createImageBitmap() — decodes the chosen file and applies its stored orientation (retrieved 2026-10)
- W3C: PNG Specification, Third Edition — PNG inputs are lossless; the output is always JPEG because only lossy JPEG has a quality dial (retrieved 2026-10)
- Apple: Capture formats on iPhone, iPad and Mac — iPhones save HEIF by default; Most Compatible saves JPEG (retrieved 2026-10)
- libheif (strukturag) — LGPL-3.0 HEIC decoder loaded only when a HEIC file is chosen and the browser cannot decode it (retrieved 2026-10)
Runs entirely in your browser. Your files are not uploaded, stored or sent anywhere.