How to Reduce an Image's File Size for an Upload Limit
Short answer
Resize before you compress. Reducing a 4000px photo to the 1200px the site actually displays removes about 90% of the data and usually clears the limit on its own. If it is still too large, drop quality to 75%, then to 65%. Aim 20% under the stated cap, because some upload forms measure the encoded size rather than the file size.
On this page
Upload limits are a specific kind of annoying: the form tells you the file is too large but not what to do about it, and the obvious move — dragging a quality slider down until it fits — produces a worse result than necessary.
There is a better order of operations, and it usually clears the limit without any visible loss at all.
Resize first — this is the whole trick
File size scales with pixel count, which scales with the square of the dimensions. Halving both width and height removes roughly three quarters of the data.
A modern phone photo is around 4000 × 3000 pixels. Almost nothing on the web displays an image at that size. Resizing to 1200 × 900 keeps about 9% of the original pixels — a 91% reduction — and at the size it will actually be viewed, there is nothing to see.
Compare that to the quality slider, which might get you 40% before artefacts appear. Resizing is not just the bigger lever; it is the one that costs nothing.
What dimensions you actually need
| Use | Width | Typical result |
|---|---|---|
| Profile or avatar | 800–1000px | 100–200KB |
| Forum or comment attachment | 1200px | 200–400KB |
| In-article web image | 1000–1400px | 200–500KB |
| Full-width banner | 1600–2000px | 400–900KB |
| Email attachment | 1200–1600px | 300–600KB |
| Document upload (ID, form) | 1500–2000px | 400–800KB |
| Printing at A4 | 2480px | Keep it large |
The rule: never upload an image substantially wider than the space it will be shown in. The one exception is high-density screens, where roughly twice the layout width is worth serving.
Then set quality
With the dimensions right, quality is the fine adjustment. Work down in steps rather than jumping to the bottom:
| Quality | Result |
|---|---|
| 90% | Visually identical. Use when size is not tight. |
| 80% | The default. No visible difference at normal viewing. |
| 75% | Still clean. Good target for most upload limits. |
| 65% | Slight softening in gradients. Acceptable when you must fit. |
| 50% | Visible blocking in skies and shadows. Last resort. |
| Below 40% | Obviously degraded. Resize further instead. |
If 65% still does not fit, the answer is to resize further, not to keep dropping quality. A smaller image at 80% looks better than a larger one at 40%.
Do it without installing anything
Our image compressor does both steps in one pass, in your browser, with the before-and-after size shown per file:
- Drop the image in.
- Set Maximum width or height to the dimension you need — this is the step that matters most.
- Leave quality at 80%, or lower it if you are still over.
- Choose JPG for general uploads, or WebP if the destination is a website you control.
Because it runs on your device, nothing is uploaded — which matters for documents, ID photos and anything with location metadata in it.
If your photos came off an iPhone as HEIC and the site rejects them outright, convert first with the HEIC to JPG converter. Many upload forms do not accept HEIC at all, which reads as a size error but is not one.
Working backwards from a specific limit
Common caps and how to hit them:
2MB limit — resize to 1600px at 80% quality. A typical photo lands around 400–600KB, comfortably clear.
1MB limit — resize to 1200px at 80%. Expect 200–400KB.
500KB limit — resize to 1000px at 75%. Expect 120–250KB.
200KB limit — resize to 800px at 70%. Tight but achievable for most photos. For a screenshot, crop to the relevant region instead.
Under 100KB — 600px at 70%, or reconsider what the image needs to show.
Aim 20% below the stated limit. Some upload systems measure the base64-encoded size, which is about a third larger than the file on disk, and a file that is exactly at the cap can still be rejected.
Pick the right format first
Choosing the wrong format can cost you a factor of five before you compress anything.
| Content | Format |
|---|---|
| Photographs | JPG |
| Screenshots, text, UI | PNG |
| Anything needing transparency | PNG or WebP |
| Websites you control | WebP |
| Logos and diagrams | SVG if you have it |
The two expensive mistakes: saving a photograph as PNG produces a file three to eight times larger than necessary, and saving a screenshot of text as JPG puts grey haloes around every letter.
Note that many upload forms accept only JPG and PNG. WebP is excellent and not always allowed.
When compression is not the answer
Crop instead. Removing parts of the image you do not need is lossless for what remains. A screenshot cropped to the error message rather than the whole desktop is both smaller and more useful.
Split a multi-page scan. If you are uploading a document and hit a limit, one file per page is often allowed where one large file is not. Or use the PDF compressor, which handles scanned documents properly.
Check for a dimension limit. Some forms enforce a maximum pixel width separately from file size and report both failures the same way. If a small file is still rejected, try 1000px wide regardless of its size.
What does not work
- Renaming the file extension. It changes the label, not the contents.
- Zipping the image. JPG and PNG are already compressed; a zip saves almost nothing and most forms will not accept a zip.
- Screenshotting the image to make it smaller. You get a lossy copy at screen resolution with no control over quality. Resize properly instead.
- Re-saving a JPG repeatedly. Each save compounds the previous losses. Go back to the original and export once at the right settings.
- Upscaling a small image to meet a minimum dimension. It adds file size without adding detail.
Realistic expectations
A 6MB phone photo resized to 1200px at 80% quality lands around 250KB — a 96% reduction — and looks identical in any context where it will be displayed at 1200px or less.
If you can see the difference, you resized too far or compressed too hard. Start again from the original, which is why keeping it matters. The reasoning behind the format and quality choices is covered in how to compress images without losing quality.