TR

Home / Guides / How to Reduce Image Size: JPG, PNG and WEBP Compression

How to Reduce Image Size: JPG, PNG and WEBP Compression

Updated: November 6, 2026 · AracMerkezi

▶ Open Image Compressor

There are two ways to shrink an image file: reducing the number of pixels (resizing) and compressing with a quality setting. In most cases, lowering the pixels first and the quality second gives the biggest gain with the least degradation. This guide explains the question "why is my file so large?" with numbers, shows how to work out the target size for form limits, the web, email and print, and clarifies the choice between JPG, PNG and WEBP. If your file is processed in the browser it is not sent to a server; the image tools on this site work that way.

Why is the file large? From pixels to bytes

An uncompressed image takes up pixel count × 3 bytes (red, green, blue). For a 4000×3000 phone photo:

4000 × 3000 × 3 = 36,000,000 bytes ≈ 34.3 MB

JPG compresses this data, usually down to a few MB, but the result of the compression still depends on the pixel count. Halving the pixel count brings the file size roughly closer to half as well. This proportion is approximate; the content of the image (flat sky or fine detail) changes the outcome.

Example 1: Reducing the width to 1920 pixels

Input: a 4000×3000 image, target width 1920 pixels.

  1. Ratio: 1920 / 4000 = 0.48.
  2. New height: 3000 × 1920 / 4000 = 1,440 pixels.
  3. Pixel count: 1920 × 1,440 = 2,764,800; about 23.0% of the original (0.48²).
  4. The file size roughly approaches this ratio too; for example, for a 3 MB file the estimated result is around 0.7 MB (not exact, confirm by testing).

Shrinking is safe; enlarging does not improve quality and only creates blur.

Example 2: A form application with a 500 KB limit

Say the limit is "at most 500 KB". The order:

  1. First reduce the width to 1280 or 1080 pixels (enough for a document at this limit).
  2. Start the JPG quality at 85; if the file is still too large, lower it step by step to 80, 75, 70.
  3. Check the file size after each attempt; stop when it falls below 500 KB.
  4. In scans of documents with text, if quality drops below 60 the letters become blocky; in that case it is better to reduce the pixel size a little more.

Example 3: How many pixels does printing need?

Pixels = cm / 2.54 × DPI

If your image is smaller than this, the print will come out blurry. For the pixel equivalents of paper sizes see the guide How Many Pixels Is A4?.

Example 4: Cropping while keeping the ratio, and web targets

Write these targets in your notebook: twice the display width for the web, around 1920 for email, and about 118 pixels per centimeter (300 DPI) for print. That way you do not have to recalculate for every new image.

Example 5: An email attachment calculation

You will send 10 photos by email; each is 3 MB (hypothetical).

  1. Total: 10 × 3 = 30 MB; this approaches or exceeds the attachment limit of many email services (confirm the limit with your own provider).
  2. Assume you reduce each to a width of 1920 pixels and bring it to about 0.7 MB.
  3. New total: 10 × 0.7 = 7 MB; that is a saving of about 77%.

As long as the recipient is viewing on screen, 1920 pixels is enough; if they will print, share the original separately.

When should you not compress?

Location data and privacy

Phone photos can carry metadata (EXIF) such as the place and time of capture. Tools that re-encode the image usually do not carry this data over, but it varies by tool and setting; if you will share a sensitive image, check the result.

JPG, PNG and WEBP compared

FormatCompressionTransparencyBest use
JPGLossyNoPhotos
PNGLosslessYesLogos, screenshots, drawings
WEBPLossy or losslessYesWeb images

In JPG, a quality of 70–85 gives a large gain for most photos without noticeable degradation; below 30 it can cause blockiness and color distortion. PNG grows very large for photos. WEBP usually gives a smaller file at similar quality and is supported by most modern browsers.

Common mistakes

Short checklist

  1. Determine the required dimensions (web, email, print).
  2. Reduce the pixel size first.
  3. Then lower the quality if needed.
  4. Check the result by zooming in on a computer.

Tools: Image Compression, Photo Resizing, Image Format Conversion, DPI / Pixel Calculator, Aspect Ratio, Resize Keeping Ratio.

Note: File size estimates are approximate; always confirm the result by testing with your own file.

Frequently asked questions

What is the best quality setting for a photo?

For most photos, a JPG quality of 70–85 shrinks the file noticeably without visible degradation. Going below 30 can cause blockiness.

Does quality improve when I enlarge an image?

No. Enlarging adds no new detail; it only spreads the pixels and creates blur. Shrinking is safe, so avoid enlarging.

Should I use JPG or PNG?

JPG suits photos; PNG suits logos, screenshots and transparent backgrounds. For the web, WEBP usually gives a smaller file at similar quality.

Tools mentioned in this guide

More guides

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.