The format with the lowest ceiling is WebP, which cannot be wider or taller than 16,383 pixels; JPEG allows 65,535 pixels per side and PNG allows 2,147,483,647. In practice WebP is the only common web format whose limit a real photo can reach, usually with a stitched panorama or a high resolution scan. Every figure below was read on MDN and the official specifications on 23 November 2026.
Maximum width and height by format
| Format | Maximum dimensions | Largest square image | MIME type |
|---|---|---|---|
| WebP | 16,383 x 16,383 pixels | About 268 megapixels | image/webp |
| JPEG | 65,535 x 65,535 pixels | About 4.29 gigapixels | image/jpeg |
| GIF | 65,536 x 65,536 pixels as listed by MDN (two byte fields in the GIF89a specification) | About 4.29 gigapixels | image/gif |
| PNG and APNG | 2,147,483,647 x 2,147,483,647 pixels | Far beyond any real image | image/png, image/apng |
| AVIF | 2,147,483,647 x 2,147,483,647 pixels | Far beyond any real image | image/avif |
| JPEG XL | 1,073,741,823 x 1,073,741,823 pixels | Far beyond any real image | image/jxl |
| BMP | 32,767 x 32,767 or 2,147,483,647 x 2,147,483,647 pixels, depending on the format version | Depends on the version | image/bmp |
| TIFF | 4,294,967,295 x 4,294,967,295 pixels (theoretical) | Far beyond any real image | image/tiff |
| ICO | 256 x 256 pixels | 65,536 pixels | image/vnd.microsoft.icon |
| SVG | Unlimited, because it stores shapes rather than pixels | Not applicable | image/svg+xml |
The megapixel column is simple multiplication: 16,383 x 16,383 is 268,402,689 pixels, and 65,535 x 65,535 is 4,294,836,225 pixels. These are limits of the file format itself. Browsers, phones, editors and upload forms usually give up much earlier, because a decoded image needs memory for every pixel.
Why each limit is where it is
- WebP: the Google WebP FAQ says the format is bitstream compatible with VP8 and uses 14 bits for width and height, giving a maximum of 16383 x 16383. The lossless bitstream specification stores width and height minus one in 14 bits and describes the cap as 16384 x 16384. Staying at 16,383 or below is safe under both wordings.
- WebP container: the extended RIFF container has 24 bit canvas fields, but Google states that canvas width times canvas height must be at most 2 to the power of 32 minus 1, and each image inside is still limited by its own bitstream.
- PNG: width and height are PNG four byte unsigned integers, which the W3C PNG Third Edition defines as limited to the range 0 to 2 to the power of 31 minus 1, that is 2,147,483,647.
- GIF: the GIF89a specification stores the logical screen width and height and each image width and height as unsigned values in two bytes. The largest number two bytes can hold is 65,535, one less than the 65,536 that MDN lists.
- JPEG: MDN gives 65,535 x 65,535 pixels, the largest value of a 16 bit number.
What to do when an image is too big for its format
| Situation | What happens | What to do |
|---|---|---|
| Saving a panorama wider than 16,383 px as WebP | The encoder refuses or the image is rejected | Keep it as JPEG or PNG, or shrink it with Resize Image before using JPG to WebP |
| A WebP that will not open in an older app | The app may not support WebP at all | Convert it with WebP to JPG or WebP to PNG |
| A huge scan that crashes a phone or browser | Memory runs out long before the format limit | Crop the part you need with Crop Image, then resize |
| An icon bigger than 256 px | ICO cannot hold it | Export the icon at 256 px or smaller, and keep a PNG for larger uses |
| An upload form that rejects a large photo | The site sets its own pixel or file size cap | Check the stated limit, then use Compress Image or Resize Image |
For the MIME types and file endings of each format, see the image MIME types list. For the difference between the two JPEG endings, see JPEG vs JPG, and for animated images, see the GIF size limits chart.
Sources and dates
| Page | Checked | Used for |
|---|---|---|
| MDN: Image file type and format guide (last modified 5 November 2026) | 23 November 2026 | Maximum dimensions and MIME types for every format in the chart |
| Google for Developers: WebP FAQ | 23 November 2026 | 16383 x 16383 maximum and 14 bit width and height |
| Google for Developers: WebP lossless bitstream specification | 23 November 2026 | 14 bit fields storing width and height minus one |
| Google for Developers: WebP container specification | 23 November 2026 | 24 bit canvas fields and the 2 to the power of 32 minus 1 area rule |
| W3C: PNG Specification, Third Edition (Recommendation of 24 June 2025) | 23 November 2026 | Four byte unsigned integer range of 0 to 2 to the power of 31 minus 1 |
| W3C: GIF89a specification (dated 31 July 1990) | 23 November 2026 | Two byte unsigned width and height fields |
Frequently asked questions
What is the maximum size of a WebP image?
Google states a maximum of 16383 x 16383 pixels, because WebP stores width and height in 14 bits. Larger images must be saved as JPEG, PNG or AVIF, or resized first.
What is the maximum resolution of a JPEG?
MDN lists 65,535 x 65,535 pixels, which is about 4.29 gigapixels. Most software runs out of memory long before that.
Does PNG have a size limit?
Yes, but it is very high. PNG width and height are four byte unsigned integers limited to 2,147,483,647, according to the W3C PNG specification.
Why will my panorama not save as WebP?
Panoramas often pass 16,383 pixels in width, the WebP maximum. Save it as JPEG instead, or resize it below 16,383 pixels before converting.
Which image format has no size limit?
SVG has no pixel limit because it stores shapes and paths instead of pixels. Among pixel formats, TIFF has the highest theoretical limit, at 4,294,967,295 pixels per side.