How to get an image under a size limit
- Choose a picture above.
- Enter the ceiling in KB, or press a quick pick such as 50 KB or 200 KB.
- Choose JPEG or WebP. JPEG works everywhere. WebP is usually smaller at the same look, if the place you upload to accepts it.
- Leave Allow smaller dimensions ticked unless you must keep the exact pixel size.
- Press Compress the picture, compare the sizes, and download.
The ceiling box accepts anything from 5 KB to 20,000 KB, and the quick picks run from 20 KB to 2 MB. Leave the format on JPEG when you don't know what the receiving site accepts. Pick WebP only after checking that the place you upload to lists it, since some older forms and document systems reject it even though every current browser opens one.
Which ceiling to type for common jobs
| Job | Ceiling to start with | What to watch |
|---|---|---|
| A form that asks for a photo "under 2 MB" | 2 MB (2000 KB) | Quality alone usually does it, so the pixel dimensions stay the same. |
| A profile or ID photo with a 200 KB limit | 200 KB | Large phone photos usually need both lower quality and fewer pixels; check faces at full size. |
| A form with a 100 KB limit | 100 KB | Crop first if the subject fills only part of the frame. |
| A form with a 50 KB limit | 50 KB | Expect a visibly smaller picture; text in the image gets hard to read. |
| A signature or small ID field at 20 KB | 20 KB | Works best on a simple picture with plain backgrounds, such as a signature on white paper. |
The figures in the first column are the ones people most often type into this tool. Read the actual limit off the form you're filling in, because limits differ from site to site and change without notice.
How the compressor finds a file size that fits
The tool encodes your picture at one quality, counts the bytes, and adjusts. It starts by looking for the highest quality that stays under the ceiling. If even a very low quality is still too big, it shrinks the pixel dimensions by about a fifth and tries again, repeating until something fits or nothing can. A photo of a blank wall will fit in 20 KB at a decent size, while a busy 12-megapixel landscape has to become a good deal smaller to get there. The ceiling counts 1 KB as 1,000 bytes, so a file that passes here also passes a form that counts 1,024, and the report names the quality number it settled on and the new dimensions, so you can see exactly what the trade cost.
The search has fixed edges. Quality runs between 10 and 95 on the tool's scale. If the top quality already fits under the ceiling, the tool stops there, which is why a small or simple picture can land far below the number you typed. If the lowest quality is still too big, the dimensions shrink by 20 percent and the search runs again, up to a limited number of rounds. When nothing fits, the page says the smallest version it could make was still above your ceiling and suggests a higher ceiling or a crop. That message is the tool being accurate: a 5 KB limit on a 12-megapixel photograph asks you to throw away nearly everything.
Dimensions matter more than most people expect. Halving the width and height leaves a quarter of the pixels, so a modest shrink buys a large saving, while each notch of quality buys a small one. That's why the tool tries quality first and pixels second: cutting pixels is the bigger and more visible sacrifice.
When the tool refuses to make a smaller copy
If the original is already under your ceiling, or the best fit is no smaller than the original, the tool says so and offers no download. That's deliberate. Re-encoding a JPEG that's already tight only adds loss, and a compressor that hands you a worse file of the same size isn't doing you any favors. For the longer argument about what repeated saving does, see compressing without losing quality.
What each result message means
- Before and after lines with a download button. The new file is at or under the ceiling. The settings line gives the quality number and whether the dimensions changed.
- No smaller copy was made. The original is already under the ceiling or the best fit isn't smaller. Keep the original and upload that.
- The smallest version was still above your ceiling. Raise the ceiling, crop the picture first, or tick Allow smaller dimensions if it is off.
- A message that the file is too large or not an image. The tool stops at 100 MB and 120 megapixels, and it names the problem rather than guessing.
Why PNG isn't an output option
PNG is lossless, so it has no quality dial to turn down. To make a PNG smaller you shrink its dimensions with the image resizer, reduce its colors in an editor, or switch to JPEG or WebP. Keep in mind that JPEG drops transparency and fills transparent areas with white, whereas WebP keeps it. If you're choosing between the two lossless-leaning formats for a website, PNG versus WebP has measured sizes.
JPEG, WebP or PNG for a size-limited upload
JPEG is the safe default because every form, email client and document system opens it. WebP gives a smaller file at a similar look and keeps transparency, which matters for a logo, but it's a gamble on older upload forms. PNG suits screenshots, line art and anything with sharp edges and flat color, and it stays out of the output list here because a quality dial is what makes a byte ceiling reachable. Lossy compression shows its worst side on a screenshot of text, so if the compressor makes text look smeared, shrink the dimensions with the image resizer and accept a slightly larger ceiling.
Choosing a ceiling that fits the form
Start from what the form asks. Many upload fields want a photo under 200 KB, some ask for 100 KB or 50 KB, and a few signature or ID fields go as low as 20 KB. Take the stated number, leave a little room under it, and read the report, which shows the quality the tool settled on and the new pixel dimensions. If the result looks soft, the ceiling is too tight for that picture. Crop away what the form doesn't need with the image crop tool, or accept a slightly higher ceiling if the form allows it.
Email is a separate case. Attachment limits are usually counted for the whole message, so several photos each under the limit can still be refused together. Compress each picture to a share of the total, and see compressing a photo for email for how to split the budget.
What happens to EXIF, GPS and other metadata
The output is a fresh encode of canvas pixels. Camera model, capture time and GPS location from the original file aren't copied across, and neither are any copyright notes or provenance data embedded in it. If you need those preserved, use another tool. The script reads the file in this tab and never sends your picture anywhere, so the picture isn't uploaded.
Dropping the metadata has a side effect worth knowing about. The picture comes out with its orientation already applied, because the browser rotates the pixels before drawing them, so a sideways phone photo doesn't turn up sideways. What you lose is the capture time, camera model and location. If a site needs the date a photo was taken, compress a copy and keep the original for that purpose. To see exactly what a file carries before and after, the photo metadata viewer lists the fields.
Private image compression without an upload
The work happens in the open tab. The page reads your file through the browser, draws it onto a canvas, encodes it several times at different settings and holds the results in memory. The script contains no code that sends the picture anywhere, and you can confirm that by watching the Network panel in your browser's developer tools while you press the button. The finished file lives in the tab until you download it, then sits in your Downloads folder, and closing the tab discards the working copies. That's a real difference from a web service when the picture is a passport scan, a medical letter or a photo of a child.
Fixes when the result is not what you wanted
- The result is too soft. The ceiling is too low for that picture. Crop away what the form does not need, or raise the ceiling one step.
- The form still rejects the file. Check whether it counts KB as 1,000 or 1,024 bytes (this tool counts 1,000, so both pass), and whether it also limits the pixel dimensions or the file type.
- An iPhone photo will not open. HEIC depends on the browser. On iPhone, choosing Settings > Camera > Formats > Most Compatible makes new photos JPEG, and photos already taken in HEIC need a JPEG export from another app first.
- The file got larger. It was already tightly compressed. Use the original, or lower the ceiling.
- Text or a signature looks fuzzy. Raise the ceiling, or photograph the document again closer and in better light so there's less to compress away.
Limits
- One picture at a time, up to 100 MB and 120 megapixels.
- HEIC, AVIF and animated files depend on what your browser can decode. Animations come out as one still frame.
- Print color profiles and DPI aren't preserved.
- Very low ceilings (under 20 KB) on large photos will produce small, visibly soft pictures.
Questions people ask
Is hitting exactly 100 KB possible?
No. The tool finds the best quality at or under the ceiling, so the result is usually a few percent below it. Image encoders don't promise an exact byte count, and a form that wants one is rare.
How do I compress a photo to 50 KB?
Press the 50 KB quick pick, choose JPEG, keep smaller dimensions allowed, and compress. If the result looks too soft, try 100 KB or crop away parts of the picture you don't need.
Does compressing change the dimensions?
Only if quality alone can't reach the ceiling and you left the box ticked. The report tells you when it happened and what the new dimensions are.
Will JPEG or WebP lose quality?
Yes, both discard detail at lower settings. At high quality the loss is hard to see; at very low quality you get blocks and smearing. Compare the preview with the original before you download.
Are EXIF and GPS details removed when I compress?
The new file is built from pixels only, so those fields from the original aren't copied. If it matters to you, confirm with a metadata viewer before you share the file.
Does it accept a batch of images in one go?
Not here. The tool takes one picture at a time, so run them in turn. If the photos need to match, use the same ceiling and the same format for each one.
Does my picture leave my device while I compress it?
No. The script reads the file in this tab and never sends your picture anywhere, so the picture stays on your device.
What is the quickest way to land under a 2 MB upload limit?
Type 2000 in the ceiling box, choose JPEG or WebP, and compress. A 2 MB ceiling is generous, so most photos fit by lowering quality alone and keep their pixel dimensions.
Can a photo really be squeezed down to 20 KB?
Enter 20, choose JPEG, and leave smaller dimensions allowed. A large photo has to lose many pixels to fit, so expect a small, soft picture. Crop first if only part of it matters.
How far can I shrink a file before the picture visibly suffers?
Some loss is unavoidable once quality drops, but you can keep it hard to see. Aim for the highest ceiling the form accepts, and avoid saving the same JPEG over and over. Compressing without losing quality explains the trade.
What happens to PNG transparency?
Choose WebP to keep transparency. JPEG can't store it, so transparent areas are filled with white.
What does the tool do if the smaller copy would be bigger?
The tool says so and offers no download. A file that's already under the ceiling, or a best fit that's no smaller, would only add loss.
Which unusual formats, such as HEIC, AVIF or animated GIF, does it handle?
That depends on what your browser can decode. HEIC usually needs a JPEG export first, and animated files come out as one still frame.
Is the file still suitable for print after compression?
No. The output is a fresh encode of canvas pixels, so print color profiles and DPI labels aren't kept. Judge the file by its pixel dimensions and byte size.
Why did my 100 KB ceiling produce a 70 KB file?
The search stops at the highest quality that fits, and the top of the scale is 95. A simple picture can fit at that setting well under your ceiling, and the quality search takes a handful of steps, so the result sits at or below the number you typed.
What is the smallest ceiling I can set?
5 KB. Below that the tool asks for a larger number, because a recognizable photo doesn't survive at such a size.
Will my phone photo come out sideways?
No. Current browsers apply the orientation when they decode the picture, so the pixels are drawn upright before encoding. The orientation tag itself is not copied into the new file.
Sources