Skip to content
Private: files never leave your device

Maximum Image Dimensions by Format

Every image format stores its width and height in a field of fixed size, and that field sets the largest picture the format can hold. This chart lists the maximum for each common format, with the specification behind it, so you know which format to choose for a panorama, a scan or a huge map.

Maximum image dimensions by format: WebP 16,383 by 16,383 pixels, JPEG 65,535 by 65,535 pixels, PNG and AVIF 2,147,483,647 pixels per side, and ICO 256 by 256 pixels

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

FormatMaximum dimensionsLargest square imageMIME type
WebP16,383 x 16,383 pixelsAbout 268 megapixelsimage/webp
JPEG65,535 x 65,535 pixelsAbout 4.29 gigapixelsimage/jpeg
GIF65,536 x 65,536 pixels as listed by MDN (two byte fields in the GIF89a specification)About 4.29 gigapixelsimage/gif
PNG and APNG2,147,483,647 x 2,147,483,647 pixelsFar beyond any real imageimage/png, image/apng
AVIF2,147,483,647 x 2,147,483,647 pixelsFar beyond any real imageimage/avif
JPEG XL1,073,741,823 x 1,073,741,823 pixelsFar beyond any real imageimage/jxl
BMP32,767 x 32,767 or 2,147,483,647 x 2,147,483,647 pixels, depending on the format versionDepends on the versionimage/bmp
TIFF4,294,967,295 x 4,294,967,295 pixels (theoretical)Far beyond any real imageimage/tiff
ICO256 x 256 pixels65,536 pixelsimage/vnd.microsoft.icon
SVGUnlimited, because it stores shapes rather than pixelsNot applicableimage/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

SituationWhat happensWhat to do
Saving a panorama wider than 16,383 px as WebPThe encoder refuses or the image is rejectedKeep 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 appThe app may not support WebP at allConvert it with WebP to JPG or WebP to PNG
A huge scan that crashes a phone or browserMemory runs out long before the format limitCrop the part you need with Crop Image, then resize
An icon bigger than 256 pxICO cannot hold itExport the icon at 256 px or smaller, and keep a PNG for larger uses
An upload form that rejects a large photoThe site sets its own pixel or file size capCheck the stated limit, then use Compress Image or Resize Image
A file size limit and a dimension limit are different things. A 20,000 pixel wide JPEG can be under 5 MB, and a small PNG screenshot can be over 10 MB. Check both before uploading. undefined

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

PageCheckedUsed for
MDN: Image file type and format guide (last modified 5 November 2026)23 November 2026Maximum dimensions and MIME types for every format in the chart
Google for Developers: WebP FAQ23 November 202616383 x 16383 maximum and 14 bit width and height
Google for Developers: WebP lossless bitstream specification23 November 202614 bit fields storing width and height minus one
Google for Developers: WebP container specification23 November 202624 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 2026Four byte unsigned integer range of 0 to 2 to the power of 31 minus 1
W3C: GIF89a specification (dated 31 July 1990)23 November 2026Two 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.