SajinbaroResize & compress images

Pixel dimensions vs file size

Halving an image's width and height leaves a quarter of the pixels. How pixel dimensions, megapixels and file size relate, and the order that shrinks files most.

Reviewed: 2026-10-06 · Sources checked: 2026-10-06

How much smaller does a file get when I reduce the image size?

Halving both the width and the height keeps only a quarter of the pixels, so the file usually gets much smaller. The exact size still depends on the picture's content, the format and the quality setting, so the only reliable number is the size of a file you actually create. Sajinbaro shows the real size of the file it made, not an estimate.

1. Dimensions and pixel count

Pixel count is width × height. A 4032×3024 phone photo has about 12.2 million pixels (12 MP). Reducing the width while keeping the aspect ratio shrinks both sides, so the pixel count falls with the square of the scale.

Pixel count when reducing the width (example values)
Original (px)New widthResult (px)Pixels kept
4032×302420162016×1512about 25%
4032×302416001600×1200about 15.7%
1920×108012801280×720about 44.4%

2. The order that shrinks files most

  • Resize to the pixel dimensions you actually need first — this usually has the biggest effect.
  • If the file is still too big, lower the JPEG or WebP quality.
  • Saving a photo as PNG often makes it larger, because PNG is lossless.
  • If a form says “under 200 KB”, use a target-size tool that searches for the highest quality that fits.

3. Why the same size can be shown differently

Some programs count 1 KB as 1,000 bytes and others as 1,024 bytes (for example Windows File Explorer). A 200,000-byte file is “200 KB” in one and “195.3 KB” in the other. When a limit matters, compare the exact byte count.

Sources and rules

  • Calculation: The size examples in this guide are generated by the same code as the tools on this site.
  • Pixel count: Pixel count = width in px × height in px. Halving both sides leaves one quarter of the pixels.
  • HTMLCanvasElement.toBlob() (MDN): How a browser re-saves an image with a chosen format and quality (checked 2026-10-06).