Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

Image File Size Calculator

Calculate image file size from width and height, compare JPG, PNG and WebP, or check a real image on your device. Free and instant.

  • 100% free
  • No upload needed
  • Works in your browser
Image dimensions (pixels)
Output format
Quality: 80

Applies to JPG and WebP. 80 is a good balance for most photos.

Your Privacy Matters

Everything runs inside your browser. Your images are never uploaded or stored.

Estimated size in every format

ADVERTISEMENT
Demo Ad 728 x 90

How to calculate image file size

  1. 1

    Enter size

    Type the width and height in pixels, or tap a ready preset like Full HD or 12 MP.

  2. 2

    Pick format

    Choose JPG, PNG, WebP, GIF or BMP and set quality and image type.

  3. 3

    See the result

    Get the estimated file size, megapixels, print size and upload-limit checks.

IMAGE FILE SIZE GUIDE

Image File Size Calculator – Estimate JPG, PNG and WebP Size Online Free

Want to know how big an image will be before you export, upload or send it? Our free image file size calculator lets you calculate image file size from width and height, compare JPG, PNG, WebP, GIF and BMP side by side, and see exactly how a change in dimensions or quality affects the final size in KB or MB. It works as an image size calculator, a megapixel to MB converter and an upload-limit checker in one simple page. You can also switch to Check my image, pick a real photo from your device and see its actual file size, bits per pixel and compression ratio, plus real test results when it is re-saved as JPG, WebP or PNG. Everything runs inside your browser with no signup, no watermark and no upload, so it is a safe way to plan images for websites, emails, online forms, social media, printing and phone storage.

You might also be looking for image size calculator in KB, calculate JPG file size, estimate PNG size, megapixels to MB, how big is a 4K image in MB, image size for upload limit, photo size calculator or how many photos fit in storage. The tool estimates the size from the dimensions, format and quality, and can also read a real image from your device so you see the actual numbers.

Calculate Image File Size by Dimensions

Enter width and height in pixels and instantly see the uncompressed size, the estimated JPG, PNG or WebP file size, the megapixel count and the print size at 300 and 150 DPI. Presets for HD, Full HD, 4K, 12 MP and A4 save time.

Check the Real Size of Your Image

Select any image to read its true dimensions, file size and bits per pixel. The tool then re-encodes it in your browser at JPG 90, 80 and 60, WebP 80 and PNG, so you see real measured sizes instead of guesses.

Upload Limit and Storage Planner

See at a glance whether your image fits common limits like 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, 5 MB and 10 MB. Add the number of images to find the total size and how many photos fit in 1 GB.

How to Use the Image File Size Calculator (Step by Step)

Estimating the size of an image takes only a few seconds. You do not need an image editor or a spreadsheet. Follow these steps to calculate image file size online.

  1. Enter the width and height: Type the image dimensions in pixels, or tap a preset such as 1920×1080, 3840×2160 or 4000×3000.
  2. Choose the output format: Select JPG for photos, PNG for graphics and screenshots, WebP for modern websites, or GIF and BMP when you need them.
  3. Set quality, color mode and image type: Move the quality slider for JPG and WebP, then tell the tool whether the image is a logo, a screenshot or a photo.
  4. Read the estimate: See the estimated file size with a typical range, the uncompressed size, megapixels, print size and which upload limits it fits.
  5. Compare every format: Use the table below the calculator to see how the same image sizes up in JPG, PNG, WebP, GIF and BMP.

Prefer real numbers? Switch to Check my image, choose a file from your device and the tool measures it and runs quick compression tests right in your browser.

Image File Size Formula: How to Calculate Image Size in KB and MB

Every digital image is a grid of pixels, and every pixel stores color information. The uncompressed size of an image is the number of pixels multiplied by the number of bytes used for each pixel. A standard color image uses 3 bytes per pixel (one byte each for red, green and blue, also called 24-bit color). An image with transparency uses 4 bytes per pixel, and a grayscale image uses 1 byte.

The formula is: width × height × bytes per pixel = size in bytes. Divide by 1,024 to get KB, and by 1,024 again to get MB. For example, a Full HD image of 1920 × 1080 pixels in 24-bit color is 1920 × 1080 × 3 = 6,220,800 bytes, which is about 5.93 MB before any compression.

Uncompressed image size for common resolutions (24-bit RGB)
Resolution Pixels Megapixels Uncompressed size
800 × 600 480,000 0.48 MP 1.37 MB
1280 × 720 (HD) 921,600 0.92 MP 2.64 MB
1080 × 1080 (square post) 1,166,400 1.17 MP 3.34 MB
1920 × 1080 (Full HD) 2,073,600 2.07 MP 5.93 MB
2560 × 1440 (QHD) 3,686,400 3.69 MP 10.55 MB
3840 × 2160 (4K) 8,294,400 8.29 MP 23.73 MB
4000 × 3000 (12 MP photo) 12,000,000 12.00 MP 34.33 MB
2480 × 3508 (A4 at 300 DPI) 8,699,840 8.70 MP 24.89 MB

These numbers show the raw size of the pixel data. The files you actually save and share are almost always much smaller, because formats like JPG, PNG and WebP compress the data.

Why Is My JPG Much Smaller Than the Calculated Size?

A 12 MP photo can be around 34 MB as raw pixel data, yet the JPG saved by your phone is usually only a few MB. That gap is compression. JPG throws away detail that the human eye barely notices, so it can store each pixel with far less than 24 bits. The average number of bits used per pixel, often called bits per pixel or bpp, is the best way to see how strongly an image is compressed. Roughly speaking, a high-quality JPG photo may use around 2 to 3 bits per pixel, a medium-quality one around 1 to 1.5, and a heavily compressed one less than 1.

PNG works differently. It is lossless, so it never discards detail, but it compresses by finding patterns. Flat logos and screenshots with large areas of one color shrink dramatically, while photos with fine noise and texture stay large. This is why the same picture can be 150 KB as a JPG and several MB as a PNG. The image type setting in this calculator (logo, screenshot, photo or very detailed photo) adjusts the estimate for exactly this reason.

JPG vs PNG vs WebP vs GIF vs BMP: Which Image Format Gives the Smallest File?

The best format depends on what is inside the image and where you will use it. The table below compares the five formats in this calculator.

Image format comparison for file size
Format Compression Transparency Typical file size Best for
JPG Lossy No Small for photos Photos, sharing, uploads
PNG Lossless Yes Small for graphics, large for photos Logos, screenshots, text, diagrams
WebP Lossy or lossless Yes Usually smaller than JPG Websites and fast-loading pages
GIF Lossless, 256 colors Basic (on or off) Small for simple graphics Simple graphics and short animations
BMP None Limited Very large Legacy software and raw pixel data

As a simple rule: use JPG or WebP for photos, PNG for graphics and screenshots that need sharp edges or transparency, and avoid BMP unless a program specifically requires it.

Megapixels to MB: How Big Is a 12 MP, 48 MP or 108 MP Photo?

Megapixels describe how many pixels an image has, in millions. They do not directly tell you the file size, because the size depends on compression and on how detailed the scene is. A 12 MP image has 12 million pixels, which is about 34 MB uncompressed in 24-bit color. As a saved JPG it is often somewhere between 2 and 6 MB, depending on the camera settings and the scene. A plain wall compresses well, while grass, hair or a crowd produces a much bigger file.

Higher resolution means more pixels and so a bigger file at the same quality. A 48 MP photo has four times the pixels of a 12 MP one, so its uncompressed size is four times larger and its JPG is typically several times bigger too. Use the calculator to enter your exact width and height and see the megapixels and the estimated size in one step.

How to Reduce Image File Size for Upload Limits (100 KB, 200 KB, 500 KB, 1 MB)

Many job portals, government forms, exam sites and online marketplaces ask for an image under a specific size, such as 100 KB or 200 KB. Use the limit badges in the calculator to see quickly whether an estimate fits, then follow these steps to get under the limit.

  • Reduce the dimensions first: Cutting the width and height has the biggest effect, because the pixel count falls with the square of the scale. Halving both sides cuts the pixels to a quarter.
  • Choose JPG or WebP for photos: These formats give much smaller files than PNG for pictures with many colors and fine detail.
  • Lower the quality step by step: Going from 90 to 80 or 70 often saves a lot of size with little visible change. Avoid going too low, as blocky artifacts appear.
  • Avoid PNG for photos: Keep PNG for logos, icons, text and screenshots.
  • Crop out what you do not need: Removing empty borders reduces pixels and file size at once.
  • Remove extra metadata: Camera details and embedded previews can add extra kilobytes to a file.

Keep in mind that each site has its own rules about accepted formats and dimensions, so always check the requirements before you upload.

Best Image Size for Websites, Blogs and Page Speed

Images are usually the heaviest part of a web page, so their file size has a direct effect on loading speed, user experience and search performance. A very large image shown in a small space wastes bandwidth, because the browser still has to download every pixel. If a photo is displayed 800 pixels wide on your blog, uploading a 6000-pixel original is unnecessary and slows the page down.

  • Match the display size: Resize images close to the largest size they appear on your site, and allow extra width for high-density screens if needed.
  • Use WebP or JPG for photos: Modern WebP files are usually smaller than JPG at similar quality.
  • Use PNG or WebP for logos and graphics: Both keep edges clean and support transparency.
  • Watch the hero image: The large image at the top of a page often affects how fast the main content appears, so keep it as light as possible.
  • Plan before you export: Use this calculator to compare sizes and pick dimensions and quality that balance sharpness and speed.

Image Size for Email, WhatsApp and Social Media

Email services limit the total size of attachments, and many commonly allow around 20 to 25 MB per message, so a handful of uncompressed or very high-resolution photos can hit the limit quickly. Chat and social apps often compress images automatically, which can reduce sharpness. If you want to control the result, resize and compress the image yourself first. A JPG at around 1920 pixels on the long side is usually plenty for viewing on a phone or laptop screen, and it keeps the file small enough to send quickly on mobile data. Rules change over time, so check the current limits of the service you use.

How Many Photos Fit in 1 GB? Storage Planning Made Easy

Set the Images field to the number of photos you have and the calculator multiplies the estimate for you. It also shows how many images of that size fit into 1 GB. For example, if an image is about 2 MB, roughly 500 of them fit in 1 GB (1 GB is 1,024 MB). This helps when you plan phone storage, cloud backups, a photo book, a product catalog or the media folder of an online store.

Image Resolution for Printing: Pixels Needed at 300 DPI

Print quality depends on pixels per inch. For a sharp print, 300 DPI is the usual target, so you need the width and height in inches multiplied by 300. The calculator shows the print size of your image at 300 DPI and at 150 DPI, so you can see how large you can print without visible softness.

  • 4 × 6 inch photo: 1200 × 1800 pixels
  • 5 × 7 inch photo: 1500 × 2100 pixels
  • 8 × 10 inch photo: 2400 × 3000 pixels
  • A4 page (8.27 × 11.69 inch): about 2480 × 3508 pixels

How Accurate Is an Image File Size Estimate?

The uncompressed size and the BMP size are exact calculations. The JPG, WebP, PNG and GIF figures are estimates, because the true size depends on the exact content of the picture, the software that saves the file and settings such as chroma subsampling and metadata. That is why the calculator shows a typical range around the estimate. For a precise answer on a specific image, use Check my image: it reads the real file and measures actual re-encoded sizes in your browser. Results for WebP depend on your browser, since not every browser can create WebP files.

Typical File Sizes: Quick Reference for Common Image Sizes

Real file sizes depend on the picture, but ranges help you plan. The table gives rough estimates for common dimensions saved as a good-quality JPG, as PNG and as WebP. A photo with a lot of detail will be at the larger end, while a simple graphic will be at the smaller end.

Rough size ranges by dimension and format
DimensionsJPG (quality about 80)PNGWebP (quality about 80)
800 x 600 (0.5 MP)60 to 150 KB300 to 800 KB40 to 110 KB
1280 x 720 (HD)100 to 250 KB0.8 to 1.6 MB70 to 180 KB
1920 x 1080 (Full HD)200 to 500 KB1.5 to 3.5 MB150 to 380 KB
4000 x 3000 (12 MP)1.5 to 4 MB12 to 25 MB1 to 3 MB
3840 x 2160 (4K)0.8 to 2.5 MB6 to 14 MB0.6 to 1.8 MB

Treat these as planning numbers, not exact values. Use Check my image whenever you need the real size of a particular file.

Image Size for Common Upload Limits: 100 KB, 200 KB, 500 KB and 1 MB

Forms and platforms often limit uploads, and the limit is usually a file size rather than a pixel size. Work backwards from the limit: choose a format, set a sensible quality and reduce dimensions until the estimate fits. If you cannot hit the limit with quality alone, reduce the width and height, because that has a much bigger effect than lowering quality.

  • Under 100 KB: Use JPG or WebP at around 600 to 1000 px wide.
  • Under 200 KB: Use JPG or WebP at around 1000 to 1400 px wide.
  • Under 500 KB: A Full HD JPG at moderate quality is often enough.
  • Under 1 MB: A large JPG at good quality fits comfortably.
  • Under 2 MB: Most phone photos need resizing or compression to fit.

How Color Mode and Image Content Change the Estimate

Two images with the same dimensions can have very different file sizes. Colour images store three channels, grayscale stores one, and images with transparency store an extra alpha channel. A flat logo with large single-colour areas compresses extremely well, while a detailed photo with fine texture does not. That is why the calculator asks for the colour mode and the type of content, and why the estimate changes when you switch them.

  • Color (RGB): The standard option for photos and graphics.
  • Color with transparency: Adds an alpha channel, which increases PNG and WebP size.
  • Grayscale: Smaller, because there is less colour data.
  • Logo or flat graphic: Compresses far more than a photo.
  • Very detailed photo: Closer to the upper end of the range.

Common Reasons the Calculated Size Does Not Match Your Real File

  • Metadata: Camera data, thumbnails and colour profiles add extra bytes.
  • Encoder differences: Different programs compress the same picture differently.
  • Progressive or optimised JPG: These options change the size slightly.
  • Picture content: Noise and fine texture make files larger.
  • Quality scale differences: A quality value of 80 does not mean exactly the same thing in every program.
  • Social platforms: They often recompress uploads, so the final size can differ from your file.

Use the estimate for planning and then confirm with the real file before you submit anything with a strict limit.

More Free Image Tools You May Need

Image File Size Calculator is often one step in a bigger workflow. These related free tools make the rest of the job easier:

Image File Size Calculator on Any Device, No Software Needed

This online image size calculator runs on Windows, Mac, Linux, Android and iPhone in any modern browser. Whether you are looking for an image size calculator in KB, a way to convert megapixels to MB, or a quick check before you upload a photo to a form, just open the page and start typing. There is nothing to install, no account to create and no file leaves your device.

Ready to try it? Scroll back up, enter your dimensions or choose an image and see the file size in seconds. If you also need to convert or optimize pictures, explore the other free image tools on our site.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Image File Size Calculator FAQ

Quick answers about calculating image file size, comparing formats and getting images under an upload limit.

How do I calculate image file size from width and height?

Multiply width by height by the bytes per pixel. A standard color image uses 3 bytes per pixel, so 1920 × 1080 × 3 equals 6,220,800 bytes, or about 5.93 MB uncompressed. Saved as JPG, PNG or WebP the file is smaller because of compression. Enter your dimensions in the calculator to see both numbers instantly.

Why is the real file smaller than the uncompressed size?

The uncompressed size is the raw pixel data, while image formats compress it. JPG and WebP discard detail the eye barely notices, and PNG finds repeating patterns without losing anything. That is why a photo of about 34 MB in raw pixels can be only a few MB as a JPG.

How accurate is the estimated JPG, PNG or WebP size?

The uncompressed and BMP sizes are exact, but the others are estimates, because real file sizes depend on the picture content and the software that saves it. The tool shows a typical range to reflect this. For exact numbers, use Check my image to measure a real file and test actual re-encoded sizes.

Are my images uploaded to a server?

No. The calculator works entirely inside your browser. When you check an image, the file is read on your own device and is never sent anywhere. Closing or refreshing the page removes it.

Which format gives the smallest file: JPG, PNG or WebP?

For photos, WebP and JPG are usually the smallest, with WebP often a little smaller at similar quality. For logos, icons and screenshots with flat colors and sharp text, PNG can be smaller and keeps edges clean. Use the format table in the calculator to compare them for your own dimensions.

How can I get an image under 100 KB or 200 KB?

First reduce the width and height, since fewer pixels give the biggest saving. Then save as JPG or WebP and lower the quality in small steps, for example from 90 to 80 to 70. Use the limit badges in the calculator to check the estimate against 100 KB, 200 KB, 500 KB and other common limits.

What is the difference between KB, MB and GB, and how many photos fit in 1 GB?

One KB is 1,024 bytes, one MB is 1,024 KB and one GB is 1,024 MB. If your photos are about 2 MB each, around 500 of them fit in 1 GB. Enter the number of images in the calculator to see the total size and how many images fit in 1 GB for your dimensions.

ADVERTISEMENT
Demo Ad 320 x 50