Compression4 min read·Updated

Image Too Large to Upload? How to Fix “File Too Large” Errors

An “image too large” error means one of two limits: file size (MB or KB) or dimensions (pixels or megapixels). For a file size limit, compress the image with a target a little under the limit; for a pixel limit, resize the longest side below it; and if the site refuses the format, save the image as JPG. Each fix takes under a minute in a browser, on a computer or a phone.

Is the limit in MB or in pixels?

Read the error or the help text next to the upload button. “Maximum file size: 5 MB” is a file size limit, measured in bytes. “At most 4,000 × 4,000 px” or “exceeds 25 megapixels” is a dimension limit, measured in pixels. Some platforms have both: Shopify, for example, takes product images under 20 MB and up to 5,000 × 5,000 px (25 megapixels), and Google Docs takes images under 50 MB and up to 25 megapixels. The upload limits by platform table lists the common ones.

Which fix matches my error?

The error saysLimit typeFix
“File too large”, “exceeds 2 MB”, “maximum upload size”File sizeCompress with a target a little under the limit (1,900 KB for 2 MB)
“Dimensions too large”, “max 4,096 px”, “too many megapixels”PixelsResize so the longest side is under the limit
“Image too small”, “minimum 54 KB”, “at least 1,000 px”MinimumStart from the original; use a higher target; never upscale
“Unsupported file type”, “invalid format”FormatSave as JPG (HEIC, AVIF and TIFF are often refused)
Upload stalls or times out with no messageUsually file sizeCompress to a few hundred KB and try again

How do I fix a file size limit?

  1. Open the compressor at the right size: Image to 500 KB, Image to 1 MB, Image to 2 MB, or the compressor with Target size set to any number.
  2. Type a target a little under the site's limit, for example 950 KB for a 1 MB limit.
  3. Choose JPG as the output if the site may not accept other formats; JPG is the format almost every upload form takes.
  4. Drop the image and compress. The tool keeps the highest quality that fits and shrinks the dimensions only if quality alone is not enough.
  5. Download the file and upload it again.
Type the site's limit and get a file that fits, without uploading your image anywhere.

How do I fix a pixel limit?

In the compressor, turn on Limit width and type the maximum width; the height follows proportionally and smaller images are never enlarged. Resize is off by default on the compress pages, so switch it on. For a portrait photo, the height is the long side: to keep a 3,024 × 4,032 photo under 2,000 px tall, set the width to 1,500. If the site states a megapixel limit, multiply width by height to check: 5,000 × 5,000 is exactly 25 megapixels.

What if the site rejects the format, not the size?

Two formats cause most of these errors. iPhone photos are HEIC by default, and many forms only take JPG or PNG. Images saved from websites are often WebP, because browsers download what the site served. In both cases, run the file through the compressor with JPG as the output (or PNG for a logo with transparency), and the form will accept it. HEIC files open in Safari; the other formats open in any browser.

How do I fix it on a phone?

  • iPhone: open the compressor in Safari, which is the browser that can read HEIC photos, pick the photo from your library, compress, and download the result before uploading it. To stop getting HEIC files, choose Settings > Camera > Formats > Most Compatible. More options in reducing photo size on iPhone.
  • Android: open the compressor in Chrome, pick the photo, compress and download; the file lands in Downloads, ready to upload. See reducing photo size on Android.
  • Windows or Mac: drag the file into the compressor in any browser, then upload the downloaded copy.
Hitting a range, not just a maximum?
Forms that want, say, 20–50 KB need a target near the top of the range. The guide to compressing an image to a specific size shows how many pixels each target can hold.

Put it into practice

Compress your images right now: keep the format or set a target size, free and privately in your browser.

Open the compressor

Frequently asked questions

The site's limit is lower than 3 MB, often 1 or 2 MB, or the limit is in pixels and the photo has too many. Read the help text, then compress to a target under the limit or resize the long side.

Open a browser-based compressor, pick the photo, type the size limit as the target and download the result. On iPhone, use Safari so HEIC photos open, and save as JPG for the widest compatibility.

Not at sensible sizes. A photo resized to 1,600–2,000 px at quality 75–80 looks the same on screen and usually weighs a few hundred KB. Damage appears when a large image is forced into a tiny target.

JPG. Almost every website, form and app accepts it; PNG is also common, while HEIC, WebP and AVIF are refused by some forms.

Keep reading

Compression5 min read

Upload limits by platform

Max image file size and recommended dimensions for Gmail, WhatsApp, Discord, Slack, Instagram, X, LinkedIn, YouTube, Shopify, eBay, Amazon and more.

Read more
Compression6 min read

Compress to an exact size

To hit an exact KB target, set the pixel dimensions first, then lower JPEG quality. Size tables for 20, 50, 100, 200, 500 KB and 1 MB, plus a free tool.

Read more
Compression4 min read

Check image size and dimensions

See an image's file size (KB or MB) and pixel dimensions on Windows, Mac, iPhone, Android or in a browser, plus a quick table of what size is too big.

Read more