Image size calculator

Enter a width and height to get the uncompressed file size (a 1920 × 1080 image in 24-bit colour is 6,220,800 bytes, 6.22 MB), the megapixels and a rough JPEG and PNG estimate, or scale an image by a percentage to get its new pixel dimensions.

px
px

Uncompressed size

6.22 MB

1,920 × 1,080 pixels × 3 bytes per pixel (24-bit)

Exact bytes
6,220,800 bytes
As a computer may show it
5.93 MiB
Pixels
2,073,600 px (2.07 MP)
Rough JPEG size (assumes 10:1)
about 622.08 kBPhotos usually compress 10:1 or better as JPEG; detailed, noisy pictures less. Compress the real file to know.
Rough PNG size (assumes 2:1)
about 3.11 MBPNG is lossless: photos barely shrink, flat graphics and screenshots shrink far more.
1,920 × 1,080 px uncompressed at each colour depth
Colour depthBytes per pixelUncompressed size
24-bit36.22 MB
32-bit48.29 MB
8-bit12.07 MB
16-bit24.15 MB
48-bit612.44 MB
64-bit816.59 MB

Calculated in your browser; nothing you type is sent or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja · Updated 27 October 2026

How to use the image size calculator

  1. Choose File size of an image from its pixels or New pixel size when scaling an image.
  2. Enter the width and height in pixels. On Windows they are in the file's Properties › Details tab; on a Mac, in Preview's inspector; on a phone, in the photo's info panel. The megapixel calculator lists common camera and screen sizes if you only know the megapixels.
  3. For a file size, pick the colour depth: 24-bit (3 bytes per pixel) for JPEGs and ordinary PNGs, 32-bit (4 bytes) for PNGs with transparency, 8-bit for greyscale, and 48- or 64-bit for 16-bit-per-channel files.
  4. For scaling, enter a percentage: 50% halves both sides, 200% doubles them.

File sizes are in decimal units (1 MB = 1,000,000 bytes). The "as a computer may show it" row gives the binary figure (1 MiB = 1,048,576 bytes) that Windows labels "MB", so both readings are covered.

How to calculate image size from pixels

An uncompressed image stores a fixed number of bytes for every pixel, so its size is simply:

Uncompressed size (bytes) = width × height × bytes per pixel

The bytes per pixel come from the colour depth: 24-bit colour means 8 bits (1 byte) for each of red, green and blue, so 3 bytes per pixel; 32-bit adds an 8-bit alpha (transparency) channel, so 4 bytes. To calculate image size in megabytes, divide by 1,000,000.

Colour depthChannelsBytes per pixelWhere you meet it
1-bitblack or white1/8Fax, scanned text
8-bitgreyscale, or 256 indexed colours1GIF, PNG-8, greyscale scans
16-bitgreyscale2Medical and scientific images
24-bitRGB, 8 bits each3JPEG, PNG-24, most photos
32-bitRGB + alpha4PNG with transparency, app icons, screen buffers
48-bitRGB, 16 bits each616-bit TIFF, high-end editing
64-bitRGBA, 16 bits each816-bit layered editing files

Worked examples

  • 1920 × 1080 (Full HD) at 24-bit: 2,073,600 pixels × 3 = 6,220,800 bytes, 6.22 MB or 5.93 MiB.
  • 4032 × 3024 (a 12 MP phone photo) at 24-bit: 12,192,768 pixels × 3 = 36,578,304 bytes, 36.58 MB.
  • 1000 × 1000 at 32-bit (a square PNG with transparency): 1,000,000 × 4 = 4 MB.
  • 6000 × 4000 (24 MP) at 48-bit: 24,000,000 × 6 = 144,000,000 bytes, 144 MB, which is why 16-bit TIFFs from a camera are so large.
  • 800 × 600 greyscale at 8-bit: 480,000 × 1 = 480 kB.

This uncompressed figure is what the image takes in memory when it is open, and what a BMP or uncompressed TIFF file would be on disk. It is also the figure Photoshop reports: the Image › Image Size dialog's "Image Size" line for a flattened 8-bit RGB image is width × height × 3 bytes, shown in binary megabytes, so a 1920 × 1080 document reads 5.93M. If you came here looking for an image size calculator Photoshop would agree with, that is the row to compare.

Image file size calculator: compressed estimates

Almost every image you store is compressed, so the file on disk is much smaller than the uncompressed size. The calculator gives two rough estimates, each with its assumption in the label:

  • JPEG, assumes 10:1. JPEG throws away detail the eye doesn't notice, and photographs usually shrink 10:1 or more. Our own sample files bear this out: a 3024 × 2016 portrait (18.29 MB uncompressed) is 1,645,283 bytes as a JPEG, about 11:1; a 3000 × 2000 flower photo (18 MB uncompressed) is 984,536 bytes, about 18:1; and a 4032 × 2623 landscape with large smooth areas (31.73 MB uncompressed) is 389,561 bytes, more than 80:1. So 10:1 is a conservative, upper-end estimate for a photo at a high quality setting.
  • PNG, assumes 2:1. PNG is lossless, so it can only remove repetition. Our 1366 × 900 screenshot (3.69 MB uncompressed) is 2,375,634 bytes as a PNG, about 1.55:1. Photos saved as PNG barely shrink at all, while flat graphics with few colours, such as logos and diagrams, can shrink 10:1 or better.

Treat these as order-of-magnitude answers. The real size depends on the scene, the quality setting and the encoder. For the actual number, compress the real file: our image compressor shows the before and after size in the browser, and the reduce image size in KB tool hits a specific target like 100 KB or 200 KB. Our guide to how image compression works explains where the savings come from.

Image size calculator in pixels: scaling an image

The second mode is an image dimensions calculator for resizing by percentage:

New width = width × scale ÷ 100 and New height = height × scale ÷ 100, both rounded to whole pixels.

The pixel count changes by the square of the scale, which surprises people: scaling to 50% leaves a quarter of the pixels, and 25% leaves one sixteenth.

  • A 4032 × 3024 photo at 25% becomes 1008 × 756 px, 6.25% of the original pixels, 2.29 MB uncompressed instead of 36.58 MB.
  • A 1920 × 1080 frame at 50% becomes 960 × 540 px, 25% of the pixels.
  • A 1200 × 800 image at 150% becomes 1800 × 1200 px; enlarging adds pixels but not detail, so it will look softer.

For a specific target width or height rather than a percentage, the aspect ratio calculator works as an image ratio calculator and finds the matching other side. To actually resize the file, our image resizer does it in the browser; the guide to image resolution explains what the pixel count means for sharpness.

Pixel size calculator: from pixels to physical size

Pixels have no fixed physical size until you print or display them. The same 1920 × 1080 image is 6.4 × 3.6 inches at 300 DPI and 26.67 × 15 inches at 72 DPI. A pixel size calculator is really a division: inches = pixels ÷ DPI. The pixels to inches converter and the DPI calculator do that, and the print size calculator tells you how large a print your pixel count supports.

Why the stored file is smaller than width × height × 3

  • Compression: described above. A 12 MP JPEG is typically 2–5 MB, not 36 MB.
  • Chroma subsampling: most JPEGs store the two colour channels at quarter resolution (4:2:0), which halves the raw data before compression even starts.
  • Metadata adds a little: EXIF data, embedded thumbnails and colour profiles can add tens of kilobytes. Our EXIF remover strips them.

And why it is sometimes larger: a 16-bit TIFF stores 6 bytes per pixel, a layered editing file stores every layer, and a RAW file stores the sensor data at 12 or 14 bits per pixel before any colour processing. The photo storage calculator uses typical stored sizes to work out how many photos fit on a card.

Questions and answers

How do I calculate the file size of an image?

Multiply width × height × bytes per pixel for the uncompressed size: a 1920 × 1080 image in 24-bit colour is 2,073,600 × 3 = 6,220,800 bytes (6.22 MB). The stored JPEG will be roughly a tenth of that and a PNG roughly half, but the only way to know the exact figure is to look at the file or compress it.

What is the file size of a 1920 × 1080 image?

Uncompressed in 24-bit colour, 6,220,800 bytes, which is 6.22 MB in decimal units or 5.93 MB as Windows shows it. As a JPEG the same picture is usually 200 kB to 1 MB depending on the content and quality; as a 32-bit PNG screenshot, anything from a few hundred kilobytes to 4 MB.

How many bytes per pixel does a JPEG use?

A decoded JPEG is 24-bit, 3 bytes per pixel. The stored file is far smaller: at 10:1 compression that is 0.3 bytes (2.4 bits) per pixel, and well-compressed photos go below 0.1 bytes per pixel. JPEG has no transparency channel, which is why a transparent logo has to be a 32-bit PNG or a WebP.

How do I calculate image size in MB from megapixels?

Megapixels × 3 gives the uncompressed size in MB for a 24-bit image (12 MP × 3 = 36 MB), because 1 megapixel × 3 bytes is 3,000,000 bytes. Divide by about 10 for a JPEG estimate, so a 12 MP photo lands around 3–4 MB at high quality.

Does changing the DPI change the image size?

Not the file size or the pixel size. DPI is a note in the metadata that tells printers how many pixels to put in each inch; a 3000 × 2000 image at 72 DPI and at 300 DPI has the same pixels and the same bytes, it just prints at 41.67 × 27.78 inches or 10 × 6.67 inches. Only resampling to a new pixel size changes the bytes.

What size is an image in pixels if I scale it to 75%?

Multiply each side by 0.75: 1920 × 1080 becomes 1440 × 810 px, with 56.25% of the original pixels (0.75 × 0.75). Enter any percentage in the scaling mode above for the exact rounded result.

All image, photo and design calculators