By · Updated

Image File Size Calculator

Uncompressed, JPEG, PNG, WebP and AVIF

No ratings yet
Result

—

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Image File Size Calculator works

This image file size calculator shows how big a picture is before and after compression. Enter the width and height in pixels and the bit depth to get the uncompressed size, typical JPEG, PNG, WebP and AVIF sizes, and how many photos fit on a card or drive of the size you enter.

Every image is a grid of pixels, and every pixel needs a number of bits to store its colour. That fixes the raw size exactly. Compression then shrinks it by a factor that depends on the format, the quality setting and how much detail the picture holds.

Image file size calculator formula

The uncompressed formula is:

bytes = width × height × bits per pixel ÷ 8

Bits per pixel is the bit depth: 8 for greyscale, 24 for ordinary RGB colour, 32 when there is an alpha channel for transparency, and 48 for 16-bit-per-channel files from RAW editors and scanners. The calculator divides by 1,024 for KB and 1,048,576 for MB, the way Windows and most apps report file sizes.

Example 1. A 12-megapixel phone photo is 4032 × 3024 = 12,192,768 pixels. At 24 bits: 12,192,768 × 24 ÷ 8 = 36,578,304 bytes, which is 34.88 MB uncompressed, the size it takes in memory once opened in an editor. As a JPEG at quality 90 it is about 3.6 MB.

Example 2. A 1080 × 1080 Instagram square is 1,166,400 pixels. Uncompressed RGB is 3.34 MB; a JPEG at quality 75 is about 200 KB and a WebP at the same quality about 125 KB.

How compressed sizes are estimated

Compressed files do not have a fixed size, so the calculator uses typical bits per pixel measured on everyday photos:

Format Typical bits per pixel Share of 24-bit raw
PNG, photo 12 50%
JPEG quality 90 2.5 10%
JPEG quality 75 1.4 6%
WebP quality 75 0.9 4%
AVIF quality 60 0.6 2.5%

Treat these as a middle estimate. A clear blue sky or a flat graphic compresses to a fraction of it; a noisy low-light shot or a picture of gravel or foliage can be twice as large. PNG is lossless, so for photos it stays large; for screenshots, logos and diagrams it is often smaller than JPEG.

Sizes of common images

The table below uses 24-bit colour; change the bit depth to rebuild it.

Uncompressed and typical JPEG size at 24 bits per pixel

Image Pixels Uncompressed JPEG quality 90
VGA 640 × 480 900.0 KB 93.8 KB
HD 720p 1280 × 720 2.64 MB 281.3 KB
Full HD 1080p 1920 × 1080 5.93 MB 632.8 KB
Instagram square 1080 × 1080 3.34 MB 356.0 KB
Instagram portrait 1080 × 1350 4.17 MB 444.9 KB
Story / Reel 1080 × 1920 5.93 MB 632.8 KB
Facebook shared image 1200 × 630 2.16 MB 230.7 KB
YouTube thumbnail 1280 × 720 2.64 MB 281.3 KB
QHD 1440p 2560 × 1440 10.55 MB 1.10 MB
4K UHD 3840 × 2160 23.73 MB 2.47 MB
5K 5120 × 2880 42.19 MB 4.39 MB
8K UHD 7680 × 4320 94.92 MB 9.89 MB
2 MP (1600 × 1200) 1600 × 1200 5.49 MB 585.9 KB
5 MP (2592 × 1944) 2592 × 1944 14.42 MB 1.50 MB
8 MP (3264 × 2448) 3264 × 2448 22.86 MB 2.38 MB
12 MP phone (4032 × 3024) 4032 × 3024 34.88 MB 3.63 MB
16 MP (4608 × 3456) 4608 × 3456 45.56 MB 4.75 MB
24 MP DSLR (6000 × 4000) 6000 × 4000 68.66 MB 7.15 MB
33 MP (7008 × 4672) 7008 × 4672 93.67 MB 9.76 MB
45 MP (8192 × 5464) 8192 × 5464 128.06 MB 13.34 MB
48 MP phone (8000 × 6000) 8000 × 6000 137.33 MB 14.31 MB
61 MP (9504 × 6336) 9504 × 6336 172.28 MB 17.95 MB
A4 at 300 DPI 2480 × 3508 24.89 MB 2.59 MB
A3 at 300 DPI 3508 × 4961 49.79 MB 5.19 MB
6 × 4 in at 300 DPI 1800 × 1200 6.18 MB 659.2 KB

How many photos fit in your storage

Enter a card or drive size in GB and the calculator divides it by the typical JPEG quality 90 size. A 64 GB card holds about 18,000 photos from a 12 MP phone, or about 4,500 from a 48 MP phone in full resolution mode. RAW files are far larger: roughly 1 to 1.5 bytes per pixel, so a 24 MP RAW is around 25 to 30 MB and the same card holds about 2,300. Leave 5 to 10% free for the file system.

Tips and pitfalls

Megapixels, not inches. File size depends only on pixels. A photo "at 300 DPI" is the same file as at 72 DPI; DPI only says how large it should print.

Upload limits. To hit a limit such as 2 MB or 500 KB, reduce the pixel count first, then the quality. Halving width and height cuts the file to about a quarter.

HEIC. iPhones save HEIC by default, which is about half the size of the equivalent JPEG, close to the WebP row.

Memory use. Editors work on the uncompressed size, often several copies of it for layers and undo. Five 48 MP layers need over 600 MB of memory.

FAQ

How big is a 12 megapixel photo?

Uncompressed, a 4032 × 3024 RGB photo is 34.88 MB. Saved as a JPEG at quality 90 it is typically 3 to 4 MB, and as HEIC on an iPhone about 1.5 to 2.5 MB, depending on detail.

How many photos can I store per GB?

At JPEG quality 90, about 280 photos from a 12 MP phone fit in 1 GB, about 140 from a 24 MP camera and about 70 from a 48 MP phone at full resolution.

Why is my JPEG a different size from the estimate?

JPEG size depends on content. Fine detail, noise and sharp edges need more data; smooth areas need very little. The estimate is a typical middle value, so real files are often 50% smaller or larger.

Does DPI change the file size?

No. DPI is a single number stored in the header that tells printers how many pixels to put in each inch. Changing it does not add or remove pixels, so the file stays the same size.

See also: all Creative tools, Everyday Maths, Loans & Savings, Dates & Time, Health, Home & DIY, Unit Converters, Education, Science, Garden & Farm, Gaming & PC, Work & Business, Fun, Maps & GPS, DIY & Building, Cost Estimators, Sport & Clubs.

Related tools