How to Reduce Image Size: JPG, PNG and WEBP Compression
Updated: November 6, 2026 · AracMerkezi
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.
- Ratio: 1920 / 4000 = 0.48.
- New height: 3000 × 1920 / 4000 = 1,440 pixels.
- Pixel count: 1920 × 1,440 = 2,764,800; about 23.0% of the original (0.48²).
- 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:
- First reduce the width to 1280 or 1080 pixels (enough for a document at this limit).
- Start the JPG quality at 85; if the file is still too large, lower it step by step to 80, 75, 70.
- Check the file size after each attempt; stop when it falls below 500 KB.
- 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
- 10×15 cm at 300 DPI: 1,181.1 × 1,771.65 → 1,181 × 1,772 pixels.
- A4 (21 × 29.7 cm) at 300 DPI: 2,480 × 3,508 pixels.
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
- A 4000×3000 image is 4:3. Cropped to 16:9 at the same width, the height is 4000 × 9 / 16 = 2,250 pixels.
- Shrinking to a width of 1080 for square-style display: height 3000 × 1080 / 4000 = 810 pixels.
- If an image is displayed 600 pixels wide on a web page, a file 2× wider, that is 1200 pixels, is enough for high-resolution screens; 4000 pixels has no use on the web.
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).
- Total: 10 × 3 = 30 MB; this approaches or exceeds the attachment limit of many email services (confirm the limit with your own provider).
- Assume you reduce each to a width of 1920 pixels and bring it to about 0.7 MB.
- 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?
- For files going to a print shop or being printed in large format.
- For source files you will edit further; keep the original and share the reduced one.
- For archival photos; lossy compression cannot be undone.
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
| Format | Compression | Transparency | Best use |
|---|---|---|---|
| JPG | Lossy | No | Photos |
| PNG | Lossless | Yes | Logos, screenshots, drawings |
| WEBP | Lossy or lossless | Yes | Web 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
- Lowering only the quality and leaving the pixel size alone.
- Saving over the reduced file and losing the original; always keep a copy.
- Opening and saving the same JPG repeatedly; every save adds a little more degradation.
- Converting images with text and lines to JPG; edges blur and PNG is more suitable.
- Breaking the ratio: calculate width and height proportionally instead of typing them separately.
- Comparing the print size with screen resolution.
- Forgetting that a messaging app may recompress the image on its own when sharing from a phone; send it as a file if quality matters.
- Choosing an extremely low quality in one step to reach the target size; going gradually loses less.
Short checklist
- Determine the required dimensions (web, email, print).
- Reduce the pixel size first.
- Then lower the quality if needed.
- 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
- How Many Pixels Is A4? Paper Sizes and DPI Pixel Table – How many pixels is A4? Pixel sizes of A0–A6 paper at 72, 96, 150 and 300 DPI, plus 10x15 and 13x18 photo sizes, the formula and common mistakes.
- How to Reduce PDF Size? Making a PDF from Word and JPG – How to reduce PDF size? Shrink files with image compression, DPI settings and exporting from Word to PDF; steps and examples for making a PDF from JPG images.
- Centimeters to Inches and Inches to Cm: TV Screen Size Chart – 1 inch = 2.54 cm (exact). Cm–inch conversion tables, feet and inches for height, and width × height in cm for 16:9 TV and monitor screens, all calculated.
- How to Calculate Percentages: Six Question Types, Formulas and Examples – Percentage math: percent of a number, what percent one is of another, increase and decrease, percentage points and reverse percentages, with examples.
- How to Calculate VAT: VAT-Inclusive and VAT-Exclusive Formulas and Examples – How do you separate VAT from a VAT-inclusive amount or add it to a VAT-exclusive one? Formulas, a mixed-rate invoice, rounding gaps and shortcuts.
This article is for general information only and is not legal, financial or medical advice. We are not an official institution.